This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/WIP PATCH 02/14] Mask software breakpoints from memory writes too
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 13 Dec 2011 22:24:24 +0100
- Subject: Re: [RFC/WIP PATCH 02/14] Mask software breakpoints from memory writes too
- References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> <20111128153904.17761.45665.stgit@localhost6.localdomain6> <201112062007.46352.pedro@codesourcery.com>
Pedro Alves <pedro@codesourcery.com> writes:
> 2011-12-06 Pedro Alves <pedro@codesourcery.com>
>
> gdb/
> * breakpoint.c (breakpoint_restore_shadows): Rename to ...
> (breakpoint_xfer_memory): ... this. Change prototype. Handle
> memory writes too.
> * breakpoint.h (breakpoint_restore_shadows): Delete.
> (breakpoint_xfer_memory): Declare.
> * mem-break.c (default_memory_insert_breakpoint)
> (default_memory_remove_breakpoint): Use target_write_raw_memory.
> (memory_xfer_partial): Rename to ...
> (memory_xfer_partial_1): ... this. Don't mask out breakpoints
> here.
> (memory_xfer_partial): New.
> (target_write_raw_memory): New.
> * target.h (target_write_raw_memory): New.
That completely breaks gdb on powerpc. Breakpoints cause gdb to infloop.
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."