Re: [RFA 61/67] Constify some commands in breakpoint.c

Pedro Alves
2017-09-21T09:56:25Z

On 09/21/2017 06:10 AM, Tom Tromey wrote:
> This also makes delete_command static; but now I wonder if it is used
> in Insight and should not be touched.

[Adding Patrick]

Insight git is on sourceware nowadays:
git://sourceware.org/git/insight.git

$ git grep delete_command
...
gdbtk/generic/gdbtk-cmds.c: delete_command (NULL, 0);

I guess it'd be mildly nicer to add some "void delete_all_breakpoints();"
API instead of abusing the command callback.

Thanks,
Pedro Alves