This is the mail archive of the gdb-patches@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: [rfc breakpoint] Catch exceptions


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 at apple dot com
Developer Tools
Apple Computer


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