From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16907 invoked by alias); 27 Jul 2009 17:35:14 -0000 Received: (qmail 16899 invoked by uid 22791); 27 Jul 2009 17:35:12 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from az33egw02.freescale.net (HELO az33egw02.freescale.net) (192.88.158.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Jul 2009 17:35:05 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id n6RHYM4x024642; Mon, 27 Jul 2009 10:34:35 -0700 (MST) Received: from lds03-tx32 (lds03-tx32.am.freescale.net [10.83.20.63]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id n6RHYWQ1023057; Mon, 27 Jul 2009 12:34:32 -0500 (CDT) Date: Mon, 27 Jul 2009 17:35:00 -0000 From: "Anmol P. Paralkar" To: Daniel Jacobowitz cc: gdb@sourceware.org Subject: Re: Cannot insert breakpoint -1. In-Reply-To: <20090725022514.GA16383@caradoc.them.org> Message-ID: References: <20090724211855.GA23302@caradoc.them.org> <20090725022514.GA16383@caradoc.them.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00213.txt.bz2 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.