summaryrefslogtreecommitdiff
path: root/gdb/m68k-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-19 01:20:12 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-19 01:20:12 +0000
commitc6f0559b48289f9b295ab3fac1bb5d78f88e5d91 (patch)
treeb929e3257906fce9cfefc27afbe5ef43a05ec789 /gdb/m68k-tdep.c
parent8819f097a47d9f8ea0fb66fc4c54e8b202f81979 (diff)
downloadbinutils-gdb-c6f0559b48289f9b295ab3fac1bb5d78f88e5d91.tar.gz
2004-01-18 Andrew Cagney <cagney@redhat.com>
* remote-sds.c (tohex): Delete unused function. Update copyright. * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto. * v850-tdep.c (v850_register_virtual_size): Ditto. * target.c (normal_target_post_startup_inferior): Ditto. * source.c (ambiguous_line_spec): Ditto. * remote.c (adapt_remote_get_threadinfo): Ditto. * mi/mi-out.c (out_field_fmt): Ditto. * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto. (output_control_change_notification): Ditto. * m68k-tdep.c (m68k_register_byte): Ditto. (m68k_remote_breakpoint_from_pc): Ditto. * ui-out.c (init_ui_out_state): Delete unused declaration. * stabsread.c (search_value): Ditto. * mi/mi-cmd-env.c (env_cli_command): Ditto. * maint.c (print_section_table): Ditto. * infrun.c (set_follow_fork_mode_command): Ditto.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r--gdb/m68k-tdep.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index bb41ba5075d..7938426d985 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1,7 +1,7 @@
/* Target dependent code for the Motorola 68000 series.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001,
- 2002, 2003
- Free Software Foundation, Inc.
+
+ Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
+ 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -69,17 +69,6 @@
#endif
-/* gdbarch_breakpoint_from_pc is set to m68k_local_breakpoint_from_pc
- so m68k_remote_breakpoint_from_pc is currently not used. */
-
-static const unsigned char *
-m68k_remote_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
-{
- static unsigned char break_insn[] = {0x4e, (0x40 | REMOTE_BPT_VECTOR)};
- *lenptr = sizeof (break_insn);
- return break_insn;
-}
-
static const unsigned char *
m68k_local_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{
@@ -144,20 +133,6 @@ m68k_register_name (int regnum)
else
return register_names[regnum];
}
-
-/* Index within `registers' of the first byte of the space for
- register regnum. */
-
-static int
-m68k_register_byte (int regnum)
-{
- if (regnum >= M68K_FPC_REGNUM)
- return (((regnum - M68K_FPC_REGNUM) * 4) + 168);
- else if (regnum >= FP0_REGNUM)
- return (((regnum - FP0_REGNUM) * 12) + 72);
- else
- return (regnum * 4);
-}
/* Extract from an array REGBUF containing the (raw) register state, a
function return value of TYPE, and copy that, in virtual format,