diff options
author | Daniel Jacobowitz <drow@false.org> | 2010-03-15 02:42:54 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2010-03-15 02:42:54 +0000 |
commit | 3c13bc11c316f90ec47839c30301115d2cd12eef (patch) | |
tree | 5219be6718cb029d24507690b6c930a501d7a2f1 /gdb/gdbtypes.h | |
parent | d43d0b53f63b1e8801ad5d21642b542f742dd43e (diff) | |
download | binutils-gdb-3c13bc11c316f90ec47839c30301115d2cd12eef.tar.gz |
* gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 0315d861921..b1e1d0cac79 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1045,7 +1045,8 @@ extern void allocate_gnat_aux_type (struct type *); #define TYPE_IS_OPAQUE(thistype) (((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) || \ (TYPE_CODE (thistype) == TYPE_CODE_UNION)) && \ (TYPE_NFIELDS (thistype) == 0) && \ - (HAVE_CPLUS_STRUCT (thistype) && (TYPE_NFN_FIELDS (thistype) == 0)) && \ + (!HAVE_CPLUS_STRUCT (thistype) \ + || TYPE_NFN_FIELDS (thistype) == 0) && \ (TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype))) struct builtin_type |