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


 > >  > 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?
 > 
 > Nope.  The difference is that the front end has some knowledge of
 > "this is a new program" versus "this is the same program being
 > reloaded", because it issued the command in response to some user
 > stimulus.  GDB has no way to know why the command was issued; in one
 > case deleting breakpoints is appropriate, in the other it is not.
 > 
 > So if the front end wants breakpoints deleted, I think it's reasonable
 > for it to do so explicitly.

In Emacs at least, GDB command can be entered through the GUD buffer, just like
they are on the command line, so I don't see how it would know the user's
purpose any more than GDB does.  Anyway, I have no need of this functionality
at the moment.  I'll raise it again when, or if, I need it later



-- 
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]