aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vx.68.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-27 09:43:59 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-27 09:43:59 +0000
commitf1d77e90532e9ac4a4362a4e55d7b975cb0be991 (patch)
tree2246c2f3fb742f008789481a8aa17ec0b69a3b27 /gdb/remote-vx.68.c
parent7d7ecbddb0308f987cd71ded534823539e719879 (diff)
downloadgdb-f1d77e90532e9ac4a4362a4e55d7b975cb0be991.zip
gdb-f1d77e90532e9ac4a4362a4e55d7b975cb0be991.tar.gz
gdb-f1d77e90532e9ac4a4362a4e55d7b975cb0be991.tar.bz2
Improve G++ debugging support.
Diffstat (limited to 'gdb/remote-vx.68.c')
-rw-r--r--gdb/remote-vx.68.c3
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)