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

Dodji Seketeli
2007-04-18T10:11:34Z

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