This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cannot insert breakpoint -1.


On Fri, 24 Jul 2009, Daniel Jacobowitz wrote:

On Fri, Jul 24, 2009 at 05:00:45PM -0500, Anmol P. Paralkar wrote:
Yes, I see:

(gdb) maintenance info breakpoints Num     Type           Disp Enb
Address    What
-1      shlib events   keep y   0x00110000 <_start>

How do I delete it/prevent it from being set? Is this a configure
time setting?

It may help to use a powerpc-elf debugger instead.

I tried powerpc-elf GDB, and it'll work (I see that I cannot set a breakpoint in the application - but that seems to be a problem with the application itself).

--

 I do have one question about powerpc-linux-gnu GDB; I see that the breakpoint
 is inserted inspite of:

(gdb) show stop-on-solib-events
Stopping for shared library events is 0.

--

From breakpoint.h:

    /* Some dynamic linkers (HP, maybe Solaris) can arrange for special
       code in the inferior to run when significant events occur in the
       dynamic linker (for example a library is loaded or unloaded).

       By placing a breakpoint in this magic code GDB will get control
       when these significant events occur.  GDB can then re-examine
       the dynamic linker's data structures to discover any newly loaded
       dynamic libraries.  */
    bp_shlib_event,

--

 I would assume that if stop-on-solib-events is 0, then it ought not to set
 the -1 breakpoint. Please could you help understanding this part.

Thank you,
Anmol.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]