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 Tue, Oct 11, 2011 at 10:06 AM, Tom Tromey <> wrote:
>>>>>> "Sterling" == Sterling Augustine <> writes:
> Thanks.
> Sterling> 2011-10-07 ?Sterling Augustine ?<>
> Sterling> ? ? ? ?* dwarf2read.c (partial_die_parent_scope): Rearrange conditional logic.
> I think this line needs to wrap.


> Sterling> +if [get_compiler_info ${binfile} "c++"] {
> Sterling> + ? ?return -1
> Sterling> +}
> Does this really do anything?
> (I don't know.)

My dejagnu-fu is very weak, but this test is copied from rtti.exp,
which includes it. The test works just fine without these lines on my
machine, but perhaps that isn't the best indicator, so done.

> This stanza can be replaced by clean_restart.


Updated patch attached.


2011-10-07  Sterling Augustine  <>

       * dwarf2read.c (partial_die_parent_scope): Rearrange conditional

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]