X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmicroblaze-tdep.c;h=ea33ae7dfcb1b6fa79658893a52588e5986fef64;hb=598cc9dc84aeaa66e4a77efa9dc8ff03d5532620;hp=665ec0cf33f5e61120a9d587f165a0ead6eb4ae0;hpb=8b55a7e4e5b30877e924e4b0ed0437d16ccdcedf;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index 665ec0cf33..ea33ae7dfc 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -134,15 +134,10 @@ microblaze_fetch_instruction (CORE_ADDR pc) return extract_unsigned_integer (buf, 4, byte_order); } -static const gdb_byte * -microblaze_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pc, - int *len) -{ - static gdb_byte break_insn[] = MICROBLAZE_BREAKPOINT; +static gdb_byte break_insn[] = MICROBLAZE_BREAKPOINT; + +GDBARCH_BREAKPOINT_MANIPULATION (microblaze, break_insn) - *len = sizeof (break_insn); - return break_insn; -} /* Allocate and initialize a frame cache. */ @@ -736,7 +731,7 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Stack grows downward. */ set_gdbarch_inner_than (gdbarch, core_addr_lessthan); - set_gdbarch_breakpoint_from_pc (gdbarch, microblaze_breakpoint_from_pc); + SET_GDBARCH_BREAKPOINT_MANIPULATION (microblaze); set_gdbarch_frame_args_skip (gdbarch, 8);