GDB (API)
/home/stan/gdb/src/gdb/xml-syscall.h
Go to the documentation of this file.
00001 /* Functions that provide the mechanism to parse a syscall XML file
00002    and get its values.
00003 
00004    Copyright (C) 2009-2013 Free Software Foundation, Inc.
00005 
00006    This file is part of GDB.
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 3 of the License, or
00011    (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00020 
00021 #ifndef XML_SYSCALL_H
00022 #define XML_SYSCALL_H 1
00023 
00024 /* Function used to set the name of the file which contains
00025    information about the system calls present in the current
00026    architecture.
00027    
00028    This function *should* be called before anything else, otherwise
00029    GDB won't be able to find the correct XML file to open and get
00030    the syscalls definitions.  */
00031 
00032 void set_xml_syscall_file_name (const char *name);
00033 
00034 /* Function that retrieves the syscall name corresponding to the given
00035    number.  It puts the requested information inside 'struct syscall'.  */
00036 
00037 void get_syscall_by_number (int syscall_number, struct syscall *s);
00038 
00039 /* Function that retrieves the syscall number corresponding to the given
00040    name.  It puts the requested information inside 'struct syscall'.  */
00041 
00042 void get_syscall_by_name (const char *syscall_name, struct syscall *s);
00043 
00044 /* Function used to retrieve the list of syscalls in the system.  This list
00045    is returned as an array of strings.  Returns the list of syscalls in the
00046    system, or NULL otherwise.  */
00047 
00048 const char **get_syscall_names (void);
00049 
00050 #endif /* XML_SYSCALL_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines