Skip to content

Commit

Permalink
Fix the documentation of valprint.c:value_print.
Browse files Browse the repository at this point in the history
        * valprint.c (value_print): Update the function description to
        mention that the syntax of the output follows the current_language,
        not necessarily C.
  • Loading branch information
Joel Brobecker committed Jan 9, 2010
1 parent 567995e commit 7348c5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions gdb/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2010-01-09 Joel Brobecker <[email protected]>

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 <[email protected]>

Fix displacement of separate debug info files.
Expand Down
9 changes: 5 additions & 4 deletions gdb/valprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7348c5e

Please sign in to comment.