debug.h
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include debug.h:
Debug functions and macros.
Miscellaneous functions and macros useful for debug.
Defines
-
DEBUG_DUMP_STACK(...)
Functions
-
void debug_dump_context(Context *ctx)
Print a repreentation of the context to stderr.
Print heap, stack, and registers of the given context to stderr.
- Parameters:
ctx – the process context.
-
void debug_dump_heap(Context *ctx)
Print heap contents to stderr.
Print the dump of the heap of the given context to stderr.
- Parameters:
ctx – the process context.
-
void debug_dump_stack(Context *ctx)
Print stack contents to stderr.
Print the dump of the stack of the given context to stderr.
- Parameters:
ctx – the process context.
-
void debug_dump_registers(Context *ctx)
Print register contents to stderr.
Print the dump of the registers of the given context to stderr.
- Parameters:
ctx – the process context.
-
void debug_dump_memory(Context *ctx, term *start, term *end, const char *region)
Print a region of (term) memory to stderr.
Print the dump of the memory the given context to stderr.
- Parameters:
ctx – the process context.
start – the start address.
end – the end address.
region – the name of the region to display.
-
char reg_type_c(int reg_type)
Gets a printable char for a given register type.
Returns a printable char such as x or y for the given register type.
- Parameters:
reg_type – register type.
- Returns:
printable register type.
-
void debug_print_processes_list(struct ListHead *processes)
Prints a list of processes.
Prints to stderr a list of processes.
- Parameters:
processes – the list of processes that will be printed.