This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix the documentation of valprint.c:value_print
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 9 Jan 2010 15:48:34 +0400
- Subject: [commit] Fix the documentation of valprint.c:value_print
Hello,
The comment documenting valprint.c:value_print was incorrectly saying
that the value being will be printed in C-ish syntax (the output follows
the syntax of the current_language). Fixed thusly.
2010-01-09 Joel Brobecker <brobecker@adacore.com>
Fix the documentation of valprint.c:value_print.
* valprint.c (value_print): Update the function description to
mention that the syntax of the output follows the current_language,
not necessarily C.
Checked in.
--
Joel
Index: valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/valprint.c,v
retrieving revision 1.88
diff -u -p -r1.88 valprint.c
--- valprint.c 1 Jan 2010 07:31:43 -0000 1.88
+++ valprint.c 9 Jan 2010 11:42:58 -0000
@@ -366,10 +366,11 @@ common_val_print (struct value *val, str
stream, recurse, options, language);
}
-/* Print the value VAL in C-ish syntax on stream STREAM according to
- OPTIONS.
- If the object printed is a string pointer, returns
- the number of string bytes printed. */
+/* Print on stream STREAM the value VAL according to OPTIONS. The value
+ is printed using the current_language syntax.
+
+ If the object printed is a string pointer, return the number of string
+ bytes printed. */
int
value_print (struct value *val, struct ui_file *stream,