On 25/8/26 21:09, Marc-André Lureau wrote:
- disable default monitor when HMP is not available
- hide 'readline' from -mon help text
- error out on mux chardev monitor when no HMP
- skip HMP monitor terminal for gdb, return E01 for 'qRcmd' remote
commands
Reviewed-by: Daniel P. Berrangé <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
---
chardev/char.c | 9 ++++++++-
gdbstub/system.c | 8 ++++++++
qemu-options.hx | 6 +++++-
system/vl.c | 4 ++++
4 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/system/vl.c b/system/vl.c
index 5ccc19282ba2..760cf6e7265a 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -199,7 +199,11 @@ static int has_defaults = 1;
static int default_audio = 1;
static int default_serial = 1;
static int default_parallel = 1;
+#ifdef CONFIG_HMP
static int default_monitor = 1;
+#else
+static int default_monitor; /* false */
+#endif
static bool default_monitor = IS_ENABLED(CONFIG_HMP);
static int default_floppy = 1;
static int default_cdrom = 1;
static bool auto_create_sdcard = true;