gdb/xml-syscall.h - gdb

Macros defined

Source code

  1. /* Functions that provide the mechanism to parse a syscall XML file
  2.    and get its values.

  3.    Copyright (C) 2009-2015 Free Software Foundation, Inc.

  4.    This file is part of GDB.

  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 3 of the License, or
  8.    (at your option) any later version.

  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.

  13.    You should have received a copy of the GNU General Public License
  14.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  15. #ifndef XML_SYSCALL_H
  16. #define XML_SYSCALL_H 1

  17. /* Function used to set the name of the file which contains
  18.    information about the system calls present in the current
  19.    architecture.

  20.    This function *should* be called before anything else, otherwise
  21.    GDB won't be able to find the correct XML file to open and get
  22.    the syscalls definitions.  */

  23. void set_xml_syscall_file_name (struct gdbarch *gdbarch,
  24.                                 const char *name);

  25. /* Function that retrieves the syscall name corresponding to the given
  26.    number.  It puts the requested information inside 'struct syscall'.  */

  27. void get_syscall_by_number (struct gdbarch *gdbarch,
  28.                             int syscall_number, struct syscall *s);

  29. /* Function that retrieves the syscall number corresponding to the given
  30.    name.  It puts the requested information inside 'struct syscall'.  */

  31. void get_syscall_by_name (struct gdbarch *gdbarch,
  32.                           const char *syscall_name, struct syscall *s);

  33. /* Function used to retrieve the list of syscalls in the system.  This list
  34.    is returned as an array of strings.  Returns the list of syscalls in the
  35.    system, or NULL otherwise.  */

  36. const char **get_syscall_names (struct gdbarch *gdbarch);

  37. #endif /* XML_SYSCALL_H */