repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gdb6
/
gdb
/
testsuite
/
gdb.base
/
recurse.c
blob
798177888c9b90f143d1175e70abc011d2a6e783
1
/* Trivial code used to test watchpoints in recursive code and
2
auto-deletion of watchpoints as they go out of scope. */
3
4
#ifdef PROTOTYPES
5
static int
6
recurse
(
int
a
)
7
#else
8
static int
9
recurse
(
a
)
10
int
a
;
11
#endif
12
{
13
int
b
=
0
;
14
15
if
(
a
==
1
)
16
return
1
;
17
18
b
=
a
;
19
b
*=
recurse
(
a
-
1
);
20
return
b
;
21
}
22
23
int
main
()
24
{
25
#ifdef usestubs
26
set_debug_traps
();
27
breakpoint
();
28
#endif
29
recurse
(
10
);
30
return
0
;
31
}