This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/829: GDB doesn't know about using directives
- From: carlton at math dot stanford dot edu
- To: gdb-gnats at sources dot redhat dot com
- Date: 15 Nov 2002 21:42:50 -0000
- Subject: gdb/829: GDB doesn't know about using directives
- Reply-to: carlton at math dot stanford dot edu
>Number: 829
>Category: gdb
>Synopsis: GDB doesn't know about using directives
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 15 13:48:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: carlton@math.stanford.edu
>Release: GNU gdb 2002-11-15-cvs
>Organization:
>Environment:
any
>Description:
GDB doesn't know about using directives in C++
>How-To-Repeat:
Compile this file:
namespace A {
int x = 1;
}
using namespace A;
int main()
{
x;
return 0;
}
Then try to print out x:
(gdb) b main
Breakpoint 1 at 0x80484a0: file using-direct.cc, line 11.
(gdb) r
Starting program: /cartan/carlton/sync/gdb-backup/namespace/prs/using-direct
Breakpoint 1, main () at using-direct.cc:11
11 return 0;
(gdb) p x
No symbol "x" in current context.
>Fix:
A good first step would be for GCC to generate the appropriate
debugging information...
>Release-Note:
>Audit-Trail:
>Unformatted: