This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]