* [rfa] Fix comment in can_use_hardware_watchpoint
@ 2010-07-01 19:54 Thiago Jung Bauermann
2010-07-02 13:21 ` Ulrich Weigand
0 siblings, 1 reply; 3+ messages in thread
From: Thiago Jung Bauermann @ 2010-07-01 19:54 UTC (permalink / raw)
To: gdb-patches ml
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Hi,
Ulrich Weigand elucidated a question asked in a comment in
can_use_hardware_watchpoint. This patch fixes it.
Thanks and regards,
Thiago Jung Bauermann
IBM Linux Technology Center
2010-07-01 Ulrich Weigand <uweigand@de.ibm.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
represent?" question in comment. Change comment to a proper sentence.
[-- Attachment #2: comment.diff --]
[-- Type: text/x-patch, Size: 734 bytes --]
Index: gdb/breakpoint.c
===================================================================
--- gdb.orig/breakpoint.c 2010-06-30 23:24:53.000000000 -0300
+++ gdb/breakpoint.c 2010-06-30 23:25:02.000000000 -0300
@@ -8147,9 +8147,9 @@ can_use_hardware_watchpoint (struct valu
}
else if (VALUE_LVAL (v) != not_lval
&& deprecated_value_modifiable (v) == 0)
- return 0; /* ??? What does this represent? */
+ return 0; /* These are values from the history (e.g., $1). */
else if (VALUE_LVAL (v) == lval_register)
- return 0; /* cannot watch a register with a HW watchpoint */
+ return 0; /* Cannot watch a register with a HW watchpoint. */
}
/* The expression itself looks suitable for using a hardware
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [rfa] Fix comment in can_use_hardware_watchpoint
2010-07-01 19:54 [rfa] Fix comment in can_use_hardware_watchpoint Thiago Jung Bauermann
@ 2010-07-02 13:21 ` Ulrich Weigand
2010-07-02 19:55 ` Thiago Jung Bauermann
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weigand @ 2010-07-02 13:21 UTC (permalink / raw)
To: Thiago Jung Bauermann; +Cc: gdb-patches ml
Thiago Jung Bauermann wrote:
> 2010-07-01 Ulrich Weigand <uweigand@de.ibm.com>
> Thiago Jung Bauermann <bauerman@br.ibm.com>
>
> * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
> represent?" question in comment. Change comment to a proper sentence.
This is OK, thanks.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfa] Fix comment in can_use_hardware_watchpoint
2010-07-02 13:21 ` Ulrich Weigand
@ 2010-07-02 19:55 ` Thiago Jung Bauermann
0 siblings, 0 replies; 3+ messages in thread
From: Thiago Jung Bauermann @ 2010-07-02 19:55 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: gdb-patches ml
On Fri, 2010-07-02 at 15:21 +0200, Ulrich Weigand wrote:
> Thiago Jung Bauermann wrote:
>
> > 2010-07-01 Ulrich Weigand <uweigand@de.ibm.com>
> > Thiago Jung Bauermann <bauerman@br.ibm.com>
> >
> > * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
> > represent?" question in comment. Change comment to a proper sentence.
>
> This is OK, thanks.
Thanks, committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-02 19:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 19:54 [rfa] Fix comment in can_use_hardware_watchpoint Thiago Jung Bauermann
2010-07-02 13:21 ` Ulrich Weigand
2010-07-02 19:55 ` Thiago Jung Bauermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox