mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
* m2-valprint.c (print_unbounded_array): Pass
value_contents_for_printing rather than value_contents, to m2_print_array_contents. Also pass in the value.
This commit is contained in:
parent
831adc1f7d
commit
66d61a4cab
@ -1,3 +1,9 @@
|
||||
2011-01-25 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* m2-valprint.c (print_unbounded_array): Pass
|
||||
value_contents_for_printing rather than value_contents, to
|
||||
m2_print_array_contents. Also pass in the value.
|
||||
|
||||
2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
|
||||
|
@ -201,9 +201,10 @@ m2_print_unbounded_array (struct type *type, const gdb_byte *valaddr,
|
||||
len = unpack_field_as_long (type, valaddr + embedded_offset, 1);
|
||||
|
||||
fprintf_filtered (stream, "{");
|
||||
m2_print_array_contents (value_type (val), value_contents(val),
|
||||
m2_print_array_contents (value_type (val),
|
||||
value_contents_for_printing (val),
|
||||
value_embedded_offset (val), addr, stream,
|
||||
recurse, NULL, options, len);
|
||||
recurse, val, options, len);
|
||||
fprintf_filtered (stream, ", HIGH = %d}", (int) len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user