X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmicroblaze-linux-tdep.c;h=4e5f60cd4e527a29e57dd9a7c63dc4941e30d2d8;hb=99f6fdd9eb60f5b8b9b172b1b2cfa627be566a9d;hp=7b2662d4f96a8bad7cee0e93850ba9becd19b3db;hpb=dd110abf0474d4e6d8af047d4c7f8d9b340559ef;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c index 7b2662d4f9..4e5f60cd4e 100644 --- a/gdb/microblaze-linux-tdep.c +++ b/gdb/microblaze-linux-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for Xilinx MicroBlaze. - Copyright 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -41,7 +41,7 @@ static int microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) { - CORE_ADDR addr = bp_tgt->placed_address; + CORE_ADDR addr = bp_tgt->reqstd_address; const gdb_byte *bp; int val; int bplen; @@ -49,8 +49,6 @@ microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch, /* Determine appropriate breakpoint contents and size for this address. */ bp = gdbarch_breakpoint_from_pc (gdbarch, &addr, &bplen); - if (bp == NULL) - error (_("Software breakpoints not implemented for this target.")); val = target_read_memory (addr, old_contents, bplen); @@ -72,8 +70,6 @@ microblaze_linux_sigtramp_cache (struct frame_info *next_frame, CORE_ADDR base; CORE_ADDR gpregs; int regnum; - struct gdbarch *gdbarch = get_frame_arch (next_frame); - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); base = frame_unwind_register_unsigned (next_frame, MICROBLAZE_SP_REGNUM); if (bias > 0 && get_frame_address_in_block (next_frame) != func) @@ -109,8 +105,8 @@ static struct tramp_frame microblaze_linux_sighandler_tramp_frame = SIGTRAMP_FRAME, 4, { - { 0x31800077, -1 }, /* addik R12,R0,119. */ - { 0xb9cc0008, -1 }, /* brki R14,8. */ + { 0x31800077, ULONGEST_MAX }, /* addik R12,R0,119. */ + { 0xb9cc0008, ULONGEST_MAX }, /* brki R14,8. */ { TRAMP_SENTINEL_INSN }, }, microblaze_linux_sighandler_cache_init @@ -121,8 +117,6 @@ static void microblaze_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - linux_init_abi (info, gdbarch); set_gdbarch_memory_remove_breakpoint (gdbarch,