From: Pedro Alves Date: Wed, 14 Dec 2011 14:55:27 +0000 (+0000) Subject: 2011-12-14 Pedro Alves X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd110abf0474d4e6d8af047d4c7f8d9b340559ef;p=binutils-gdb.git 2011-12-14 Pedro Alves * ia64-tdep.c (ia64_memory_remove_breakpoint): Use target_write_raw_memory. * m32r-tdep.c (m32r_memory_remove_breakpoint): Use target_write_raw_memory. * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint): Use target_write_raw_memory. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use target_write_raw_memory. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e40514104a3..ff2df39c7b2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2011-12-14 Pedro Alves + + * ia64-tdep.c (ia64_memory_remove_breakpoint): Use + target_write_raw_memory. + * m32r-tdep.c (m32r_memory_remove_breakpoint): Use + target_write_raw_memory. + * microblaze-linux-tdep.c + (microblaze_linux_memory_remove_breakpoint): Use + target_write_raw_memory. + * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use + target_write_raw_memory. + 2011-12-14 Joel Brobecker * linespec.c (decode_line_internal): Make static. diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 68e50217028..d1940e63725 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -811,7 +811,7 @@ ia64_memory_remove_breakpoint (struct gdbarch *gdbarch, /* In BUNDLE_MEM, be careful to modify only the bits belonging to SLOTNUM and not any of the other ones that are stored in SHADOW_CONTENTS. */ replace_slotN_contents (bundle_mem, instr_saved, slotnum); - val = target_write_memory (addr, bundle_mem, BUNDLE_LEN); + val = target_write_raw_memory (addr, bundle_mem, BUNDLE_LEN); do_cleanups (cleanup); return val; diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c index 136fd7bc65d..b417db02767 100644 --- a/gdb/m32r-tdep.c +++ b/gdb/m32r-tdep.c @@ -163,7 +163,7 @@ m32r_memory_remove_breakpoint (struct gdbarch *gdbarch, } /* Write contents. */ - val = target_write_memory (addr & 0xfffffffc, buf, 4); + val = target_write_raw_memory (addr & 0xfffffffc, buf, 4); return val; } diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c index c14e01b43fe..7b2662d4f96 100644 --- a/gdb/microblaze-linux-tdep.c +++ b/gdb/microblaze-linux-tdep.c @@ -58,7 +58,7 @@ microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch, program modified the code on us, so it is wrong to put back the old value. */ if (val == 0 && memcmp (bp, old_contents, bplen) == 0) - val = target_write_memory (addr, bp_tgt->shadow_contents, bplen); + val = target_write_raw_memory (addr, bp_tgt->shadow_contents, bplen); return val; } diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index e6237422b9b..9968621e0dc 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -218,7 +218,7 @@ ppc_linux_memory_remove_breakpoint (struct gdbarch *gdbarch, program modified the code on us, so it is wrong to put back the old value. */ if (val == 0 && memcmp (bp, old_contents, bplen) == 0) - val = target_write_memory (addr, bp_tgt->shadow_contents, bplen); + val = target_write_raw_memory (addr, bp_tgt->shadow_contents, bplen); do_cleanups (cleanup); return val;