summaryrefslogtreecommitdiff
path: root/gdb
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
commit4124ef6660585e5b897ac94a1f62b47f014f0809 (patch)
tree1102c05b6e18e2048d2fed15862694e4fa7cd0d7 /gdb
parent07ced0fd294e617ba39f4bfd0359699d99fa19d5 (diff)
downloadgdb-4124ef6660585e5b897ac94a1f62b47f014f0809.tar.gz
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')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/valprint.c9
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index da66b7bed4e..423fc5b5ceb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix displacement of separate debug info files.
diff --git a/gdb/valprint.c b/gdb/valprint.c
index b105d7ecae2..9468b220945 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,