Debug: Update docs to gentoo

This commit is contained in:
DraVee 2026-02-11 01:29:33 +01:00
parent 6b3f8e1b62
commit d4920f5ec2
1 changed files with 13 additions and 3 deletions

View File

@ -29,10 +29,20 @@ Ignoring SIGSEGV when debugging in host:
### gdb
Run `./build/bin/eden-cli -c <path to your config file (see logs where you run eden normally to see where it is)> -d -g <path to game>`
You need to have a `aarch64-gdb`, either install or cross-compile:
* On Arch:
* `yay aarch64-gdb` or `sudo pkg in arch64-gdb`
* On Gentoo:
* `sudo emerge --ask crossdev`
* `crossdev -t aarch64-unknown-linux-gnu --ex-gdb`
Then hook up an aarch64-gdb (use `yay aarch64-gdb` or `sudo pkg in arch64-gdb` to install)
Then type `target remote localhost:1234` and type `c` (for continue) - and then if it crashes just do a `bt` (backtrace) and `layout asm`.
`Enable GDB Stub` at General > Debug, then hook up an aarch64-gdb:
* `target remote localhost:6543`
Type:
* for continue: `c`
* then if it crashes: `bt` (backtrace)
* and `layout asm`
### gdb cheatsheet