summaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-08-16 19:19:20 +0000
committerTom Tromey <tromey@redhat.com>2010-08-16 19:19:20 +0000
commit3e06230a605ff3aa18120d86554fd9e2d679632a (patch)
tree5c1dd3c760c0c73c6083d0fb55b70115e5a3cbd2 /gdb/value.c
parentca5a787de620fa149a6a5f2f161b6ea20bd74f4d (diff)
downloadgdb-3e06230a605ff3aa18120d86554fd9e2d679632a.tar.gz
gdb
* value.c (release_value): Clear 'next' pointer. * breakpoint.c (watch_command_1): Add 'just_location' argument. (watch_command_wrapper): Update. (watch_maybe_just_location): New function. (watch_command): Update. (rwatch_command_wrapper): Update. (rwatch_command): Update. (awatch_command_wrapper): Update. (awatch_command): Update. (check_for_argument): New function. (_initialize_breakpoint): Update help text. gdb/testsuite * gdb.base/help.exp: Update. * gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): Delete watchpoint. (test_watch_location): New proc. (test_watchpoint_in_big_blob): Delete watchpoint. * gdb.base/watchpoint.c (func5): New function. (main): Call it. gdb/doc * gdb.texinfo (Set Watchpoints): Document -location option.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index b65ba32eb39..d1c37e37c2d 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -747,6 +747,7 @@ release_value (struct value *val)
if (all_values == val)
{
all_values = val->next;
+ val->next = NULL;
return;
}
@@ -755,6 +756,7 @@ release_value (struct value *val)
if (v->next == val)
{
v->next = val->next;
+ val->next = NULL;
break;
}
}