Bug 10541 - GDB does not understand nested namespace aliases aliases
Summary: GDB does not understand nested namespace aliases aliases
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: archer
: P2 normal
Target Milestone: 7.7
Assignee: Keith Seitz
Depends on:
Reported: 2009-08-20 17:44 UTC by Sami Wagiaalla
Modified: 2013-11-13 22:12 UTC (History)
2 users (show)

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
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 cvs-commit@gcc.gnu.org 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 -----------------------------------------------------------------

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:


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...]