This is the mail archive of the gdb@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: question about -file-exec-and-symbols gdbmi command


 > >  > I maybe I could try a patch that introduces a new command that clears
 > >  > all the breakpoints when you load a new file ?
 > > 
 > > I was thinking modifying the GDB environment with the set command, e.g.,
 > > 
 > > set breakpoint auto-clear on/off
 > > 
 > > I think a new command would make behaviour hard to toggle, with a front end
 > > say.
 > > 
 > > I can't approve your patches, so don't do anything yet.  Wait for Daniel
 > > Jacobowitz, for example, to give his opinion.
 > 
 > I don't see the point.  If you want to delete breakpoints when you
 > load a new file, why not just do so?  It's easy with -break-list and
 > -break-delete.

I'm thinking that if you load a new program into a front end, there's no need
to restart GDB, and the user might be surprised to see his old breakpoints are
still there.  I don't have DDD or Insight to hand to see what they do.

 > It shouldn't happen automatically.  For instance, one use of
 > -file-exec-and-symbols is to tell GDB that the file has been recompiled.

That's independent of the breakpoint issue, isn't it?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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