diff options
author | Tom Tromey <tromey@redhat.com> | 2008-04-17 00:25:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-04-17 00:25:01 +0000 |
commit | 3b70af3a63cd1d7393ef2c1406bd9524190041a9 (patch) | |
tree | 37dd55b565c3b2499823101e215e3d8f68a6abbe /gdb/infcmd.c | |
parent | 9931502ec5ac709a0203568815a613af22745a8a (diff) | |
download | gdb-3b70af3a63cd1d7393ef2c1406bd9524190041a9.tar.gz |
* 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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index f72cbf444c3..2c30b7e3d59 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -49,6 +49,7 @@ #include "target-descriptions.h" #include "user-regs.h" #include "exceptions.h" +#include "cli/cli-decode.h" /* Functions exported for general use, in inferior.h: */ @@ -2326,8 +2327,9 @@ You may specify arguments to give to your program, just as with the\n\ \"run\" command.")); set_cmd_completer (c, filename_completer); - add_com ("interrupt", class_run, interrupt_target_command, - _("Interrupt the execution of the debugged program.")); + c = add_com ("interrupt", class_run, interrupt_target_command, + _("Interrupt the execution of the debugged program.")); + set_cmd_async_ok (c); add_info ("registers", nofp_registers_info, _("\ List of integer registers and their contents, for selected stack frame.\n\ |