OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [overlays.c] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* 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
 
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.