aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-09 11:46:13 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-09 11:46:13 +0000
commit7348c5e1e3f2574f130e7e591448a8c184c0b8a3 (patch)
tree5bd2b8b54418af8bc735ee41bb0224ddde4f229e /gdb/valprint.c
parent567995e103055787c86c42096397015a55e02fd4 (diff)
downloadgdb-7348c5e1e3f2574f130e7e591448a8c184c0b8a3.zip
gdb-7348c5e1e3f2574f130e7e591448a8c184c0b8a3.tar.gz
gdb-7348c5e1e3f2574f130e7e591448a8c184c0b8a3.tar.bz2
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.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index b105d7e..9468b22 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -366,10 +366,11 @@ common_val_print (struct value *val, struct ui_file *stream, int recurse,
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,