This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cannot insert breakpoint -1.
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Anmol P. Paralkar" <anmol at freescale dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 24 Jul 2009 17:18:55 -0400
- Subject: Re: Cannot insert breakpoint -1.
- References: <Pine.LNX.4.64.0907241042280.31686@lds03-tx32>
On Fri, Jul 24, 2009 at 04:12:08PM -0500, Anmol P. Paralkar wrote:
> Hello,
>
> Is there a reason why GDB will try to set a breakpoint (breakpoint number: -1) at
> the entry point address on a 'c', after a 'target remote'? (I am using a GDB stub
> at the remote end that resides in a hypervisor upon which guest OS'es run).
>
> I am using gdb-6.8.50.20090717; but, I suppose that this is general GDB behaviour.
What target is it configured for?
"maint info break" will give you some more information. This is
probably a shared library event breakpoint.
> (The entry point is likely not mapped into the TLB at that stage and so it is
> really a visible problem, else it just does this silently without it getting
> any attention).
IMO it's a bug in your stub if you can't set breakpoints when not
mapped into the TLB...
--
Daniel Jacobowitz
CodeSourcery