From d4920f5ec2f383b20a1d10232a442ae73d65a3cf Mon Sep 17 00:00:00 2001 From: DraVee Date: Wed, 11 Feb 2026 01:29:33 +0100 Subject: [PATCH] Debug: Update docs to gentoo --- docs/Debug.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/Debug.md b/docs/Debug.md index 3fc3bc9fee..97caca135a 100644 --- a/docs/Debug.md +++ b/docs/Debug.md @@ -29,10 +29,20 @@ Ignoring SIGSEGV when debugging in host: ### gdb -Run `./build/bin/eden-cli -c -d -g ` +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