diff options
Diffstat (limited to 'hurd/debugging/translator')
| -rw-r--r-- | hurd/debugging/translator/capturing_stdout_and_stderr.mdwn | 2 | ||||
| -rw-r--r-- | hurd/debugging/translator/gdb.mdwn | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn b/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn index 47fbbc48..c1abc7f9 100644 --- a/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn +++ b/hurd/debugging/translator/capturing_stdout_and_stderr.mdwn @@ -16,7 +16,7 @@ silently dying all the time, without any console output: $ sudo settrans -fgap ↩ /servers/socket/2 ↩ /bin/sh -c 'exec >> /root/pfinet.log 2>&1 && date && ↩ - /hurd/pfinet -i eth0 -a [...]' + /hurd/pfinet -i /dev/eth0 -a [...]' $ [...] $ cat /root/pfinet.log [date] 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. |
