forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -644,7 +644,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
c_value_print (struct value *val, struct ui_file *stream,
|
||||
const struct value_print_options *options)
|
||||
{
|
||||
@@ -748,10 +748,11 @@ c_value_print (struct value *val, struct ui_file *stream,
|
||||
full ? "" : _(" [incomplete object]"));
|
||||
/* Print out object: enclosing type is same as real_type if
|
||||
full. */
|
||||
return val_print (value_enclosing_type (val),
|
||||
value_contents_for_printing (val), 0,
|
||||
value_address (val), stream, 0,
|
||||
val, &opts, current_language);
|
||||
val_print (value_enclosing_type (val),
|
||||
value_contents_for_printing (val), 0,
|
||||
value_address (val), stream, 0,
|
||||
val, &opts, current_language);
|
||||
return;
|
||||
/* Note: When we look up RTTI entries, we don't get any
|
||||
information on const or volatile attributes. */
|
||||
}
|
||||
@@ -760,17 +761,18 @@ c_value_print (struct value *val, struct ui_file *stream,
|
||||
/* No RTTI information, so let's do our best. */
|
||||
fprintf_filtered (stream, "(%s ?) ",
|
||||
TYPE_NAME (value_enclosing_type (val)));
|
||||
return val_print (value_enclosing_type (val),
|
||||
value_contents_for_printing (val), 0,
|
||||
value_address (val), stream, 0,
|
||||
val, &opts, current_language);
|
||||
val_print (value_enclosing_type (val),
|
||||
value_contents_for_printing (val), 0,
|
||||
value_address (val), stream, 0,
|
||||
val, &opts, current_language);
|
||||
return;
|
||||
}
|
||||
/* Otherwise, we end up at the return outside this "if". */
|
||||
}
|
||||
|
||||
return val_print (val_type, value_contents_for_printing (val),
|
||||
value_embedded_offset (val),
|
||||
value_address (val),
|
||||
stream, 0,
|
||||
val, &opts, current_language);
|
||||
val_print (val_type, value_contents_for_printing (val),
|
||||
value_embedded_offset (val),
|
||||
value_address (val),
|
||||
stream, 0,
|
||||
val, &opts, current_language);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user