Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: Breakpoint in object destructor
@ 2004-08-04 13:53 Bloch, Jack
  2004-08-04 14:38 ` Michael Chastain
  0 siblings, 1 reply; 4+ messages in thread
From: Bloch, Jack @ 2004-08-04 13:53 UTC (permalink / raw)
  To: 'Michael Chastain', gdb; +Cc: Benitez, Rafael

Yes,  We are using gcc 3.2

-----Original Message-----
From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com]On Behalf Of Michael Chastain
Sent: Wednesday, August 04, 2004 9:51 AM
To: Bloch, Jack; gdb@sources.redhat.com
Cc: Benitez, Rafael
Subject: Re: Breakpoint in object destructor


"Bloch, Jack" <jack.bloch@siemens.com> wrote:
> We are trying to set a breakpoint in a destructor. this does not seem to
> work. Running GDB 5.1.1 on a SuSE 2.4 Kernel. The breakpoint gets set, but
> it never fires.
>

What compiler are you using to build the program that you are compiling?

If you are using gcc 3.X, this is a known, unfixed problem.
See the PROBLEMS file in a recent release of gdb (like gdb 6.2)
for an explanation.  Briefly: gcc 3.X emits two or three object code
functions for each destructor; gdb doesn't understand this;
so gdb puts a breakpoint in just one copy.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Breakpoint in object destructor
  2004-08-04 13:53 Breakpoint in object destructor Bloch, Jack
@ 2004-08-04 14:38 ` Michael Chastain
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Chastain @ 2004-08-04 14:38 UTC (permalink / raw)
  To: jack.bloch, gdb; +Cc: rafael.benitez

You could try this patch:

  ftp://ftp.shout.net/pub/users/mec/gdb/ctor-dtor-base.patch

You'll need to start with a more recent version of gdb than gdb 5.1.1,
like gdb 6.1.1 or gdb 6.2.  Read the doco (which is useful anyways),
apply the patch, build gdb, and see if you like it.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Breakpoint in object destructor
  2004-08-04 12:05 Bloch, Jack
@ 2004-08-04 13:50 ` Michael Chastain
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Chastain @ 2004-08-04 13:50 UTC (permalink / raw)
  To: jack.bloch, gdb; +Cc: rafael.benitez

"Bloch, Jack" <jack.bloch@siemens.com> wrote:
> We are trying to set a breakpoint in a destructor. this does not seem to
> work. Running GDB 5.1.1 on a SuSE 2.4 Kernel. The breakpoint gets set, but
> it never fires.
>

What compiler are you using to build the program that you are compiling?

If you are using gcc 3.X, this is a known, unfixed problem.
See the PROBLEMS file in a recent release of gdb (like gdb 6.2)
for an explanation.  Briefly: gcc 3.X emits two or three object code
functions for each destructor; gdb doesn't understand this;
so gdb puts a breakpoint in just one copy.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Breakpoint in object destructor
@ 2004-08-04 12:05 Bloch, Jack
  2004-08-04 13:50 ` Michael Chastain
  0 siblings, 1 reply; 4+ messages in thread
From: Bloch, Jack @ 2004-08-04 12:05 UTC (permalink / raw)
  To: gdb; +Cc: Benitez, Rafael

We are trying to set a breakpoint in a destructor. this does not seem to
work. Running GDB 5.1.1 on a SuSE 2.4 Kernel. The breakpoint gets set, but
it never fires.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-04 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 13:53 Breakpoint in object destructor Bloch, Jack
2004-08-04 14:38 ` Michael Chastain
  -- strict thread matches above, loose matches on Subject: below --
2004-08-04 12:05 Bloch, Jack
2004-08-04 13:50 ` Michael Chastain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox