This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/WIP PATCH 02/14] Mask software breakpoints from memory writes too


Pedro Alves <pedro@codesourcery.com> writes:

> Does this fix it?
>
> --- 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;

Looks good, thanks.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]