From d8fe575b3e850a46e22b9bf59a74d39445e26ec7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 1 Jul 2025 22:02:40 +0200 Subject: consolidate debugging translators --- hurd/debugging/translator/gdb.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hurd/debugging/translator') diff --git a/hurd/debugging/translator/gdb.mdwn b/hurd/debugging/translator/gdb.mdwn index 82a50736..fdf6adff 100644 --- a/hurd/debugging/translator/gdb.mdwn +++ b/hurd/debugging/translator/gdb.mdwn @@ -12,6 +12,8 @@ Say you want to try running file system server ([[`ext2fs`|translator/ext2fs]], [[`jfs`|translator/jfs]], ...) against a modified version of [[`libpager`|libpager]] and debug the latter one using [[debugging/GDB]]. +On Debian you need the `hurd-dbgsym` and `libc0.3-dbg` packages installed. + Set the [[hurd/translator]] like this: $ settrans -fgap ↩ @@ -51,3 +53,11 @@ course): [...] Voilà. + +If you need to debug the initialization of the translator, start the translator +like + + $ settrans -Pa /foo /hurd/foofs + +The `-P` option will make it +pause and you will be able to attach [[debugging/GDB]] to the process. -- cgit v1.2.3