[TuxOnIce-users] Debugging resume process

Thawan Kooburat kthawan at gmail.com
Tue Oct 26 21:35:43 UTC 2010


Hi,

I just  want to share how I currently debug the resume process.
Previously I noticed that if I attach gdb to "boot" kernel, gdb will
lose track of the kernel after "resume" kernel start executing (I
haven't tried hardware breakpoint).

Anyway, I found a more reliable way which is adding kgdb_breakpoint()
into resume path. This will tell the "resume" kernel to wait for gdb
connection. I am able to attach gdb to the kernel quite early in its
resume path - right after toi_hibernate() return. Additionally, kgdboc
must be set be set before hibernate for this to work. kgdbcon is also
useful since I only have one serial port and its allow me to see
printk message via gdb.



-- 
Thawan Kooburat

Graduate Student
Department of Computer Science
UW-Madison


More information about the TuxOnIce-users mailing list