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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [attach.c] - Blame information for rev 842

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* This program is intended to be started outside of gdb, and then
2
   attached to by gdb.  Thus, it simply spins in a loop.  The loop
3
   is exited when & if the variable 'should_exit' is non-zero.  (It
4
   is initialized to zero in this program, so the loop will never
5
   exit unless/until gdb sets the variable to non-zero.)
6
   */
7
#include <stdio.h>
8
 
9
int  should_exit = 0;
10
 
11
int main ()
12
{
13
  int  local_i = 0;
14
 
15
  while (! should_exit)
16
    {
17
      local_i++;
18
    }
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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