On Wednesday 12 July 2006 03:05, Miao Qingjun wrote:
> Hi,
>
> I have several problems about uml-2.6.17 and gdb debugging.
>
> I start "gdb uml", "b sys_init_module", then "run",
> but gdb is not break at sys_init_module() when I insmod LKM?
> Why? How can I do it?
Sometimes breakpoints don't work in GDB :-(. An hack was posted: it was based 
on recompiling after adding code calling pause() if a variable was set and 
setting the variable only from the debugger; however some special care was 
needed to avoid gcc recognizing nobody set the variable and optimizing the 
check out.
> When I type control-c in gdb, the virtual console xterm is also closed,
This doesn't happen here for what I remember, I used both Ctrl-C and kill -INT 
<main pid> to get back the control in the console.
> I just want to enter gdb command line to single step kernel code, how can I
> do it?

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to