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: [PATCH] Extra error message from update_watchpoint


> Date: Tue, 29 Oct 2013 16:44:25 +0000
> From: "Andrew Burgess" <aburgess@broadcom.com>
> cc: "Pedro Alves" <palves@redhat.com>
> 
> diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
> index 608463d..68b348d 100644
> --- a/gdb/breakpoint.c
> +++ b/gdb/breakpoint.c
> @@ -1805,7 +1805,8 @@ update_watchpoint (struct watchpoint *b, int reparse)
>  	  if (b->base.ops->works_in_software_mode (&b->base))
>  	    b->base.type = bp_watchpoint;
>  	  else
> -	    error (_("Software read/access watchpoints not supported."));
> +	    error (_("Hardware watchpoint support disabled.  "
> +		     "See set/show can-use-hw-watchpoints."));

Sorry for chiming in late, but IMO this change is a step backwards:
the new warning is much more puzzling than the old one.  The old one
at least told what was the problem, the new one looks like entirely
unrelated (unless you are privy to GDB internals).

How about something like

  Cannot set read/access watchpoints without hardware watchpoint support.


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