From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: fix bug with std::terminate handler
Date: Thu, 25 Feb 2010 19:19:00 -0000 [thread overview]
Message-ID: <m3sk8pqg1r.fsf@fleche.redhat.com> (raw)
In-Reply-To: <201002251826.46359.pedro@codesourcery.com> (Pedro Alves's message of "Thu, 25 Feb 2010 18:26:46 +0000")
>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
Tom> call_function_by_hand installs a momentary breakpoint on std::terminate,
Tom> and then deletes it later. However, this can cause a double deletion of
Tom> the breakpoint. In the bug, the called function is dlopen, which causes
Tom> gdb to enter solib_add, which calls breakpoint_re_set, deleting the
Tom> momentary breakpoint.
Pedro> Why doesn't stepping over "dlopen", with "(gdb) next" cause the
Pedro> same problem with step-resume breakpoints?
The step-resume breakpoints have type bp_step_resume, which are handled
specially by breakpoint_re_set_one. The std::terminate breakpoint is
just a plain bp_breakpoint.
I suppose I could add a new bptype, though that seems rather heavy for
this.
If you have a particular approach you think would be best, I would be
happy to implement that.
Tom
next prev parent reply other threads:[~2010-02-25 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 18:11 Tom Tromey
2010-02-25 18:26 ` Pedro Alves
2010-02-25 19:19 ` Tom Tromey [this message]
2010-02-25 19:49 ` Pedro Alves
2010-02-26 1:52 ` Pedro Alves
2010-03-16 20:49 ` Tom Tromey
2010-03-25 18:14 ` Pedro Alves
2010-03-25 20:37 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3sk8pqg1r.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox