This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug exp/12941] New: Ignore __extension__ in the parser


http://sourceware.org/bugzilla/show_bug.cgi?id=12941

           Summary: Ignore __extension__ in the parser
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com


Actual:
(gdb) ptype ENUM_BITFIELD(address_class)
No symbol "__extension__" in current context.

Expected:
(gdb) ptype enum address_class
type = enum address_class {LOC_UNDEF, LOC_CONST, LOC_STATIC, LOC_REGISTER,
LOC_ARG, LOC_REF_ARG, LOC_REGPARM_ADDR, LOC_LOCAL, LOC_TYPEDEF, LOC_LABEL,
LOC_BLOCK, LOC_CONST_BYTES, LOC_UNRESOLVED, LOC_OPTIMIZED_OUT, LOC_COMPUTED}

This breaks usage of macros in -g3 builds.

(gdb) info macro ENUM_BITFIELD
[...]
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE


But for example ({...}) still cannot get be parsed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]