Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: gdb@sources.redhat.com
Cc: Daniel Jacobowitz <drow@false.org>
Subject: Re: gdb 6.1-debian : problem with restarting program with breakpoints on dynamic libraries#
Date: Thu, 03 Jun 2004 11:55:00 -0000	[thread overview]
Message-ID: <200406031355.19172.wim.delvaux@adaptiveplanet.com> (raw)
In-Reply-To: <20040603035724.GA1806@nevyn.them.org>

As requested a transcript :

---> Mark the setting of the breakpoint to AP_RaiseExc 
---> Mark the FAILURE of settting the breakpoint in the second run

u19809@buro:.../MSPDataImport.par$ gdb AP_QtApp
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) b AC_RaiseExc
Function "AC_RaiseExc" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (AC_RaiseExc) pending.
(gdb) r
Starting 
program: /mnt/buro/fs.permanent/home/u19809/projects/AP/APEE_RT/gcc3/bin/AP_QtApp
[Thread debugging using libthread_db enabled]
[New Thread 1086607392 (LWP 17986)]
Breakpoint 2 at 0x407c2656: file 
IntelLinuxGnu.arch/debugthreaded_gcc3/ActivatorErrorHandling_A.c, line 264.
Pending breakpoint "AC_RaiseExc" resolved
[New Thread 1095072688 (LWP 17994)]
1) AP.DevTools.ATFScanner (1.0.0)
2) AP.CSDManipulation.CSDFormEditor (1.0.0)
3) AP.MSP.MSPAdmin (1.0.0)
4) AP.MSP.AuthenticationGui (1.0.0)
5) AP.MSP.MSPImporter (1.0.0)
6) AP.MSP.MSPPackager (1.0.0)
7) AP.DevTools.RepoBrowser (1.0.0)

Program received signal SIG32, Real-time event 32.
[Switching to Thread 1095072688 (LWP 17994)]
0x407d5cb1 in __open_nocancel () from /lib/tls/libpthread.so.0
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting 
program: /mnt/buro/fs.permanent/home/u19809/projects/AP/APEE_RT/gcc3/bin/AP_QtApp
Error in re-setting breakpoint 2:
Function "AC_RaiseExc" not defined.
Error in re-setting breakpoint 2:
Function "AC_RaiseExc" not defined.
Error in re-setting breakpoint 2:
Function "AC_RaiseExc" not defined.
Error in re-setting breakpoint 2:
Function "AC_RaiseExc" not defined.
[Thread debugging using libthread_db enabled]
[New Thread 1086607392 (LWP 18012)]
[New Thread 1095072688 (LWP 18015)]
1) AP.DevTools.ATFScanner (1.0.0)
2) AP.CSDManipulation.CSDFormEditor (1.0.0)
3) AP.MSP.MSPAdmin (1.0.0)
4) AP.MSP.AuthenticationGui (1.0.0)
5) AP.MSP.MSPImporter (1.0.0)
6) AP.MSP.MSPPackager (1.0.0)
7) AP.DevTools.RepoBrowser (1.0.0)

Program received signal SIG32, Real-time event 32.
[Switching to Thread 1095072688 (LWP 18015)]
0x407d5cb1 in __open_nocancel () from /lib/tls/libpthread.so.0
(gdb) q





On Thursday 03 June 2004 05:57, Daniel Jacobowitz wrote:
> On Thu, Jun 03, 2004 at 12:28:34AM +0200, wim delvaux wrote:
> > When I do this
> >
> > 		gdb SomeProgram
> >
> > and set a breakpoint on a function that will be loaded at runtime
> >
> > 		b SomeFunctionInSomeLib
> >
> > gdb properly asks me if I want to set this breakpoint when the symbol is
> > found.
> >
> > Answering "y' and running the program will break on the requested
> > function.
> >
> > HOWEVER.
> >
> > When I want to rerun the application ('r' command) the breakpoint is
> > still known by gdb (I see complaint messages) but is not set even when
> > the function becomes available.
> >
> > is this a but in the version I am using ?
>
> I can't reproduce this using the same version of GDB.  Can you give us
> a complete transcript of a session that shows the problem?


  reply	other threads:[~2004-06-03 11:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 22:28 wim delvaux
2004-06-03  3:57 ` Daniel Jacobowitz
2004-06-03 11:55   ` wim delvaux [this message]
2004-06-03 20:47     ` Daniel Jacobowitz
2004-06-03 21:49       ` wim delvaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200406031355.19172.wim.delvaux@adaptiveplanet.com \
    --to=wim.delvaux@adaptiveplanet.com \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox