mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
GDB Server: fix and cleanup
Move source files to Emu/GDB.cpp, GDB.h Remove "WITH_GDB" option, enable GDB Server by default. Change class name to gdb_thread. Alias for external access gdb_server. Change config option name to "GDB Server" Bind on 127.0.0.1 by default.
This commit is contained in:
parent
9d4de51cb6
commit
a29d4150df
10 changed files with 192 additions and 208 deletions
|
@ -13,7 +13,7 @@
|
|||
#include "SPURecompiler.h"
|
||||
#include "lv2/sys_sync.h"
|
||||
#include "lv2/sys_prx.h"
|
||||
#include "Utilities/GDBDebugServer.h"
|
||||
#include "Emu/GDB.h"
|
||||
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#include "restore_new.h"
|
||||
|
@ -329,9 +329,9 @@ static bool ppu_break(ppu_thread& ppu, ppu_opcode_t op)
|
|||
{
|
||||
// Pause and wait if necessary
|
||||
bool status = ppu.state.test_and_set(cpu_flag::dbg_pause);
|
||||
#ifdef WITH_GDB_DEBUGGER
|
||||
fxm::get<GDBDebugServer>()->pause_from(&ppu);
|
||||
#endif
|
||||
|
||||
g_fxo->get<gdb_server>()->pause_from(&ppu);
|
||||
|
||||
if (!status && ppu.check_state())
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue