diff options
Diffstat (limited to 'gdb/remote-vx.68.c')
-rw-r--r-- | gdb/remote-vx.68.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-vx.68.c b/gdb/remote-vx.68.c index 4848ca2..3a46d21 100644 --- a/gdb/remote-vx.68.c +++ b/gdb/remote-vx.68.c @@ -318,7 +318,8 @@ vx_call_function (function, nargs, args) to the structure, not the structure itself. */ if (REG_STRUCT_HAS_ADDR (using_gcc)) for (i = nargs - 1; i >= 0; i--) - if (TYPE_CODE (VALUE_TYPE (args[i])) == TYPE_CODE_STRUCT) + if ( TYPE_CODE (VALUE_TYPE (args[i])) == TYPE_CODE_STRUCT + || TYPE_CODE (VALUE_TYPE (args[i])) == TYPE_CODE_UNION) { CORE_ADDR addr; #if !(1 INNER_THAN 2) |