Re: RFC: fix bug with std::terminate handler

Pedro Alves
2010-02-25T18:26:57Z

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