repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Re: ld plugin bfd_make_readable leak
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
overlays.c
blob
e9dc9a0b586c0687aea3f986abb03e9bb0352013
1
/* Support program for testing gdb's ability to debug overlays
2
in the inferior. */
3
4
#include
"ovlymgr.h"
5
6
extern
int
foo
(
int
);
7
extern
int
bar
(
int
);
8
extern
int
baz
(
int
);
9
extern
int
grbx
(
int
);
10
11
int
main
()
12
{
13
int
a
,
b
,
c
,
d
,
e
;
14
15
OverlayLoad
(
0
);
16
OverlayLoad
(
4
);
17
a
=
foo
(
1
);
18
OverlayLoad
(
1
);
19
OverlayLoad
(
5
);
20
b
=
bar
(
1
);
21
OverlayLoad
(
2
);
22
OverlayLoad
(
6
);
23
c
=
baz
(
1
);
24
OverlayLoad
(
3
);
25
OverlayLoad
(
7
);
26
d
=
grbx
(
1
);
27
e
=
a
+
b
+
c
+
d
;
28
return
(
e
!= (
'f'
+
'o'
+
'o'
29
+
'b'
+
'a'
+
'r'
30
+
'b'
+
'a'
+
'z'
31
+
'g'
+
'r'
+
'b'
+
'x'
));
32
33
}
34