diff options
author | Tom Tromey <tromey@redhat.com> | 2012-03-01 19:22:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-03-01 19:22:22 +0000 |
commit | 8e069a981cbb9b33ccfbdd82ad7da5ce8b0c35b2 (patch) | |
tree | 6108ae13fd153220a3cc8249808bfce343b25bb1 /gdb/valprint.c | |
parent | be3359361a4b5306207e896b3966e03289340abc (diff) | |
download | gdb-8e069a981cbb9b33ccfbdd82ad7da5ce8b0c35b2.zip gdb-8e069a981cbb9b33ccfbdd82ad7da5ce8b0c35b2.tar.gz gdb-8e069a981cbb9b33ccfbdd82ad7da5ce8b0c35b2.tar.bz2 |
* value.h (value_print): Return void.
* valprint.c (value_print): Return void.
* p-valprint.c (pascal_value_print): Return void.
* p-lang.h (pascal_value_print): Return void.
* language.h (struct language_defn) <la_value_print>: Return
void.
* language.c (unk_lang_value_print): Return void.
* jv-valprint.c (java_value_print): Return void.
* jv-lang.h (java_value_print): Return void.
* f-valprint.c (c_value_print): Don't declare.
Include c-lang.h.
* c-valprint.c (c_value_print): Return void.
* c-lang.h (c_value_print): Return void.
* ada-valprint.c (ada_value_print): Return void.
* ada-lang.h (ada_value_print): Return void.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index a348cf4..9ff0f27 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -460,17 +460,14 @@ common_val_print (struct value *val, struct ui_file *stream, int recurse, } /* Print on stream STREAM the value VAL according to OPTIONS. The value - is printed using the current_language syntax. + is printed using the current_language syntax. */ - If the object printed is a string pointer, return the number of string - bytes printed. */ - -int +void value_print (struct value *val, struct ui_file *stream, const struct value_print_options *options) { if (!value_check_printable (val, stream, options)) - return 0; + return; if (!options->raw) { @@ -482,10 +479,10 @@ value_print (struct value *val, struct ui_file *stream, val, options, current_language); if (r) - return r; + return; } - return LA_VALUE_PRINT (val, stream, options); + LA_VALUE_PRINT (val, stream, options); } /* Called by various <lang>_val_print routines to print |