You are not logged in.

#1 2014-10-11 16:20:50

jaro
Member
Registered: 2013-10-10
Posts: 25

kernel + gdb + qemu

Hi,

I'm trying to debug a kernel using gdb and qemu

I run qemu as follows:
qemu-system-x86_64 -S -s -kernel arch/x86/boot/bzImage -hda /dev/zero

Then on another session I run gdb as follows:
gdb
(gdb) file vmlinux
Reading symbols from vmlinux...done.

(gdb) set architecture i386:x86-64:intel
The target architecture is assumed to be i386:x86-64:intel

(gdb) show arch
The target architecture is assumed to be i386:x86-64:intel

(gdb) target remote localhost:1234
Remote debugging using localhost:1234
0x0000000000000000 in irq_stack_union ()

(gdb) bre start_kernel
Breakpoint 1 at 0xffffffff81efba83: file init/main.c, line 501.

(gdb) cont
Continuing.

Then I got the following error:
Remote 'g' packet reply is too long: 0000000000000000f03f0100000000004000000000000000001006000000000000f0090000000000709efc81ffffffffd03fe081ffffffffc83fe081ffffffff0000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083baef81ffffffff8200000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000

Do you know how to solve this issue ?

thanks in advance

Offline

Board footer

Powered by FluxBB