question about -file-exec-and-symbols gdbmi command

Nick Roberts nickrob@snap.net.nz
Wed Apr 18 21:55:00 GMT 2007


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



More information about the Gdb mailing list