aboutsummaryrefslogtreecommitdiff
path: root/gdb/ns32k-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-14 00:23:59 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-14 00:23:59 +0000
commit32f6f25d26077d885a4d49b26abf2f7ceadbf334 (patch)
tree72187f6ed055fb977d3f0363f644ed4b38d4d66d /gdb/ns32k-tdep.c
parentc98b0392149f9c60f29d91e965a67d745be2c884 (diff)
downloadgdb-32f6f25d26077d885a4d49b26abf2f7ceadbf334.zip
gdb-32f6f25d26077d885a4d49b26abf2f7ceadbf334.tar.gz
gdb-32f6f25d26077d885a4d49b26abf2f7ceadbf334.tar.bz2
2002-08-13 Andrew Cagney <ac131313@redhat.com>
* vax-tdep.c (vax_get_saved_register): Delete function. (vax_gdbarch_init): Update. * ns32k-tdep.c (ns32k_get_saved_register): Delete function. (ns32k_gdbarch_init): Update. * alpha-tdep.c (alpha_get_saved_register): Delete function. (alpha_gdbarch_init): Update.
Diffstat (limited to 'gdb/ns32k-tdep.c')
-rw-r--r--gdb/ns32k-tdep.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c
index ae81ebe..01e89d4 100644
--- a/gdb/ns32k-tdep.c
+++ b/gdb/ns32k-tdep.c
@@ -337,51 +337,6 @@ ns32k_frame_locals_address (struct frame_info *frame)
return (frame->frame);
}
-static void
-ns32k_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp,
- struct frame_info *frame, int regnum,
- enum lval_type *lval)
-{
- CORE_ADDR addr;
-
- if (!target_has_registers)
- error ("No registers.");
-
- /* Normal systems don't optimize out things with register numbers. */
- if (optimized != NULL)
- *optimized = 0;
- addr = find_saved_register (frame, regnum);
- if (addr != 0)
- {
- if (lval != NULL)
- *lval = lval_memory;
- if (regnum == SP_REGNUM)
- {
- if (raw_buffer != NULL)
- {
- /* Put it back in target format. */
- store_address (raw_buffer, REGISTER_RAW_SIZE (regnum),
- (LONGEST) addr);
- }
- if (addrp != NULL)
- *addrp = 0;
- return;
- }
- if (raw_buffer != NULL)
- target_read_memory (addr, raw_buffer, REGISTER_RAW_SIZE (regnum));
- }
- else
- {
- if (lval != NULL)
- *lval = lval_register;
- addr = REGISTER_BYTE (regnum);
- if (raw_buffer != NULL)
- read_register_gen (regnum, raw_buffer);
- }
- if (addrp != NULL)
- *addrp = addr;
-}
-
/* Code to initialize the addresses of the saved registers of frame described
by FRAME_INFO. This includes special registers such as pc and fp saved in
special ways in the stack frame. sp is even more special: the address we
@@ -614,8 +569,6 @@ ns32k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_frame_args_skip (gdbarch, 8);
- set_gdbarch_get_saved_register (gdbarch, ns32k_get_saved_register);
-
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
/* Return value info */