Back out change to signals.exp (test_handle_all_print): Add setup_xfail for "alpha...
[deliverable/binutils-gdb.git] / gdb / hp300ux-nat.c
index d5248fc5ee7f359140a41b2d28f2348a9046cc14..e1641f9fe11baa1c1e3d0d2cf40b92e5de388537 100644 (file)
@@ -15,7 +15,7 @@ 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.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "frame.h"
@@ -24,20 +24,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Defining this means some system include files define some extra stuff.  */
 #define WOPR
 #include <sys/param.h>
-#include <sys/dir.h>
 #include <signal.h>
 #include <sys/user.h>
-#include <sys/ioctl.h>
 #include <fcntl.h>
 
 #include <sys/ptrace.h>
 #include <sys/reg.h>
 #include <sys/trap.h>
 
-#include "gdbcore.h"
-
 #include <sys/file.h>
-#include <sys/stat.h>
 
 /* Get kernel_u_addr using HPUX-style nlist().  */
 CORE_ADDR kernel_u_addr;
@@ -53,7 +48,8 @@ struct hpnlist {
 static struct hpnlist nl[] = {{ "_u", -1, }, { (char *) 0, }};
 
 /* read the value of the u area from the hp-ux kernel */
-void _initialize_kernel_u_addr ()
+void
+_initialize_hp300ux_nat ()
 {
 #ifndef HPUX_VERSION_5
     nlist ("/hp-ux", nl);
@@ -211,58 +207,6 @@ store_inferior_registers (regno)
   return;
 }
 
-\f
-#if 0
-
-/* This function is no longer used.  The version in coredep.c is used
-   instead.  */
-
-/* Take the register values out of a core file and store
-   them where `read_register' will find them.  */
-
-#ifdef HPUX_VERSION_5
-#define e_PS e_regs[PS]
-#define e_PC e_regs[PC]
-#endif /* HPUX_VERSION_5 */
-
-void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
-     char *core_reg_sect;
-     unsigned int core_reg_size;
-     int which;
-     unsigned int reg_addr;    /* Unused in this version */
-{
-  int val, regno;
-  struct user u;
-  struct exception_stack *pes = (struct exception_stack *) core_reg_sect;
-#define es (*pes)
-  char *buf;
-
-  if (which == 0) {
-    if (core_reg_size < 
-                 ((char *) &es.e_offset - (char *) &es.e_regs[R0]))
-         error ("Not enough registers in core file");
-    for (regno = 0; (regno < PS_REGNUM); regno++)
-      supply_register (regno, (char *) &es.e_regs[regno + R0]);
-    val = es.e_PS;
-    supply_register (regno++, (char *) &val);
-    supply_register (regno++, (char *) &es.e_PC);
-
-  } else if (which == 2) {
-
-    /* FIXME: This may not work if the float regs and control regs are
-       discontinuous.  */
-    for (regno = FP0_REGNUM, buf = core_reg_sect;
-        (regno < NUM_REGS);
-        buf += REGISTER_RAW_SIZE (regno), regno++)
-      {
-       supply_register (regno, buf);
-      }
-  }
-}
-
-#endif /* 0 */
-
 int
 getpagesize ()
 {
This page took 0.024325 seconds and 4 git commands to generate.