From: Fred Fish Date: Fri, 19 Jan 1996 15:36:24 +0000 (+0000) Subject: * hp300ux-nat.c (getpagesize): Remove unused function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c038399b5bda6b16758e4a264248b32ad5aa2de;p=binutils-gdb.git * hp300ux-nat.c (getpagesize): Remove unused function fetch_core_registers. (hp300ux_core_fns): Remove, is unused. (_initialize_core_hp300ux): Remove, is unused. (gdbcore.h): Remove #include, no longer needed. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9c92af76177..0bc8c704156 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Fri Jan 19 07:19:38 1996 Fred Fish + + * hp300ux-nat.c (getpagesize): Remove unused function + fetch_core_registers. + (hp300ux_core_fns): Remove, is unused. + (_initialize_core_hp300ux): Remove, is unused. + (gdbcore.h): Remove #include, no longer needed. + Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com) * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid diff --git a/gdb/hp300ux-nat.c b/gdb/hp300ux-nat.c index af8d098d014..e1641f9fe11 100644 --- a/gdb/hp300ux-nat.c +++ b/gdb/hp300ux-nat.c @@ -32,8 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include -#include "gdbcore.h" - #include /* Get kernel_u_addr using HPUX-style nlist(). */ @@ -209,77 +207,8 @@ store_inferior_registers (regno) return; } - -#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 */ - -static 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 () { return 4096; } - - -/* Register that we are able to handle hp300ux core file formats. - FIXME: is this really bfd_target_unknown_flavour? */ - -static struct core_fns hp300ux_core_fns = -{ - bfd_target_unknown_flavour, - fetch_core_registers, - NULL -}; - -void -_initialize_core_hp300ux () -{ - add_core_fns (&hp300ux_core_fns); -}