gdb/gdbserver/nto-low.h - gdb

Data types defined

Macros defined

Source code

  1. /* Internal interfaces for the QNX Neutrino specific target code for gdbserver.
  2.    Copyright (C) 2009-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

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

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

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

  14. #ifndef NTO_LOW_H
  15. #define NTO_LOW_H

  16. struct target_desc;

  17. enum regset_type
  18. {
  19.   NTO_REG_GENERAL,
  20.   NTO_REG_FLOAT,
  21.   NTO_REG_SYSTEM,
  22.   NTO_REG_ALT,
  23.   NTO_REG_END
  24. };

  25. struct nto_target_ops
  26. {
  27.   /* Architecture specific setup.  */
  28.   void (*arch_setup) (void);
  29.   int num_regs;
  30.   int (*register_offset) (int gdbregno);
  31.   const unsigned char *breakpoint;
  32.   int breakpoint_len;
  33. };

  34. extern struct nto_target_ops the_low_target;

  35. /* The inferior's target description.  This is a global because the
  36.    LynxOS ports support neither bi-arch nor multi-process.  */
  37. extern const struct target_desc *nto_tdesc;

  38. #endif