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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [overlays.c] - Rev 827

Go to most recent revision | Compare with Previous | Blame | View Log

/* Support program for testing gdb's ability to debug overlays
   in the inferior.  */
 
#include "ovlymgr.h"
 
extern int foo PARAMS((int));
extern int bar PARAMS((int));
extern int baz PARAMS((int));
extern int grbx PARAMS((int));
 
int main ()
{
  int a, b, c, d, e;
 
  OverlayLoad (0);
  OverlayLoad (4);
  a = foo (1);
  OverlayLoad (1);
  OverlayLoad (5);
  b = bar (1);
  OverlayLoad (2);
  OverlayLoad (6);
  c = baz (1);
  OverlayLoad (3);
  OverlayLoad (7);
  d = grbx (1);
  e = a + b + c + d;
  return (e != ('f' + 'o' +'o'
		+ 'b' + 'a' + 'r'
		+ 'b' + 'a' + 'z'
		+ 'g' + 'r' + 'b' + 'x'));
 
}
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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