[ Now tested and found working. ]
Enhance the vm_state_change notifier API to pass also a change reason.
This allows for replacing the vm_stop_cb with it and drop related code.
Converting gdb_vm_stopped to gdb_vm_state_change also includes that this
callback will now officially only handle EXCP_DEBUG and EXCP_INTERRUPT
stop reasons. That allows to define and use new (non-zero) stop reasons
without disturbing the gdbstub.
---
audio/audio.c | 3 ++-
gdbstub.c | 11 +++++------
sysemu.h | 6 +-----
vl.c | 29 ++++-------------------------
4 files changed, 12 insertions(+), 37 deletions(-)