This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Using bt command in async mode
On Tue, Apr 01, 2008 at 11:53:52AM -0600, Tom Tromey wrote:
> What do you think of this? It moves the flag into the command object
> instead of hard-coding it into a big 'if'.
Seems like this will be just as awkward in the long term, but it's an
improvement. OK if it tested fine.
> ChangeLog:
> 2008-04-01 Tom Tromey <tromey@redhat.com>
>
> * cli/cli-decode.h (CMD_ASYNC_OK): New define.
> (set_cmd_async_ok, get_cmd_async_ok): Declare.
> * cli/cli-decode.c (set_cmd_async_ok): New function.
> (get_cmd_async_ok): New function.
> * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
> "show" as async-ok.
> * top.c (execute_command): Use get_cmd_async_ok.
> * infcmd.c: Include cli/cli-decode.h.
> (_initialize_infcmd): Mark "interrupt" as async-ok.
> * Makefile.in (infcmd.o): Depend on cli_decode_h.
--
Daniel Jacobowitz
CodeSourcery