diff --git a/Debugging-with-Ghidra-on-Linux.md b/Debugging-with-Ghidra-on-Linux.md index f65a95d..f4cea60 100644 --- a/Debugging-with-Ghidra-on-Linux.md +++ b/Debugging-with-Ghidra-on-Linux.md @@ -1,5 +1,7 @@ > To be fleshed out, for now this is just me dumping steps as I do them +## Basic setup + 1. Open the `darktide_launcher.log` and find the arguments to run the executable with. At the time of writing: `-eac-untrusted --bundle-dir ../bundle --ini settings --backend-auth-service-url https://bsp-auth-prod.atoma.cloud --backend-title-service-url https://bsp-td-prod.atoma.cloud -game -launcher_verification_passed_crashify_property false` @@ -24,4 +26,8 @@ STEAM_COMPAT_DATA_PATH=/path/to/SteamLibrary/steamapps/compatdata/1361210 5. Run the script in a terminal, it will echo `target remote :` 6. In Ghidra, for the debugger configuration, choose "remote gdb", enter the port and run. Breakpoints should become available -7. Run `continue` (or just `c`) in the gdb terminal to start the game, or any other gdb command. \ No newline at end of file +7. Run `continue` (or just `c`) in the gdb terminal to start the game, or any other gdb command. + +## Observations + +- Ghidra doesn't seem to set breakpoints automatically. Instead, the "Debug Console" window will talk about "there are breakpoints to place" and a button to do that \ No newline at end of file