aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/reread1.c
blob: ae9801047d4ad55aa9a8b8cb7f25fa4dbd0d4c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* pr 13484 */

#include <stdio.h>

int x;

void bar()
{
  x--;
}

void foo()
{
  x++;
}

int main()
{
#ifdef usestubs
  set_debug_traps ();
  breakpoint ();
#endif
  foo();
  bar();
  return 0;
}