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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* This file is used to test the 'catch syscall' feature on GDB.
2
 
3
   Please, if you are going to edit this file DO NOT change the syscalls
4
   being called (nor the order of them).  If you really must do this, then
5
   take a look at catch-syscall.exp and modify there too.
6
 
7
   Written by Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8
   September, 2008 */
9
 
10
#include <unistd.h>
11
#include <fcntl.h>
12
#include <sys/stat.h>
13
 
14
int
15
main (void)
16
{
17
        /* A close() with a wrong argument.  We are only
18
           interested in the syscall.  */
19
        close (-1);
20
 
21
        chroot (".");
22
 
23
        /* The last syscall.  Do not change this.  */
24
        _exit (0);
25
}

powered by: WebSVN 2.1.0

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