Revision 396f9297 monitor.c
b/monitor.c | ||
---|---|---|
76 | 76 |
static uint8_t term_outbuf[1024]; |
77 | 77 |
static int term_outbuf_index; |
78 | 78 |
|
79 |
static void monitor_start_input(void); |
|
80 |
|
|
81 | 79 |
CPUState *mon_cpu = NULL; |
82 | 80 |
|
83 | 81 |
void term_flush(void) |
... | ... | |
2659 | 2657 |
readline_handle_byte(buf[i]); |
2660 | 2658 |
} |
2661 | 2659 |
|
2662 |
static void monitor_start_input(void); |
|
2663 |
|
|
2664 | 2660 |
static void monitor_handle_command1(void *opaque, const char *cmdline) |
2665 | 2661 |
{ |
2666 | 2662 |
monitor_handle_command(cmdline); |
2667 | 2663 |
monitor_start_input(); |
2668 | 2664 |
} |
2669 | 2665 |
|
2670 |
static void monitor_start_input(void)
|
|
2666 |
void monitor_start_input(void) |
|
2671 | 2667 |
{ |
2672 | 2668 |
readline_start("(qemu) ", 0, monitor_handle_command1, NULL); |
2673 | 2669 |
} |
... | ... | |
2708 | 2704 |
hide_banner = !show_banner; |
2709 | 2705 |
|
2710 | 2706 |
qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL); |
2711 |
|
|
2712 |
readline_start("", 0, monitor_handle_command1, NULL); |
|
2713 | 2707 |
} |
2714 | 2708 |
|
2715 | 2709 |
/* XXX: use threads ? */ |
Also available in: Unified diff