summaryrefslogtreecommitdiff
path: root/gdb/microblaze-linux-tdep.c
diff options
context:
space:
mode:
authoreager <eager>2009-10-16 23:21:23 +0000
committereager <eager>2009-10-16 23:21:23 +0000
commitd63f60a3a2bb003983002aa197f96447e32f24cc (patch)
tree6877ffff57b81afba39fb44e0622b8fd56b2b7ba /gdb/microblaze-linux-tdep.c
parent3add401544221e217f73ebacdb63dd00392dfc64 (diff)
downloadgdb-d63f60a3a2bb003983002aa197f96447e32f24cc.tar.gz
Fix build failure for microblaze-xilinx-linux.
* microblaze-linux-tdep.c: microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param, replace frame_pc_unwind with get_frame_address_in_block. * microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE. * microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.
Diffstat (limited to 'gdb/microblaze-linux-tdep.c')
-rw-r--r--gdb/microblaze-linux-tdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c
index 2b07d95f7df..e482f726436 100644
--- a/gdb/microblaze-linux-tdep.c
+++ b/gdb/microblaze-linux-tdep.c
@@ -38,7 +38,8 @@
static int
-microblaze_linux_memory_remove_breakpoint (struct bp_target_info *bp_tgt)
+microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch,
+ struct bp_target_info *bp_tgt)
{
CORE_ADDR addr = bp_tgt->placed_address;
const gdb_byte *bp;
@@ -74,8 +75,8 @@ microblaze_linux_sigtramp_cache (struct frame_info *next_frame,
struct gdbarch *gdbarch = get_frame_arch (next_frame);
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- base = frame_unwind_register_unsigned (next_frame, SP_REGNUM);
- if (bias > 0 && frame_pc_unwind (next_frame) != func)
+ base = frame_unwind_register_unsigned (next_frame, MICROBLAZE_SP_REGNUM);
+ if (bias > 0 && get_frame_address_in_block (next_frame) != func)
/* See below, some signal trampolines increment the stack as their
first instruction, need to compensate for that. */
base -= bias;