MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / debug_1

Function debug_1

src/debug.cpp:8059–8086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8057static TCHAR input[MAX_LINEWIDTH];
8058
8059static void debug_1 (void)
8060{
8061 draw_denise_line_queue_flush();
8062 open_console();
8063 custom_dumpstate(0);
8064 m68k_dumpstate(&nextpc, debug_pc);
8065 debug_pc = 0xffffffff;
8066 nxdis = nextpc; nxmem = 0;
8067 debugger_active = 1;
8068
8069 for (;;) {
8070 int v;
8071
8072 if (!debugger_active)
8073 return;
8074 update_debug_info ();
8075 console_out (_T(">"));
8076 console_flush ();
8077 debug_linecounter = 0;
8078 v = console_get (input, MAX_LINEWIDTH);
8079 if (v < 0)
8080 return;
8081 if (v == 0)
8082 continue;
8083 if (debug_line (input))
8084 return;
8085 }
8086}
8087
8088static void addhistory(void)
8089{

Callers 1

debugFunction · 0.85

Calls 9

custom_dumpstateFunction · 0.85
m68k_dumpstateFunction · 0.85
debug_lineFunction · 0.85
open_consoleFunction · 0.50
update_debug_infoFunction · 0.50
console_outFunction · 0.50
console_flushFunction · 0.50
console_getFunction · 0.50

Tested by

no test coverage detected