Debugging x86-64 apps from a 32bit host?
Hi,
is it possible to debug e.g. a x86-64 Linux kernel running in qemu-system-x86_64 on a 32bit host from that host with GDB?
I cross-compiled a version of GDB with x86-64 support, so it can load the debugging symbols from the kernel (which is an ELF64 binary) and attached that to a running qemu-system-x86_64, but it always tells me the instruction pointer is at 0x0.
Is this supported by QEMU?
Thanks,
Simon
Hi,
Quoted 4 lines · Simon Peter
I cross-compiled a version of GDB with x86-64 support, so it can load the debugging symbols from the kernel (which is an ELF64 binary) and attached that to a running qemu-system-x86_64, but it always tells me the instruction pointer is at
0x0.
Does the patch in
http://lists.gnu.org/archive/html/qemu-devel/2007-09/msg00062.html fix it for you?
Regards,
Andrew