Re: [rfc breakpoint] Catch exceptions

Jim Ingham
2003-03-26T22:49:36Z

Yeah, the Apple gcc folks made it so that all the [in-charge] and
[not-in-charge] etc versions of constructors & destructors funnel back
into a single function, then we just make sure gdb breaks on that one
when it goes to break on the constructor. It looks a little odd,
'cause you have this weirdo extra stack frame that you don't
understand, but at least it works. Dunno if they ever submitted that
hack back to the FSF, however. If they did, the gdb side was pretty
trivial.

Jim

On Wednesday, March 26, 2003, at 09:48 AM, Michael Elizabeth Chastain
wrote:

> Hi Jim,
>
>> BTW. The more general problem of a symbol resolving to multiple
>> instances - for instance setting file:line breakpoints in inlined
>> functions or template method defn's - is something we need to address.
>> It really ticks off our C++ friends.
>
> And with gcc 3, it happens with constructors and destructors, because
> the compiler emits multiple object code functions for each constructor
> and each constructor. This shows up multiple times in the PR database,
> which means many users are unhappy with it.
>
> Just another voice of gloom,
>
> Michael C
>
--
Jim Ingham jingham@apple.com
Developer Tools
Apple Computer