This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/12941] New: Ignore __extension__ in the parser
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 27 Jun 2011 17:09:42 +0000
- Subject: [Bug exp/12941] New: Ignore __extension__ in the parser
- Auto-submitted: auto-generated
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.