aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-17 18:48:52 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-17 18:48:52 +0000
commita109c7c1042127edfe32cbc50f315c3dc40f8607 (patch)
tree0322616410678495af3fd4898e49a5b3116fda2c /gdb/valprint.c
parent0cce5bd9dd8b740485b4ce847a0bd09a23097076 (diff)
downloadgdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.zip
gdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.tar.gz
gdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.tar.bz2
2010-05-17 Michael Snyder <msnyder@vmware.com>
* valarith.c: White space. * valops.c: White space. * valprint.c: White space. * value.c: White space. * varobj.c: White space. * xcoffread.c: White space. * xml-support.c: White space. * xml-tdesc.c: White space.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index de1161d..517e607 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -395,6 +395,7 @@ value_print (struct value *val, struct ui_file *stream,
value_address (val),
stream, 0, options,
current_language);
+
if (r)
return r;
}
@@ -1141,6 +1142,7 @@ val_print_array_elements (struct type *type, const gdb_byte *valaddr,
else
{
long low, hi;
+
if (get_array_bounds (type, &low, &hi))
len = hi - low + 1;
else