From: Mikado <mikado4vn@gmail.com>
To: user-mode-linux-user@lists.sourceforge.net,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Resend: how to debug module on UML kernel 2.6.15.6 + SKAS mode?
Date: Fri, 24 Mar 2006 10:25:46 +0700 [thread overview]
Message-ID: <442366BA.3080902@gmail.com> (raw)
-----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
next reply other threads:[~2006-03-24 3:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-24 3:25 Mikado [this message]
2006-03-24 4:37 ` [uml-devel] Resend: how to debug module on UML kernel 2.6.15.6 + SKAS mode? D. Bahi
2006-03-24 14:44 ` Blaisorblade
2006-03-25 16:01 ` Mikado
2006-03-26 17:52 ` Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=442366BA.3080902@gmail.com \
--to=mikado4vn@gmail.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=user-mode-linux-user@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.