xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Xen domU module debugging using GDBSX
@ 2014-04-21  2:29 고영근
  2014-04-22 18:30 ` Mukesh Rathor
  0 siblings, 1 reply; 4+ messages in thread
From: 고영근 @ 2014-04-21  2:29 UTC (permalink / raw)
  To: mukesh.rathor, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

Hi.

I've tried to use the GDBSX for debugging a domU module, but there is a
problem loading module symbols.

I'm using
xen : 4.2
dom0 : fedora core 14 (linux kernel 2.6.32.57)
domU : ubuntu 10.04 (linux kernel 2.6.37.1)

This is what I've done
1. I created a PV domU.
2. On dom0 command line, I wrote "gdbsx -a 1 64 9999"
3. Using gdb, I connected to the gdbsx from dom0
dom0 > gdb vmlinux
gdb > target remote localhost:9999

4. In the domU, insmod mymodule.ko

5. On dom0 gdb, I added mymodule.ko using add-symbol-file command with
text, bss, data, rodata address found in the directory
/sys/module/mymodule/sections

After these steps, I could break 'some' functions like cleanup_module().
And I think it works well. But some functions are not working and most of
all, i can't see the codes. How can I add remote directories dynamically
using GDBSX?

[-- Attachment #1.2: Type: text/html, Size: 1155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-05-19 19:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21  2:29 Xen domU module debugging using GDBSX 고영근
2014-04-22 18:30 ` Mukesh Rathor
2014-05-19  7:40   ` 고영근
2014-05-19 19:17     ` Mukesh Rathor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).