aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/rs6000
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-02-12 01:08:29 +0000
committerStu Grossman <grossman@cygnus>1994-02-12 01:08:29 +0000
commitd87d7b10af019be954f45adc271f5580e3b1ad86 (patch)
tree63e4bd9cd47af766229e04bfe63b5cd612ee7fc8 /gdb/config/rs6000
parenta15691a56e059d4c715353c3dece0fed51162363 (diff)
downloadgdb-d87d7b10af019be954f45adc271f5580e3b1ad86.zip
gdb-d87d7b10af019be954f45adc271f5580e3b1ad86.tar.gz
gdb-d87d7b10af019be954f45adc271f5580e3b1ad86.tar.bz2
* configure.in: Add Lynx/rs6000 support.
* lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error messages. Add rs6000 support. Don't try to modify unwritable registers. * rs6000-nat.c: Move lots of native dependent stuff (like core file support) from rs6000-tdep.c & xcoffexec.c to here. * rs6000-tdep.c: Move native dependent stuff to nat.c. * xcoffexec.c: Move native dependent stuff to nat.c. * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here from tm file. * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're really native. * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h: New files to support Lynx/rs6000.
Diffstat (limited to 'gdb/config/rs6000')
-rw-r--r--gdb/config/rs6000/.Sanitize5
-rw-r--r--gdb/config/rs6000/nm-rs6000lynx.h25
-rw-r--r--gdb/config/rs6000/tm-rs6000lynx.h32
-rw-r--r--gdb/config/rs6000/xm-rs6000lynx.h29
4 files changed, 91 insertions, 0 deletions
diff --git a/gdb/config/rs6000/.Sanitize b/gdb/config/rs6000/.Sanitize
index a820c67..afe94b1 100644
--- a/gdb/config/rs6000/.Sanitize
+++ b/gdb/config/rs6000/.Sanitize
@@ -22,10 +22,15 @@ Do-first:
Things-to-keep:
nm-rs6000.h
+nm-rs6000lynx.h
rs6000.mh
+rs6000lynx.mh
rs6000.mt
+rs6000lynx.mt
tm-rs6000.h
+tm-rs6000lynx.h
xm-rs6000.h
+xm-rs6000lynx.h
Things-to-lose:
diff --git a/gdb/config/rs6000/nm-rs6000lynx.h b/gdb/config/rs6000/nm-rs6000lynx.h
new file mode 100644
index 0000000..0c9701c
--- /dev/null
+++ b/gdb/config/rs6000/nm-rs6000lynx.h
@@ -0,0 +1,25 @@
+/* Native-dependent definitions for RS6000 running LynxOS.
+ Copyright 1993 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. */
+
+#ifndef NM_RS6000LYNX_H
+#define NM_RS6000LYNX_H
+
+#include "nm-lynx.h"
+
+#endif /* NM_RS6000LYNX_H */
diff --git a/gdb/config/rs6000/tm-rs6000lynx.h b/gdb/config/rs6000/tm-rs6000lynx.h
new file mode 100644
index 0000000..cab514d
--- /dev/null
+++ b/gdb/config/rs6000/tm-rs6000lynx.h
@@ -0,0 +1,32 @@
+/* Macro definitions for RS6000 running under LynxOS.
+ Copyright 1993 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. */
+
+#ifndef TM_RS6000LYNX_H
+#define TM_RS6000LYNX_H
+
+#include "tm-lynx.h"
+
+/* Use generic RS6000 definitions. */
+#include "rs6000/tm-rs6000.h"
+
+#undef PC_LOAD_SEGMENT
+
+#define CANNOT_STORE_REGISTER(regno) (regno == PS_REGNUM)
+
+#endif /* TM_RS6000LYNX_H */
diff --git a/gdb/config/rs6000/xm-rs6000lynx.h b/gdb/config/rs6000/xm-rs6000lynx.h
new file mode 100644
index 0000000..035d218
--- /dev/null
+++ b/gdb/config/rs6000/xm-rs6000lynx.h
@@ -0,0 +1,29 @@
+/* Host-dependent definitions for RS6000 running LynxOS, for GDB.
+ Copyright 1993 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. */
+
+#ifndef XM_RS6000LYNX_H
+#define XM_RS6000LYNX_H
+
+#define HOST_BYTE_ORDER BIG_ENDIAN
+
+/* Get generic LynxOS host definitions. */
+
+#include "xm-lynx.h"
+
+#endif /* XM_RS6000LYNX_H */