+2020-06-07 Tom Tromey <tom@tromey.com>
+
+ * valprint.c (generic_val_print_float): Remove "embedded_offset"
+ parameter.
+ (generic_value_print): Update.
+
2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
Revert commit 982a38f60b0.
/* generic_val_print helper for TYPE_CODE_FLT and TYPE_CODE_DECFLOAT. */
static void
-generic_val_print_float (struct type *type,
- int embedded_offset, struct ui_file *stream,
+generic_val_print_float (struct type *type, struct ui_file *stream,
struct value *original_value,
const struct value_print_options *options)
{
- struct gdbarch *gdbarch = get_type_arch (type);
- int unit_size = gdbarch_addressable_memory_unit_size (gdbarch);
-
gdb_assert (!options->format);
const gdb_byte *valaddr = value_contents_for_printing (original_value);
- print_floating (valaddr + embedded_offset * unit_size, type, stream);
+ print_floating (valaddr, type, stream);
}
/* generic_value_print helper for TYPE_CODE_COMPLEX. */
if (options->format)
value_print_scalar_formatted (val, options, 0, stream);
else
- generic_val_print_float (type, 0, stream,
- val, options);
+ generic_val_print_float (type, stream, val, options);
break;
case TYPE_CODE_VOID: