debug.c
Include dependency graph for debug.c:
Functions
- static COLD_FUNC void debug_display_type (term t, const Context *ctx)
- static COLD_FUNC void debug_dump_binary_mem (char *buf, term val, unsigned n)
- static COLD_FUNC void debug_dump_term (Context *ctx, term *pos, const char *region, unsigned i)
- COLD_FUNC 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.
- COLD_FUNC 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.
- COLD_FUNC 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.
- COLD_FUNC 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.
- COLD_FUNC 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.
- COLD_FUNC 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.
- COLD_FUNC 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.