This is the mail archive of the gdb-patches@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: [RFA 61/67] Constify some commands in breakpoint.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]