summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-09-04 10:07:23 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-09-04 10:07:23 +0000
commit4e740c9b94eb416219fc06a6f3266a31778c7ce3 (patch)
tree1d476ee168171a291a7277aba16cc6602b0e0285
parentabb990bc854245d961e55c97d796123cb6c6e09b (diff)
downloadgdb-4e740c9b94eb416219fc06a6f3266a31778c7ce3.tar.gz
(captured_mi_execute_command): Give current_command_token a value.
-rw-r--r--gdb/mi/mi-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 447b0bf4b79..45c85264f14 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1086,6 +1086,8 @@ captured_mi_execute_command (struct ui_out *uiout, void *data)
args->action = EXECUTE_COMMAND_DISPLAY_PROMPT;
args->rc = mi_cmd_execute (context);
+ current_command_token = context->token;
+
if (!target_can_async_p () || !target_executing)
{
/* print the result if there were no errors