This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix bug with std::terminate handler
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, tromey at redhat dot com
- Date: Thu, 25 Feb 2010 18:26:46 +0000
- Subject: Re: RFC: fix bug with std::terminate handler
- References: <m38wahrxr3.fsf@fleche.redhat.com>
On Thursday 25 February 2010 18:11:44, Tom Tromey wrote:
> call_function_by_hand installs a momentary breakpoint on std::terminate,
> and then deletes it later. However, this can cause a double deletion of
> the breakpoint. In the bug, the called function is dlopen, which causes
> gdb to enter solib_add, which calls breakpoint_re_set, deleting the
> momentary breakpoint.
Why doesn't stepping over "dlopen", with "(gdb) next" cause the
same problem with step-resume breakpoints?
--
Pedro Alves