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: [patch][python] Add breakpoint support.


> > I think the more difficult problem is deciding how users should activate
> > commands written in Python.  Right now for Archer we have this "require"
> > thing, but that seems like kind of a hack.  OTOH, loading all the
> > commands at startup also seems weird.  It will make startup slower, for
> > one thing.  Maybe we could implement some kind of auto-loading?
> 
> I normally (I think -- it's been awhile) just end up loading these with
> execfile in my .gdbinit.  I cannot remember now. Anyway, it is not
> optimal.  

This is indeed a general issue that is worth looking at.  But for the
specific case of breakpoint saving/restoring, can we just add a couple
of methods to the breakpoints class? The downside is that the code
has to be written in C, I guess, as opposed to python. Hmmm, we want
the glue code to be as minimal, right?

-- 
Joel


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