summaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-01 19:22:22 +0000
committerTom Tromey <tromey@redhat.com>2012-03-01 19:22:22 +0000
commitbe0e231fc490d5b36b7462a9e9b5e660d83bd0f1 (patch)
tree68a34901f3fce322eb592268c3a07a0932d0f558 /gdb/valprint.c
parent5c4b7c74f38156e80e2b3c1c57f070ea45bcde1c (diff)
downloadgdb-be0e231fc490d5b36b7462a9e9b5e660d83bd0f1.tar.gz
* 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.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index a348cf48cdb..9ff0f27f235 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