1 /* Internal interfaces for the QNX Neutrino specific target code for gdbserver.
2    Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
3 
4    This file is part of GDB.
5 
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3 of the License, or
9    (at your option) any later version.
10 
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18 
19 #ifndef NTO_LOW_H
20 #define NTO_LOW_H
21 
22 enum regset_type
23 {
24   NTO_REG_GENERAL,
25   NTO_REG_FLOAT,
26   NTO_REG_SYSTEM,
27   NTO_REG_ALT,
28   NTO_REG_END
29 };
30 
31 struct nto_target_ops
32 {
33   /* Architecture specific setup.  */
34   void (*arch_setup) (void);
35   int num_regs;
36   int (*register_offset) (int gdbregno);
37   const unsigned char *breakpoint;
38   int breakpoint_len;
39 };
40 
41 extern struct nto_target_ops the_low_target;
42 
43 #endif
44 
45