public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Cannot insert breakpoint? cannot access memory adresss? need your help!
@ 2016-08-11  6:26 dotweiba
  0 siblings, 0 replies; only message in thread
From: dotweiba @ 2016-08-11  6:26 UTC (permalink / raw)
  To: gdb

Hi all,

I have got some trouble when debugging arm64 linux kernel running on QEMU. I connect GDB server built in QEMU and then set breakpoint on particular address. Though data at this address could be examined, neither software breakpoints nor hardware breakpoints could be set. And gdb gives the following message:

Cannot inset breakpoint 1.
Cannot access memory at address 0x40000004

Furthermore, I tried to set hardware breakpoints, it said that “you may have requested too many hardware breakpoints or watchpoints” but actually I did set this one only.

The GDB is the latest one (version 7.11.1) that I compiled on arm64 plaform and the kernel version is v4.4 rc4. Also, I have checked my kernel build configuration
(CONFIG_KGDB=y, 
CONFIG_DEBUG_INFO=y,
CONFIG_DEBUG_BUGVERBOSE=y, 
CONFIG_FRAME_POINTER=y,
CONFIG_KGDB_SERIAL_CONSOLE=y) 
and my compilation argument 
(KBUILD_CFLAGS += -Og). Is there anything I missed? I would appreciate your help in any way.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-11  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11  6:26 Cannot insert breakpoint? cannot access memory adresss? need your help! dotweiba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).