bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't use GDB to debug gnumach


From: Samuel Thibault
Subject: Re: Can't use GDB to debug gnumach
Date: Mon, 12 Apr 2010 14:19:44 +0200
User-agent: Mutt/1.5.12-2006-07-14

Karim Allah Ahmed, le Mon 12 Apr 2010 13:45:49 +0200, a écrit :
> >(gdb) break i386at_init
> >Breakpoint 2 at 0x100790: file ../i386/i386at/model_dep.c, line 322.
> >(gdb) continue
> >Continuing.
> 
> (here the gnumach simply restarts giving me back the boot loader , as if it
> didn't even breaks at the second break point .. and continue simply blocks )

IIRC, gdb gets confused because it mixes virtual and linear addresses,
which are not the same in Mach.

> [Note , i'm debugging gnumach because it crashes and reboots after doing some
> modifications in the initialization phase .. and kdb isn't yet initialized]x

For such debugging, I usually use the "write text at 0xb8000 then
while(1);" hack :)

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]