This is the mail archive of the gdb-patches@sourceware.org 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: fix bug with std::terminate handler


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


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