This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] [4/4] SPU overlay support: Bugfix in remove_breakpoint
On Fri, May 11, 2007 at 12:05:45AM +0200, Ulrich Weigand wrote:
> The way to handle read-write overlay managers is to arrange for
> the LMA to point to the backing-store RAM address where the
> overlay has been swapped to, and remove the swapped-out breakpoint
> at the *LMA* address. The existing code already handles that
> correctly (assuming overlay_events_enabled is false, as it should
> be for read-write overlay managers).
I followed you right up until the end. Why should
overlay_events_enabled be false for read-write overlay management?
We could still be using hardware breakpoints (for example) with
RAM-based overlays. We'd want notification events so that we could
enable or disable the hardware breakpoint appropriately.
--
Daniel Jacobowitz
CodeSourcery