This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/829: GDB doesn't know about using directives


>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:


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