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

Function debug_record_call

core/debug/debug.c:242–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void debug_record_call(uint32_t retAddr, bool mode) {
243 uint32_t stack = cpu_address_mode(cpu.registers.stack[mode].hl, mode);
244 uint32_t index = (debug.stackIndex + 1) & DBG_STACK_MASK;
245 debug_stack_entry_t *entry = &debug.stack[index];
246 entry->mode = mode;
247 entry->popped = false;
248 entry->stack = stack;
249 entry->retAddr = retAddr;
250 entry->range = 1;
251 debug.stackIndex = index;
252 if (debug.stackSize < DBG_STACK_SIZE) {
253 debug.stackSize++;
254 }
255 if (debug.stepOver) {
256 gui_debug_close();
257 debug.step = debug.stepOver = false;
258 debug.stepOut = index;
259 }
260}
261
262void debug_record_ret(uint32_t retAddr, bool mode) {
263 uint32_t stack = cpu_address_mode(cpu.registers.stack[mode].hl, mode),

Callers 2

cpu_rstFunction · 0.85
cpu_callFunction · 0.85

Calls 2

cpu_address_modeFunction · 0.85
gui_debug_closeFunction · 0.50

Tested by

no test coverage detected