This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: uw_install_context() and GDB
Phil Muldoon wrote:
I take your point well. But if these are user-written destructors, and
they are being executed on the journey to the exception handler,
shouldn't "next" return control here?
IMO, no. It should be consistent with
extern "C" int printf (const char *, ...);
struct A
{
~A();
};
int i;
A::~A() { i = 42; }
int main()
{
{
A a;
printf("before");
}
printf ("after");
}
Here "next" steps directly from one printf to the next, it doesn't stop
on the }. If you want to see the destructor, you need to "step".
Jason