This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Save the length of inserted breakpoints
On Thu, Apr 13, 2006 at 02:57:27PM -0700, Michael Snyder wrote:
> I haven't followed this discussion closely, so forgive me
> if I'm recapitulating something that's already been said.
>
> What about something like "void *target_data" in the breakpoint struct?
> The target can add whatever it likes, and the core breakpoint code
> doesn't need to know what it is. If it's non-null when the bp is
> freed, then the target should be given an opportunity to delete it.
I'd be fine with that too; personally I think it's about the same,
except a bit of additional complexity for deallocation.
--
Daniel Jacobowitz
CodeSourcery