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

Dodji Seketeli dodji@seketeli.org
Wed Apr 18 10:11:00 GMT 2007


On Wed, 18 Apr 2007 21:58:49 +1200
Nick Roberts <nickrob@snap.net.nz> wrote:

[...]

> -file-exec-and-symbols is really just the `file' command:
> 
> In mi-cmds.c:
> 
>   { "file-exec-and-symbols", { "file", 1 }, NULL, NULL },
> 
> so it's not restricted to MI.
> 
> I don't really use either but maybe it would be inconvenient to have
> all the breakpoints cleared, if you wanted to switch to another
> version of the same program, say.  It's easier to delete then all
> manually, just with `delete' than it is to add them back again.
> 
> Perhaps it could be a GDB option.

Okay thank you for the hints, Nick.

I maybe I could try a patch that introduces a new command that clears
all the breakpoints when you load a new file ?

Cheers,


-- 
Dodji Seketeli
http://www.seketeli.org/dodji



More information about the Gdb mailing list