summaryrefslogtreecommitdiff
path: root/gdb/f-valprint.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-04-22 06:53:18 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-04-22 06:53:18 +0000
commit739320d1a6af52fe70831e500f27227b385e554e (patch)
treeaf0c675575ec9e6d1aaf78fb9dcc8b30a01c6a6d /gdb/f-valprint.c
parent935cf51fa7f81f228d92935f74ebcb9062e8d246 (diff)
downloadgdb-739320d1a6af52fe70831e500f27227b385e554e.tar.gz
* eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
multi_f77_subscript to support values from registers. * valarith.c (value_subscripted_rvalue): Remove prototype and static. * value.h (value_subscripted_rvalue): Add prototype. * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION. Fix output. * f-valprint.c (f_val_print): Likewise.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r--gdb/f-valprint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index b2e327189b5..70ad59f9bf2 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -589,9 +589,10 @@ f_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
break;
case TYPE_CODE_STRUCT:
+ case TYPE_CODE_UNION:
/* Starting from the Fortran 90 standard, Fortran supports derived
types. */
- fprintf_filtered (stream, "{ ");
+ fprintf_filtered (stream, "( ");
for (index = 0; index < TYPE_NFIELDS (type); index++)
{
int offset = TYPE_FIELD_BITPOS (type, index) / 8;
@@ -601,7 +602,7 @@ f_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
if (index != TYPE_NFIELDS (type) - 1)
fputs_filtered (", ", stream);
}
- fprintf_filtered (stream, "}");
+ fprintf_filtered (stream, " )");
break;
default: