aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-valprint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-01-25 17:43:29 +0000
committerPedro Alves <palves@redhat.com>2011-01-25 17:43:29 +0000
commit66d61a4cabfc231963c2d901d345198498d9aa21 (patch)
tree5c07c4bf42ecde1e8c8068b299a59d390ec2b900 /gdb/m2-valprint.c
parent831adc1f7d52bbb0196d7129f66284e746a8a071 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/m2-valprint.c')
-rw-r--r--gdb/m2-valprint.c5
1 files changed, 3 insertions, 2 deletions
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);
}