-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - - How can I debug loadable modules at run time?
Here is my way: ( /tmp/mymodule.ko exists on both [Host] and [UML] ) + [Host] # gdb linux + [Host] (gdb) ... + [Host] (gdb) r <params> + [UML] # insmod /tmp/mymodule.ko + [UML] # cat /sys/module/mymodule/sections/{.text,.bss,.data} + [Host] (gdb) add-symbol-file /tmp/mymodule.ko <.text_addr> -s .bss <.bss_addr> -s .data <.data_addr> + ... Tell me if I was wrong, thanks! - - How can I set breakpoint at module's init function? After add module's symbol, I set breakpoint at init function then 'rmmod' then re-'insmod' but gdb didn't break at init function. What was wrong? - - Sometimes gdb can't follow source codes in '.h' header files. Did I miss something? Thanks in advance, Mikado. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEIjOGNWc9T2Wr2JcRAnMvAJ9yZE1IvIAWAAC56EICGqj3YXs6iACfaxIU x3dtTqadHCmA+l0g99XCPvI= =yXAH -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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