* BDI2000 "Cannot insert breakpoint"
@ 2005-08-03 1:12 Shaun Jackman
0 siblings, 0 replies; 2+ messages in thread
From: Shaun Jackman @ 2005-08-03 1:12 UTC (permalink / raw)
To: gdb
I am using a BDI2000 over Ethernet with gdb 6.3.50.20050801-cvs for
arm-elf. Occasionally, if I have a breakpoint set a continue or next
command will fail with an "Error accessing memory address" error as
below:
(gdb) n
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x2017fe0: Unknown error 4294967295.
Often clearing the breakpoints with 'd b' and resetting the breakpoint
will fix things. Is this perhaps related to hardware/software
breakpoints? Any idea why it's failing?
Thanks,
Shaun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BDI2000 "Cannot insert breakpoint"
@ 2005-08-03 9:58 frank.theinen
0 siblings, 0 replies; 2+ messages in thread
From: frank.theinen @ 2005-08-03 9:58 UTC (permalink / raw)
To: Shaun Jackman; +Cc: gdb
Hi Shaun,
> I am using a BDI2000 over Ethernet with gdb 6.3.50.20050801-cvs for
> arm-elf. Occasionally, if I have a breakpoint set a continue or next
> command will fail with an "Error accessing memory address" error as
> below:
>
> (gdb) n
> Warning:
> Cannot insert breakpoint 0.
> Error accessing memory address 0x2017fe0: Unknown error 4294967295.
>
> Often clearing the breakpoints with 'd b' and resetting the breakpoint
> will fix things. Is this perhaps related to hardware/software
> breakpoints? Any idea why it's failing?
yes, probably. If you configured the BDI2000 to use hardware breakpoints,
and you have two breakpoints set, this will happen, when GDB "nexts" a
subroutine call. GDB usually does single stepping, and when it
single-steps into a subroutine, it sets a (kind of) temporary breakpoint
at the position the LR points to and "continues" to leave the subroutine.
You can verify this behaviour by capturing the serial GDB communication
where you can see the failing breakpoint setting operation.
Regards, Frank
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-03 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 1:12 BDI2000 "Cannot insert breakpoint" Shaun Jackman
2005-08-03 9:58 frank.theinen
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).