remake  4.3+dbg-1.5
Enumerations | Functions | Variables
print.h File Reference
#include "variable.h"
#include "job.h"
#include "trace.h"

Go to the source code of this file.

Enumerations

enum  debug_print_enums_e { MAX_STACK_SHOW = 1000 }
 

Functions

void err_with_stack (target_stack_node_t *p_call, const char *fmt,...) __attribute__((__format__(__printf__
 
void void fatal_err (target_stack_node_t *p_call, const char *fmt,...)
 
void log_access (char *flavor)
 
void log_working_directory (int)
 
void perror_with_name (const char *, const char *)
 
void pfatal_with_name_err (const char *psz_name, int errnum)
 
void pfatal_with_name (const char *psz_name)
 
void print_variable (variable_t *p_v)
 
void print_variable_expand (variable_t *p_v)
 
void print_file_target_prefix (const file_t *p_target)
 
void print_target_prefix (const char *p_name)
 
void print_floc_prefix (const gmk_floc *p_floc)
 
debug_return_t print_child_cmd (child_t *p_child, target_stack_node_t *p)
 
void print_target_stack_entry (const file_t *p_target, int i, int i_pos)
 
void print_target_stack (target_stack_node_t *p, int i_pos, int i_max)
 
void print_floc_stack (int i_pos, int i_max)
 
bool print_read_makefiles (const char *psz_filename)
 
void print_cmdline (void)
 

Variables

enum debug_print_enums_e debug_print_enums1
 

Enumeration Type Documentation

◆ debug_print_enums_e

Enumerator
MAX_STACK_SHOW 

Function Documentation

◆ err_with_stack()

void err_with_stack ( target_stack_node_t p_call,
const char *  fmt,
  ... 
)

Versions of error and fatal with the ability to show call-stack.

◆ fatal_err()

void void fatal_err ( target_stack_node_t p_call,
const char *  fmt,
  ... 
)

◆ log_access()

void log_access ( char *  flavor)

Under -d, write a message describing the current IDs.

◆ log_working_directory()

void log_working_directory ( int  )

Write a message indicating that we've just entered or left (according to ENTERING) the current directory.

◆ perror_with_name()

void perror_with_name ( const char *  ,
const char *   
)

Print an error message from errno.

◆ pfatal_with_name()

void pfatal_with_name ( const char *  psz_name)

Print an error message from errno and exit.

◆ pfatal_with_name_err()

void pfatal_with_name_err ( const char *  psz_name,
int  errnum 
)

Print an error message from errno and exit.

◆ print_child_cmd()

debug_return_t print_child_cmd ( child_t p_child,
target_stack_node_t p 
)

Display common prefix message output file target.

◆ print_cmdline()

void print_cmdline ( void  )

Print the command line used to invode this program

Referenced by dbg_cmd_show().

◆ print_file_target_prefix()

void print_file_target_prefix ( const file_t p_target)

Display common file target prefix message output file target.

◆ print_floc_prefix()

void print_floc_prefix ( const gmk_floc p_floc)

Display common prefix message output file target.

◆ print_floc_stack()

void print_floc_stack ( int  i_pos,
int  i_max 
)

Display the Makefile read stack. i_pos is the position we are currently. i_max is the maximum number of entries to show.

Referenced by dbg_cmd_where().

◆ print_read_makefiles()

bool print_read_makefiles ( const char *  psz_filename)

Print the list makefiles read by read_makefiles().

Referenced by dbg_cmd_info().

◆ print_target_prefix()

void print_target_prefix ( const char *  p_name)

Display common target prefix message.

◆ print_target_stack()

void print_target_stack ( target_stack_node_t p,
int  i_pos,
int  i_max 
)

Display the target stack i_pos is the position we are currently. i_max is the maximum number of entries to show.

Referenced by dbg_cmd_info(), and dbg_cmd_where().

◆ print_target_stack_entry()

void print_target_stack_entry ( const file_t p_target,
int  i,
int  i_pos 
)

◆ print_variable()

void print_variable ( variable_t p_v)

Display a variable and its value.

◆ print_variable_expand()

void print_variable_expand ( variable_t p_v)

Display a variable and its value with all substitutions included.

Variable Documentation

◆ debug_print_enums1

enum debug_print_enums_e debug_print_enums1