diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2009-07-06 18:31:20 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2009-07-06 18:31:20 +0000 |
commit | ac8c974e4fc01aa939e29bf9e20dc4e074eefbc8 (patch) | |
tree | 0c674c14944154c6dac7d14faae191c24be2effb /gdb/gdbserver/nto-low.h | |
parent | e23578923827cd7506e82b255fb0ed3839b880f2 (diff) | |
download | gdb-ac8c974e4fc01aa939e29bf9e20dc4e074eefbc8.zip gdb-ac8c974e4fc01aa939e29bf9e20dc4e074eefbc8.tar.gz gdb-ac8c974e4fc01aa939e29bf9e20dc4e074eefbc8.tar.bz2 |
Adding Neutrino gdbserver.
* configure: Regenerated.
* configure.ac: Add case for srv_qnx and set LIBS accordingly.
* configure.srv (i[34567]86-*-nto*): New target.
* nto-low.c, nto-low.h, nto-x86-low.c: New files.
* remote-utils.c [__QNX__]: Include sys/iomgr.h
(nto_comctrl) [__QNX__]: New function.
(enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
Diffstat (limited to 'gdb/gdbserver/nto-low.h')
-rw-r--r-- | gdb/gdbserver/nto-low.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gdb/gdbserver/nto-low.h b/gdb/gdbserver/nto-low.h new file mode 100644 index 0000000..8db0965 --- /dev/null +++ b/gdb/gdbserver/nto-low.h @@ -0,0 +1,45 @@ +/* Internal interfaces for the QNX Neutrino specific target code for gdbserver. + Copyright (C) 2009 + Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#ifndef NTO_LOW_H +#define NTO_LOW_H + +enum regset_type +{ + NTO_REG_GENERAL, + NTO_REG_FLOAT, + NTO_REG_SYSTEM, + NTO_REG_ALT, + NTO_REG_END +}; + +struct nto_target_ops +{ + /* Architecture specific setup. */ + void (*arch_setup) (void); + int num_regs; + int (*register_offset) (int gdbregno); + const unsigned char *breakpoint; + int breakpoint_len; +}; + +extern struct nto_target_ops the_low_target; + +#endif + |