This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] value.c (record_latest_value): Fix comment.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Cc: ludo at gnu dot org, eliz at gnu dot org
- Date: Thu, 20 Feb 2014 17:22:27 -0800
- Subject: [PATCH] value.c (record_latest_value): Fix comment.
- Authentication-results: sourceware.org; auth=none
Hi.
This patch fixes a comment that was found to be wrong in this thread:
https://sourceware.org/ml/gdb-patches/2014-02/msg00674.html
I checked as far back as 6.1.1, and it's never returned -1.
[I could go back further, but I don't see the point.]
2014-02-20 Doug Evans <dje@google.com>
* value.c (record_latest_value): Fix comment.
diff --git a/gdb/value.c b/gdb/value.c
index 73ba18e..50b0245 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1642,9 +1642,7 @@ set_value_component_location (struct value *component,
/* Access to the value history. */
/* Record a new value in the value history.
- Returns the absolute history index of the entry.
- Result of -1 indicates the value was not saved; otherwise it is the
- value history index of this new item. */
+ Returns the absolute history index of the entry. */
int
record_latest_value (struct value *val)