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: Save the length of inserted breakpoints


> Date: Thu, 13 Apr 2006 18:59:45 -0400
> From: Daniel Jacobowitz <drow@false.org>
> 
> 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.

Which is a complecity we should try very hard to avoid.  There are too
many memory leaks in GDB already (so far I've been too scared to look
at the resulrs for the Coverity scan for GDB).

Mark


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