Skip to contentSkip to conversation

xen-gdbserver and missing tty in domU

DISCUSSION sanket hase 1 participant 1 message Dec 12, 2007

lore
Share & tools
lore
#0 lore raw

Hi Folks,

We have compiled freebsd domU with debug info. ( freebsd 7.0 domU running on debian etch 4.0 dom0 , xen 3.0.3 hypervisor)

Now I have 2 thing to ask

1. This kernel ( build with -DNO_MODULES) crashes and I was trying to attach xen-gdbserver to its core dump.

 Kernel panics when I attach my gdb client ...

***********************
(gdb) target remote 127.0.0.1:9999
Remote debugging using 127.0.0.1:9999
[New thread 0]
[Switching to thread 0]
panic (fmt=Cannot access memory at address 0xc06e9384 ) at ../../../i386/include/pcpu.h:213
213 ../../../i386/include/pcpu.h: No such file or directory.

      in ../../../i386/include/pcpu.h

warning: no shared library support for this OS / ABI
**************************

I came across a few posts which emphasize on setting "domu_debug=y" in xen/kern.mk file. Need I recompile dom0 so that
flag takes an effect ? Need we do anything else apart from setting
this (domu_debug) flag to get gdbserver running ?

2. Also ,
xm create -c /etc/xen/freebsd gives =>
Using config file "freebsd".
Started domain freebsd
xenconsole: Could not read tty from store: No such file or directory

I thought this bus was fixed ( as per bugzilla ) . Any pointers ?

Thanks,
Sanket