Skip to contentSkip to conversation

how to use kgdb between domU(hvm)

DISCUSSION 牛立新 2 participants 3 messages Nov 25, 2010

lore
Share & tools
lore

牛立新

author
#0 lore raw

hi all
I'm a fresh man, so please forgive me for some stupid questions.
Anyone who have ever configure kgdb between domU? That is look domU A as test machine, domU B as development machine, then connect A and B through serial cable(virtual), and then we can debug the kernel or device module under this circumstance use KGDB. The question is how to configure can I use the serial port of domU?
Thanks a lot.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Why not using pty device as a serial port for the guest and just debug it from host?

Thanks,
Neo

2010/11/24 牛立新 <[email protected]>:

Quoted 17 lines

hi all
I'm a fresh man, so please forgive me for some stupid questions.
Anyone who have ever configure kgdb between domU? That is look domU A
as test machine, domU B as development machine, then connect A and B through serial cable(virtual), and then we can debug the kernel or device module under this circumstance use KGDB.
The question is how to configure can I use the serial port of domU? Thanks a lot.

________________________________
网易163/126邮箱百分百兼容iphone ipad邮件收发
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
author
#2 lore raw

hi Neo
Thanks for your notice.
Perhaps I'm still confused, could you please give me more descriptions or materialabout it?
I just want to debug some device module on domU, but, once I insmod the module, the domU will crash, so I plan to use KGDB between domU to debug it, of course , dom0--->domU is ok.

Quoted 16 lines · At 2010-11-25 16:01:05,"Neo Jia" <[email protected]> wrote:

Why not using pty device as a serial port for the guest and just debug it from host?

Thanks,
Neo

2010/11/24 牛立新 <[email protected]>:

Quoted 9 lines

hi all
I'm a fresh man, so please forgive me for some stupid questions.
Anyone who have ever configure kgdb between domU? That is look domU A
as test machine, domU B as development machine, then connect A and B through serial cable(virtual), and then we can debug the kernel or device module under this circumstance use KGDB.
The question is how to configure can I use the serial port of domU? Thanks a lot.

Quoted 14 lines
Quoted 8 lines

________________________________
网易163/126邮箱百分百兼容iphone ipad邮件收发
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel