MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / debug_init

Function debug_init

core/debug/debug.c:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static debug_atomics_t debug_atomics;
23
24void debug_init(void) {
25 debug_clear_step();
26 debug.stackIndex = debug.stackSize = 0;
27 debug.stack = (debug_stack_entry_t*)calloc(DBG_STACK_SIZE, sizeof(debug_stack_entry_t));
28 debug.addr = (uint8_t*)calloc(DBG_ADDR_SIZE, sizeof(uint8_t));
29 debug.port = (uint8_t*)calloc(DBG_PORT_SIZE, sizeof(uint8_t));
30 debug.bufPos = debug.bufErrPos = 0;
31 debug_atomics.open = false;
32 debug_disable_basic_mode();
33 gui_console_printf("[CEmu] Initialized Debugger...\n");
34}
35
36void debug_free(void) {
37 free(debug.stack);

Callers 2

mainFunction · 0.85
debugInitMethod · 0.85

Calls 3

debug_clear_stepFunction · 0.85
debug_disable_basic_modeFunction · 0.85
gui_console_printfFunction · 0.50

Tested by

no test coverage detected