Re: C++ exception breakpoint failure
Re: C++ exception breakpoint failure
- Subject: Re: C++ exception breakpoint failure
- From: James Walker <email@hidden>
- Date: Tue, 28 Jul 2009 10:38:23 -0700
Dmitry Markman wrote:
did you try "catch throw" gdb command?
No, I wasn't familiar with that, and assumed that Xcode's exception
breaks would do the right thing.
The gdb docs on catch say that it may be better to set a breakpoint on
__raise_exception. I wonder how that relates to cxa_throw?
dm
On Jul 27, 2009, at 10:36 PM, James Walker wrote:
Jim Ingham wrote:
This should work. We break on the cxa_throw function, which is
supposed to be how all C++ exceptions get thrown. The disassembly
for __throw_logic_error shows it calling cxa_throw, so we should
catch that.
If you can put together an example program that shows this error
getting thrown but us not catching it, please file a bug, including
the test program.
So far I haven't been able to construct a simple project that has this
problem, and it doesn't always happen in my big program. But thanks
for letting me know that I'm not missing anything real obvious.
On Jul 27, 2009, at 11:42 AM, James Walker wrote:
I have Xcode set to break on throw for all C++ exceptions. But I
found that it did not break when a C++ standard library routine
called __throw_logic_error. Why would that be? (Xcode 3.1.3)
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Dmitry Markman
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden