diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 17:43:29 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 17:43:29 +0000 |
commit | 66d61a4cabfc231963c2d901d345198498d9aa21 (patch) | |
tree | 5c07c4bf42ecde1e8c8068b299a59d390ec2b900 | |
parent | 831adc1f7d52bbb0196d7129f66284e746a8a071 (diff) | |
download | gdb-66d61a4cabfc231963c2d901d345198498d9aa21.zip gdb-66d61a4cabfc231963c2d901d345198498d9aa21.tar.gz gdb-66d61a4cabfc231963c2d901d345198498d9aa21.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/m2-valprint.c | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6565d19..3ad1b84 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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) diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c index 0cf9602..192c71b 100644 --- a/gdb/m2-valprint.c +++ b/gdb/m2-valprint.c @@ -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); } |