aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-12-22 04:37:37 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-12-22 04:37:37 +0000
commit567e1b4ec8fc6ef29e662987c5314f4cdb4bf287 (patch)
tree90083727a88512fd06bf5d6a431292550dcb0c9f
parent8edbb8432b7a237f11b05e2007f36d7fc3c52b38 (diff)
downloadgdb-567e1b4ec8fc6ef29e662987c5314f4cdb4bf287.zip
gdb-567e1b4ec8fc6ef29e662987c5314f4cdb4bf287.tar.gz
gdb-567e1b4ec8fc6ef29e662987c5314f4cdb4bf287.tar.bz2
* breakpoint.c (update_watchpoint): Adjust and extend the description
of this function. Fix one error message accordingly.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c15
2 files changed, 13 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index be33dcf..6b067ea 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-22 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (update_watchpoint): Adjust and extend the description
+ of this function. Fix one error message accordingly.
+
2008-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix hw watchpoints created before the inferior was started.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index fac96b6..d0619c1 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -808,9 +808,11 @@ fetch_watchpoint_value (struct expression *exp, struct value **valp,
}
}
-/* Assuming that B is a hardware watchpoint:
- - Reparse watchpoint expression, is REPARSE is non-zero
+/* Assuming that B is a watchpoint:
+ - Reparse watchpoint expression, if REPARSE is non-zero
- Evaluate expression and store the result in B->val
+ - Evaluate the condition if there is one, and store the result
+ in b->loc->cond.
- Update the list of values that must be watched in B->loc.
If the watchpoint is disabled, do nothing. If this is
@@ -823,10 +825,9 @@ update_watchpoint (struct breakpoint *b, int reparse)
struct bp_location *loc;
bpstat bs;
- /* We don't free locations. They are stored in
- bp_location_chain and update_global_locations will
- eventually delete them and remove breakpoints if
- needed. */
+ /* We don't free locations. They are stored in bp_location_chain and
+ update_global_locations will eventually delete them and remove
+ breakpoints if needed. */
b->loc = NULL;
if (b->disposition == disp_del_at_next_stop)
@@ -972,7 +973,7 @@ update_watchpoint (struct breakpoint *b, int reparse)
else if (!within_current_scope)
{
printf_filtered (_("\
-Hardware watchpoint %d deleted because the program has left the block \n\
+Watchpoint %d deleted because the program has left the block \n\
in which its expression is valid.\n"),
b->number);
if (b->related_breakpoint)