From: Nikola Knezevic <laladelausanne@gm...> - 2006-05-18 15:50:31
any solutions how to debug uml while it is booting?
I can trace it to process.c:start_userspace and a call to clone. After
that, I can't do anything, until I send HUP from another console,
which is a bit slow.
On Thursday 18 May 2006 17:50, Nikola Knezevic wrote:
> Hi all,
> any solutions how to debug uml while it is booting?
> I can trace
You mean single-step?
> it to process.c:start_userspace and a call to clone. After
> that, I can't do anything,
Ah, you can't trace the cloned process... or maybe the main one!
> until I send HUP from another console,
> which is a bit slow.
How that HUP works? I.e. you kill -HUP the main thread and you re-get control
> Any suggestions?
Put a pause() call where you want to stop and recompile. Jeff Dike usually
does so to workaround gdb problems (breakpoints not working)
I'm re-reading your email now and I'm dubious - I often see that breakpoints
work up to a certain point.
I.e. I set a breakpoint, start UML, it works up to a certain point, afterwards
it doesn't any more, until I restop it (I use SIGINT but I now understand
it's the same thing).
I guess GDB doesn't handle well some UML's calls.
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
Get latest updates about Open Source Projects, Conferences and News.