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 PARAMS((int)); 7 extern int bar PARAMS((int)); 8 extern int baz PARAMS((int)); 9 extern int grbx PARAMS((int)); 10 main()11int 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 35