[commit] Fix comment for free_all_values
Doug Evans
dje@google.com
Fri Aug 28 00:14:00 GMT 2009
Hi.
free_all_values is called before each command, not after.
I changed the comment thusly.
I can change the wording however y'all want.
2009-08-27 Doug Evans <dje@google.com>
* value.c (free_all_values): Tweak comment.
Index: value.c
===================================================================
RCS file: /cvs/src/src/gdb/value.c,v
retrieving revision 1.93
diff -u -p -r1.93 value.c
--- value.c 19 Aug 2009 13:00:28 -0000 1.93
+++ value.c 27 Aug 2009 23:34:55 -0000
@@ -638,7 +638,8 @@ value_free_to_mark (struct value *mark)
}
/* Free all the values that have been allocated (except for those released).
- Called after each command, successful or not. */
+ Call after each command, successful or not.
+ In practice this is called before each command, which is sufficient. */
void
free_all_values (void)
More information about the Gdb-patches
mailing list