aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-06 16:11:06 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-06 16:11:06 +0000
commit85f4f2d828508af01a3726a13c73b082c4a760be (patch)
treeba8744f0157d6235da09da0dd4a8d81a6b8965d8 /gdb/hppa-tdep.c
parent934494036e819377f0b7d7673e245d6354c9754d (diff)
downloadgdb-85f4f2d828508af01a3726a13c73b082c4a760be.zip
gdb-85f4f2d828508af01a3726a13c73b082c4a760be.tar.gz
gdb-85f4f2d828508af01a3726a13c73b082c4a760be.tar.bz2
2004-04-06 Andrew Cagney <cagney@redhat.com>
* hppa-tdep.c (hppa_breakpoint_from_pc): Make static. (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32): (hppa_breakpoint_from_pc): Delete.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index d383c3d..90bdd10 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -658,7 +658,7 @@ find_unwind_entry (CORE_ADDR pc)
return NULL;
}
-const unsigned char *
+static const unsigned char *
hppa_breakpoint_from_pc (CORE_ADDR *pc, int *len)
{
static const unsigned char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
@@ -2726,7 +2726,9 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
default:
internal_error (__FILE__, __LINE__, "bad switch");
}
-
+
+ set_gdbarch_breakpoint_from_pc (gdbarch, hppa_breakpoint_from_pc);
+
/* Frame unwind methods. */
set_gdbarch_unwind_dummy_id (gdbarch, hppa_unwind_dummy_id);
set_gdbarch_unwind_pc (gdbarch, hppa_unwind_pc);