summaryrefslogtreecommitdiff
path: root/Hurd
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-03-09 13:00:00 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-03-09 13:00:00 +0000
commit6bcae74f9c4f6d9625b184c86fc0ed7304bc2e88 (patch)
treec5fdd6538899b541f8809a946e275ad7344d0f10 /Hurd
parent2bab80f6bd2c3cf3ebf676adee45dce8058a61ae (diff)
none
Diffstat (limited to 'Hurd')
-rw-r--r--Hurd/DebuggingViaSubhurds.mdwn20
1 files changed, 10 insertions, 10 deletions
diff --git a/Hurd/DebuggingViaSubhurds.mdwn b/Hurd/DebuggingViaSubhurds.mdwn
index 20855da6..8985f3ee 100644
--- a/Hurd/DebuggingViaSubhurds.mdwn
+++ b/Hurd/DebuggingViaSubhurds.mdwn
@@ -37,11 +37,11 @@ W2
W3
- $ sudo gdb /var/tmp/one.full/hurd/exec
+ $ sudo gdb /var/tmp/one.full/lib/ld.so.1
[...]
(gdb) set solib-absolute-prefix /var/tmp/one.full
(gdb) attach 854
- Attaching to program `/var/tmp/one.full/hurd/exec', pid 854
+ Attaching to program `/var/tmp/one.full/lib/ld.so.1', pid 854
warning: Can't modify tracing state for pid 854: No signal thread
Can't fetch registers from thread 1: No such thread
@@ -51,6 +51,8 @@ W1
/hurd/ext2fs.static --bootflags=-dsf --host-priv-port=38 --device-master-port=43 --exec-server-task=47 -Tdevice pseudo-root
/lib/ld.so.1 /hurd/exec
+Now that this step has been accomplished, you can set break points in GDB, etc.
+
W2
(gdb) continue
@@ -68,14 +70,11 @@ W3
warning: Can't wait for pid 854: No child processes
Program received signal EXC_BAD_ACCESS, Could not access memory.
- 0x000168f2 in ?? ()
- (gdb) bt
- #0 0x000168f2 in ?? ()
- Cannot access memory at address 0xbeffffe4
- (gdb) info threads
- * 1 thread 1005.1 0x000168f2 in ?? ()
- (gdb) disassemble
- No function contains program counter for selected frame.
+ __mach_port_mod_refs (task=1, name=139802, right=1, delta=-1)
+ at /var/tmp/glibc-2_5-branch/build_--without-tls_--without-__thread/mach/RPC_mach_port_mod_refs.c:132
+ 132 InP->Head.msgh_reply_port = __mig_get_reply_port();
+ (gdb) x/i $pc
+ 0x168f2 <__mach_port_mod_refs+82>: call 0x151b0 <__mig_get_reply_port>
----
@@ -83,3 +82,4 @@ Sources:
* <http://www.gnu.org/software/hurd/howto/subhurd.html>
* <http://lists.gnu.org/archive/html/bug-hurd/2007-02/msg00030.html>
+* [[ThomasSchwinge]]'s mind