diff options
author | K. Richard Pixley <rich@cygnus> | 1992-10-02 05:50:17 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1992-10-02 05:50:17 +0000 |
commit | ef6f3a8b1fb50e7db99538f955879515ad6c9657 (patch) | |
tree | b88c14e0f3780a3eb4c6cc587fd743fc7d17e3f0 /gdb/nm-rs6000.h | |
parent | cec673a2a5837e10576991bb5b5db3a51d470388 (diff) | |
download | gdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.zip gdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.tar.gz gdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.tar.bz2 |
Rs6000 native support.
* infptrace.c: remove #ifdef USG from around include ptrace.h.
machines without this header should not be compiling this file.
* nm-rs6000.h, rs6000-nat.c: new files for native support.
* rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
* rs6000-xdep.c: removed. all code now in rs6000-nat.c.
* xm-rs6000.h: do not include ptrace.h.
(ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
* config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
infptrace.o and inftarg.o move to NATDEPFIES.
(NAT_FILE, NATDEPFILES): new macro for native support.
Diffstat (limited to 'gdb/nm-rs6000.h')
-rw-r--r-- | gdb/nm-rs6000.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/nm-rs6000.h b/gdb/nm-rs6000.h new file mode 100644 index 0000000..baa878d --- /dev/null +++ b/gdb/nm-rs6000.h @@ -0,0 +1,30 @@ +/* IBM RS/6000 native-dependent macros for GDB, the GNU debugger. + Copyright 1986, 1987, 1989, 1991, 1992 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 2 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, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* Do implement the attach and detach commands. */ + +#define ATTACH_DETACH + +#define PTRACE_ATTACH PT_ATTACH +#define PTRACE_DETACH PT_DETACH + +/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ + +#define FETCH_INFERIOR_REGISTERS + |