Set up the compiler to ptrace the runtime (#107)

* set up the compiler to ptrace the runtime

* clang format

* move debugger state to a separate Debugger class

* support registers and break and continue

* documentation and fix windows

* make listener part of compiler, not a separate library

* implement memory read and write

* fix for windows
This commit is contained in:
water111
2020-10-31 14:07:43 -04:00
committed by GitHub
parent a45d180f2c
commit 0451a06d76
34 changed files with 1215 additions and 110 deletions
+4
View File
@@ -8,6 +8,7 @@
#include <chrono>
#include <thread>
#include "common/cross_os_debug/xdbg.h"
#include "common/common_types.h"
#include "game/sce/libscf.h"
#include "kboot.h"
@@ -76,6 +77,9 @@ void kboot_init_globals() {
* Add call to sceDeci2Reset when GOAL shuts down.
*/
s32 goal_main(int argc, const char* const* argv) {
// Added for OpenGOAL's debugger
xdbg::allow_debugging();
// Initialize global variables based on command line parameters
// This call is not present in the retail version of the game
// but the function is, and it likely goes here.