All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Resend: how to debug module on UML kernel 2.6.15.6 + SKAS mode?
@ 2006-03-24  3:25 Mikado
  2006-03-24  4:37 ` D. Bahi
  2006-03-24 14:44 ` Blaisorblade
  0 siblings, 2 replies; 5+ messages in thread
From: Mikado @ 2006-03-24  3:25 UTC (permalink / raw)
  To: user-mode-linux-user, user-mode-linux-devel

-----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

iD8DBQFEI2a6NWc9T2Wr2JcRAiHtAJ0eenkXD5OpYyh6NgIalIqjYleU+ACfWn3i
ivKO51h+ATarQaxt+VNhhxs=
=cvsa
-----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-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-26 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-24  3:25 [uml-devel] Resend: how to debug module on UML kernel 2.6.15.6 + SKAS mode? Mikado
2006-03-24  4:37 ` D. Bahi
2006-03-24 14:44 ` Blaisorblade
2006-03-25 16:01   ` Mikado
2006-03-26 17:52     ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.