Bug 10541

Summary: GDB does not understand nested namespace aliases aliases
Product: gdb Reporter: Sami Wagiaalla <swagiaal>
Component: c++Assignee: Keith Seitz <keiths>
Status: RESOLVED FIXED    
Severity: normal CC: gdb-prs, keiths
Priority: P2    
Version: archer   
Target Milestone: 7.7   
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=7935
Host: Target:
Build: Last reconfirmed:

Description Sami Wagiaalla 2009-08-20 17:44:56 UTC
namespace A{
  int ax;
}

namespace B{
  namespace BA = A
}

gdb cannot p B::BA::ax nor ptype B::BA
Comment 1 Sourceware Commits 2013-11-13 20:40:38 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  74921315b6734554793a37f7a152878c45b7d4ac (commit)
      from  793156e67263707a4184321d9154dea6ad99575a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=74921315b6734554793a37f7a152878c45b7d4ac

commit 74921315b6734554793a37f7a152878c45b7d4ac
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Nov 13 12:33:34 2013 -0800

    PR c++/7539
    PR c++/10541
    
    This patch fixes some namespace alias bugs reported in the above bugs.
    Links to all mailing list discussion:
    
    https://sourceware.org/ml/gdb-patches/2013-07/msg00649.html
    https://sourceware.org/ml/gdb-patches/2013-09/msg00557.html
    https://sourceware.org/ml/gdb-patches/2013-11/msg00156.html

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                     |   16 ++
 gdb/cp-support.c                  |   12 ++-
 gdb/dwarf2read.c                  |   75 +++++++++-
 gdb/testsuite/ChangeLog           |    9 +
 gdb/testsuite/gdb.cp/nsalias.cc   |   23 +++
 gdb/testsuite/gdb.cp/nsalias.exp  |  322 +++++++++++++++++++++++++++++++++++++
 gdb/testsuite/gdb.cp/nsrecurs.exp |   10 +-
 7 files changed, 460 insertions(+), 7 deletions(-)
 create mode 100644 gdb/testsuite/gdb.cp/nsalias.cc
 create mode 100644 gdb/testsuite/gdb.cp/nsalias.exp
Comment 2 Keith Seitz 2013-11-13 22:05:27 UTC
A patch for this bug was just committed, so I am closing this.
Comment 3 Keith Seitz 2013-11-13 22:12:25 UTC
[Would help if I actually closed the bug as I said I would...]