Got gdb working with UML
Hehehe....I am really happy since I can now debug a Linux kernel using UML and gdb.
Note:
1) make linux ARCH=um
For 2.4 kernel make sure gcc is set to gcc295 and you have '-g' added to the compilation options to include debugging information
2) gdb linux
3) (gdb) run debug udb0=rootfs
Here the keyword is "debug" which enables debugging.
Can't believe it took me so much time to figure this out. This is because I never read documentation.
0 Comments:
Post a Comment
<< Home