This is the mail archive of the gdb@sources.redhat.com 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: 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


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