Settings: Add GDB server settings

This commit is contained in:
Jean-Baptiste Boric 2020-12-09 18:07:49 +01:00 committed by Connor McLaughlin
parent 9bd28f39a5
commit 9b40c8ffa6
2 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,8 @@ void Settings::Load(SettingsInterface& si)
debugging.show_vram = si.GetBoolValue("Debug", "ShowVRAM"); debugging.show_vram = si.GetBoolValue("Debug", "ShowVRAM");
debugging.dump_cpu_to_vram_copies = si.GetBoolValue("Debug", "DumpCPUToVRAMCopies"); debugging.dump_cpu_to_vram_copies = si.GetBoolValue("Debug", "DumpCPUToVRAMCopies");
debugging.dump_vram_to_cpu_copies = si.GetBoolValue("Debug", "DumpVRAMToCPUCopies"); debugging.dump_vram_to_cpu_copies = si.GetBoolValue("Debug", "DumpVRAMToCPUCopies");
debugging.enable_gdb_server = si.GetBoolValue("Debug", "EnableGDBServer");
debugging.gdb_server_port = si.GetIntValue("Debug", "GDBServerPort");
debugging.show_gpu_state = si.GetBoolValue("Debug", "ShowGPUState"); debugging.show_gpu_state = si.GetBoolValue("Debug", "ShowGPUState");
debugging.show_cdrom_state = si.GetBoolValue("Debug", "ShowCDROMState"); debugging.show_cdrom_state = si.GetBoolValue("Debug", "ShowCDROMState");
debugging.show_spu_state = si.GetBoolValue("Debug", "ShowSPUState"); debugging.show_spu_state = si.GetBoolValue("Debug", "ShowSPUState");

View File

@ -159,6 +159,9 @@ struct Settings
bool dump_cpu_to_vram_copies = false; bool dump_cpu_to_vram_copies = false;
bool dump_vram_to_cpu_copies = false; bool dump_vram_to_cpu_copies = false;
bool enable_gdb_server = false;
u16 gdb_server_port = 1234;
// Mutable because the imgui window can close itself. // Mutable because the imgui window can close itself.
mutable bool show_gpu_state = false; mutable bool show_gpu_state = false;
mutable bool show_cdrom_state = false; mutable bool show_cdrom_state = false;