Skip to contentSkip to conversation

Can't set breakpoint in gdb using qemu -s on x86_64

Qemu-devel Robin Green 1 participant 1 message Jun 3, 2006

lore
Share & tools
lore
#0 lore raw

I'm trying to debug the Linux kernel using qemu's -s option. When I try to set a breakpoint, it fails as follows:

$ gdb /lib/modules/2.6.16.18-1.debug.x86_64/vmlinux
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "x86_64-unknown-linux-gnu"...Using
host libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) target remote localhost:1234
Remote debugging using localhost:1234 0x0000000000000000 in ?? ()
warning: shared library handler failed to enable breakpoint (gdb) b sys_select
Cannot access memory at address 0xffffffff8017d852

Signature · 1 line
Robin