* 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:
Pedro Alves 2011-01-25 17:43:29 +00:00
parent 831adc1f7d
commit 66d61a4cab
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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);
}