]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb: multi-line support for "document" command
authorRae Kim <raekim@gmail.com>
Wed, 16 Dec 2020 03:51:09 +0000 (22:51 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 16 Dec 2020 04:04:04 +0000 (23:04 -0500)
commita33fc9aed4b3b4384df63850c6fc9046ecbd97f4
tree45e6f3aa85c3f279c0adf8c3bc5ee59b92a25409
parentefd7ff149a42c865cac422e3bafdf386c91c5373
gdb: multi-line support for "document" command

"document" command executed in python, gdb.execute("document
<comname>\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  <rae.kim@gmail.com>

* 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  <rae.kim@gmail.com>
* gdb.base/document.exp: New test.

Change-Id: Ice262b980c05051de4c106af9f3fde5b2a6df6fe
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/cli/cli-script.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/document.exp [new file with mode: 0644]