monitor: add monitor_cur_hmp() helper

This will help to simplify the code in the following changes.

Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260828-qemu-no-hmp-v5-33-9227de146347@redhat.com>
4 files changed