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

« back to all changes in this revision

Viewing changes to gdb/testsuite/gdb.base/scope1.c

  • 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:
32
32
}
33
33
 
34
34
/* On some systems, such as AIX, unreferenced variables are deleted
35
 
   from the executable.  */
 
35
   from the executable.  On other compilers, such as ARM RealView,
 
36
   const variables without their address taken are deleted.  */
36
37
void usestatics1 ()
37
38
{
38
 
  void useit1 (int val);
 
39
  void useit1 (const int *val);
39
40
  
40
 
  useit1 (filelocal);
41
 
  useit1 (filelocal_bss);
42
 
  useit1 (filelocal_ro);
 
41
  useit1 (&filelocal);
 
42
  useit1 (&filelocal_bss);
 
43
  useit1 (&filelocal_ro);
43
44
}
44
45
 
45
46
#ifdef PROTOTYPES
46
 
void useit1 (int val)
 
47
void useit1 (const int *val)
47
48
#else
48
 
void useit1 (val) int val;
 
49
void useit1 (val) const int *val;
49
50
#endif
50
51
{
51
52
    static int usedval;
52
53
 
53
 
    usedval = val;
 
54
    usedval = *val;
54
55
}