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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [xml-syscall.h] - Blame information for rev 227

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

Line No. Rev Author Line
1 227 jeremybenn
/* Functions that provide the mechanism to parse a syscall XML file
2
   and get its values.
3
 
4
   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
5
 
6
   This file is part of GDB.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 3 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
 
21
#ifndef XML_SYSCALL_H
22
#define XML_SYSCALL_H 1
23
 
24
/* Function used to set the name of the file which contains
25
   information about the system calls present in the current
26
   architecture.
27
 
28
   This function *should* be called before anything else, otherwise
29
   GDB won't be able to find the correct XML file to open and get
30
   the syscalls definitions.  */
31
 
32
void set_xml_syscall_file_name (const char *name);
33
 
34
/* Function that retrieves the syscall name corresponding to the given
35
   number.  It puts the requested information inside 'struct syscall'.  */
36
 
37
void get_syscall_by_number (int syscall_number, struct syscall *s);
38
 
39
/* Function that retrieves the syscall number corresponding to the given
40
   name.  It puts the requested information inside 'struct syscall'.  */
41
 
42
void get_syscall_by_name (const char *syscall_name, struct syscall *s);
43
 
44
/* Function used to retrieve the list of syscalls in the system.  This list
45
   is returned as an array of strings.  Returns the list of syscalls in the
46
   system, or NULL otherwise.  */
47
 
48
const char **get_syscall_names (void);
49
 
50
#endif /* XML_SYSCALL_H */

powered by: WebSVN 2.1.0

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