~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to gdb/testsuite/gdb.cp/shadow.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
namespace A
 
2
{
 
3
  int x = 11;
 
4
}
 
5
 
 
6
int x = 22;
 
7
int y = 0;
 
8
 
 
9
class B
 
10
{
 
11
public:
 
12
  int x;
 
13
 
 
14
  int
 
15
  func()
 
16
  {
 
17
    x = 33;
 
18
    y++; // marker1
 
19
 
 
20
      {
 
21
        int x = 44;
 
22
        y++; // marker2
 
23
 
 
24
          {
 
25
            int x = 55;
 
26
            y++; // marker3
 
27
 
 
28
              {
 
29
                using namespace A;
 
30
                y++; // marker4
 
31
 
 
32
                using A::x;
 
33
                y++; // marker5
 
34
              }
 
35
          }
 
36
      }
 
37
  }
 
38
};
 
39
 
 
40
int
 
41
main()
 
42
{
 
43
  B theB;
 
44
  return theB.func();
 
45
}