mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
char: add a /chardevs container
Add a /chardevs container object to hold the list of chardevs. (Note: QTAILQ chardevs is going away in the following commits) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
f8df5f9221
commit
2f5d45a150
8 changed files with 42 additions and 36 deletions
|
@ -1611,7 +1611,7 @@ void gdb_exit(CPUArchState *env, int code)
|
|||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
qemu_chr_fe_deinit(&s->chr);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1912,7 +1912,7 @@ int gdbserver_start(const char *device)
|
|||
monitor_init(mon_chr, 0);
|
||||
} else {
|
||||
if (qemu_chr_fe_get_driver(&s->chr)) {
|
||||
qemu_chr_delete(qemu_chr_fe_get_driver(&s->chr));
|
||||
object_unparent(OBJECT(qemu_chr_fe_get_driver(&s->chr)));
|
||||
}
|
||||
mon_chr = s->mon_chr;
|
||||
memset(s, 0, sizeof(GDBState));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue