From a33fc9aed4b3b4384df63850c6fc9046ecbd97f4 Mon Sep 17 00:00:00 2001 From: Rae Kim Date: Tue, 15 Dec 2020 22:51:09 -0500 Subject: gdb: multi-line support for "document" command "document" command executed in python, gdb.execute("document \n...\nend\n"), will wait for user input. Python extension stops working from that point. multi-line suport was introduced in commit 56bcdbea2. But "document" support seem to be implemented. gdb/ChangeLog: 2020-12-02 Rae Kim * cli/cli-script.c (do_document_command): Rename from document_command. Handle multi-line input. (multi_line_command_p): Handle document_control. (build_command_line): Likewise. (execute_control_command_1): Likewise. (process_next_line): Likewise. (document_command): Call do_document_command. * cli/cli-script.h (enum command_control_type): Add document_control. gdb/testsuite/ChangeLog: 2020-12-02 Rae Kim * gdb.base/document.exp: New test. Change-Id: Ice262b980c05051de4c106af9f3fde5b2a6df6fe --- gdb/cli/cli-script.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/cli/cli-script.h') diff --git a/gdb/cli/cli-script.h b/gdb/cli/cli-script.h index fcae9ab..6ad6e61 100644 --- a/gdb/cli/cli-script.h +++ b/gdb/cli/cli-script.h @@ -45,6 +45,7 @@ enum command_control_type guile_control, while_stepping_control, define_control, + document_control, invalid_control }; -- cgit v1.1