This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Be explicit when using software breakpoint/watchpoint
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Nicolas Cornu <nicolac76 at yahoo dot fr>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 22 Sep 2017 21:57:28 +0100
- Subject: Re: [PATCH] Be explicit when using software breakpoint/watchpoint
- Authentication-results: sourceware.org; auth=none
- References: <20170922091741.5882-1-nicolac76@yahoo.fr>
On Fri, Sep 22, 2017 at 10:17 AM, Nicolas Cornu via gdb-patches
<gdb-patches@sourceware.org> wrote:
> When there is no more hw watchpoint/breakpoint we see:
> (gdb) watch *0x10
> Hardware watchpoint 1: *0x10
> (gdb) info watchpoints
> Num Type Disp Enb Address What
> 1 watchpoint keep y *0x10
>
> This patch change to:
> (gdb) info watchpoints
> Num Type Disp Enb Address What
> 1 sw watchpoint keep y *0x10
Hi,
"watchpoint" -> "sw watchpoint" is a trivial change
to me. Personally, I've got use that "watchpoint" is
a "sw" one, but I do agree that being explicit is always
useful. Some tests in gdb testsuite expect to match
"watchpoint", and changing it to "sw watchpoint" will
fail the tests.
--
Yao (齐尧)