Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 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
* 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

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 12:05 Breakpoint in object destructor Bloch, Jack
2004-08-04 13:50 ` Michael Chastain
2004-08-04 13:53 Bloch, Jack
2004-08-04 14:38 ` Michael Chastain

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