From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGvpA-0006Cx-2m for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:04:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGvp8-0006CV-1f for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:04:39 -0400 Received: from [199.232.76.173] (port=57821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGvp7-0006CS-Vr for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:04:38 -0400 Received: from il.qumranet.com ([212.179.150.194]:53557) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGvp7-0006Pp-CX for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:04:37 -0400 From: Avi Kivity Date: Thu, 10 Jul 2008 16:04:34 +0300 Message-Id: <1215695074-8939-3-git-send-email-avi@qumranet.com> In-Reply-To: <1215695074-8939-1-git-send-email-avi@qumranet.com> References: <1215695074-8939-1-git-send-email-avi@qumranet.com> Subject: [Qemu-devel] [PATCH 2/2] fix screendump with multiple consoles Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org pretend to be the active console while a screendump takes place. Signed-off-by: Avi Kivity --- console.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qemu/console.c b/qemu/console.c index a1bc769..061135f 100644 --- a/console.c +++ b/console.c @@ -167,10 +167,15 @@ void vga_hw_invalidate(void) void vga_hw_screen_dump(const char *filename) { + TextConsole *previous_active_console; + + previous_active_console = active_console; + active_console = consoles[0]; /* There is currently no was of specifying which screen we want to dump, so always dump the dirst one. */ if (consoles[0]->hw_screen_dump) consoles[0]->hw_screen_dump(consoles[0]->hw, filename); + active_console = previous_active_console; } void vga_hw_text_update(console_ch_t *chardata) -- 1.5.6.1