This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/7] Insert breakpoint even when the raw breakpoint is found
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Tue, 12 Apr 2016 10:03:44 +0100
- Subject: Re: [PATCH 4/7] Insert breakpoint even when the raw breakpoint is found
- Authentication-results: sourceware.org; auth=none
- References: <1458749384-19793-1-git-send-email-yao dot qi at linaro dot org> <1458749384-19793-5-git-send-email-yao dot qi at linaro dot org> <570BB7AF dot 1080703 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> Can we only increase the refcount if inserting succeeds? gdbserver can
> use gdb exceptions nowadays, and even though lots of current gdbserver
> code isn't exception safe, it'd be nice to start considering that.
One thing I can think of is to properly decrease refcount if exception
is thrown. Anything else? I don't think we need to worry about the
atomicity of increment and decrement of refcount, because I don't figure
out a case the refcount is updated together in mainline code and in
exception.
--
Yao (éå)