]> www.infradead.org Git - users/dwmw2/qemu.git/commit
qmp-shell: add persistent command history
authorJohn Snow <jsnow@redhat.com>
Thu, 27 Apr 2017 22:36:28 +0000 (18:36 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 9 May 2017 07:14:40 +0000 (09:14 +0200)
commitaa3b167f21588a87e7783ac29aa54b0c721eb37a
treed19aeb803a9dfb252af11546600fe0f6f054e040
parent8b2e41d733850ec6a67a85743138e023cbb8921b
qmp-shell: add persistent command history

Use the existing readline history function we are utilizing
to provide persistent command history across instances of qmp-shell.

This assists entering debug commands across sessions that may be
interrupted by QEMU sessions terminating, where the qmp-shell has
to be relaunched.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20170427223628.20893-1-jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Tested-by: Kashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qmp/qmp-shell