Skip to content

Commit 7348c5e

Browse files
author
Joel Brobecker
committed
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.
1 parent 567995e commit 7348c5e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

gdb/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2010-01-09 Joel Brobecker <[email protected]>
2+
3+
Fix the documentation of valprint.c:value_print.
4+
* valprint.c (value_print): Update the function description to
5+
mention that the syntax of the output follows the current_language,
6+
not necessarily C.
7+
18
2010-01-09 Jan Kratochvil <[email protected]>
29

310
Fix displacement of separate debug info files.

gdb/valprint.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,11 @@ common_val_print (struct value *val, struct ui_file *stream, int recurse,
366366
stream, recurse, options, language);
367367
}
368368

369-
/* Print the value VAL in C-ish syntax on stream STREAM according to
370-
OPTIONS.
371-
If the object printed is a string pointer, returns
372-
the number of string bytes printed. */
369+
/* Print on stream STREAM the value VAL according to OPTIONS. The value
370+
is printed using the current_language syntax.
371+
372+
If the object printed is a string pointer, return the number of string
373+
bytes printed. */
373374

374375
int
375376
value_print (struct value *val, struct ui_file *stream,

0 commit comments

Comments
 (0)