This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch]: inform user that a watchpoint is hit
- From: Doug Evans <dje at google dot com>
- To: Chandru <chandru at in dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 14 Aug 2009 17:22:33 -0700
- Subject: Re: [patch]: inform user that a watchpoint is hit
- References: <200908141602.50465.chandru@in.ibm.com>
On Fri, Aug 14, 2009 at 3:32 AM, Chandru<chandru@in.ibm.com> wrote:
> When a program is restarted within gdb, the initial breakpoint hit messages are
> not outputted on to the screen. Inform the user that a watchpoint has been hit
>
> Signed-off-by: Chandru Siddalingappa <chandru@ilinux.vnet.ibm.com>
> ---
>
> --- gdb/breakpoint.c.orig ? ? ? 2009-08-14 17:53:06.000000000 +0530
> +++ gdb/breakpoint.c ? ?2009-08-14 17:54:02.000000000 +0530
> @@ -842,6 +842,9 @@ update_watchpoint (struct breakpoint *b,
> ? struct bp_location *loc;
> ? bpstat bs;
>
> + ?if (breakpoint_enabled (b))
> + ? ? ?mention(b);
> +
> ? unlink_locations_from_global_list (b);
> ? for (loc = b->loc; loc;)
> ? ? {
>
Hi.
If we're stopping because of a watchpoint and not reporting it, that's bad.
But it seems odd that this is happening, and simple experiments don't
reveal anything.
Do you have a testcase?