Added mock gdbstub implementation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "memory/memory.h"
|
||||
#include "bootloader/bootloader.h"
|
||||
#include "cpu/rv32cpu.h"
|
||||
#include "gdbstub/gdbstub.h"
|
||||
|
||||
char* CURRENT_NAME;
|
||||
|
||||
@@ -20,6 +21,12 @@ int main(int argc, char** argv)
|
||||
cpu_init();
|
||||
cpu0->pc = entry_point;
|
||||
|
||||
if(gdbstub)
|
||||
{
|
||||
gdbstub_start();
|
||||
gdbstub_wait_for_connection();
|
||||
}
|
||||
|
||||
// CPU simulation
|
||||
cpu_loop(cpu0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user