This is the mail archive of the 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]

Re: Make DW_TAG_enumerator's consistent, regardless of containing scope

On Fri, Oct 7, 2011 at 4:42 PM, Keith Seitz <> wrote:
> On 10/07/2011 02:26 PM, Sterling Augustine wrote:
>> saugustine@sterling$ g++ -g -o enum-namespace
>> saugustine@sterling$ gdb ./enum-namespace
>> GNU gdb (GDB)
>> ...
>> (gdb) p foo::B_B
>> No symbol "B_B" in namespace "foo".
>> (gdb) p foo::B::B_B
>> `foo::B' is not defined as an aggregate type.
> First things first: this is going to need a test case.

Enclosed please find the same patch, only this time with a test case.

> I've tried to reproduce this, but I cannot seem to replicate using your
> instructions:

To recap: be sure to compile it like so:

g++ -g

The order of the source files matters.

OK to commit?


2011-10-07  Sterling Augustine  <>

       * dwarf2read.c (partial_die_parent_scope): Rearrange conditional logic.

2011-10-10  Sterling Augustine  <>

       * gdb.cp/ Add namespace-enum test.
       * gdb.cp/namespace-enum.exp: New file.
       * gdb.cp/namespace-enum.c: New file.
       * gdb.cp/namespace-enum-main.c: New file.

Attachment: enumerator-patch
Description: Binary data

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