From: Daniel Jacobowitz Date: Mon, 15 Mar 2010 02:42:54 +0000 (+0000) Subject: * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c13bc11c316f90ec47839c30301115d2cd12eef;p=binutils-gdb.git * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39440766333..2dd4a297076 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-14 Daniel Jacobowitz + + * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. + 2010-03-14 Daniel Jacobowitz * charset.c [USE_WIN32API]: Include . 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