Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKC6w-0003Tz-74 for qemu-devel@nongnu.org; Sat, 19 Jul 2008 09:04:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKC6v-0003SE-4n for qemu-devel@nongnu.org; Sat, 19 Jul 2008 09:04:29 -0400 Received: from [199.232.76.173] (port=60151 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKC6u-0003S2-Uo for qemu-devel@nongnu.org; Sat, 19 Jul 2008 09:04:29 -0400 Received: from savannah.gnu.org ([199.232.41.3]:57917 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKC6v-0005nS-3R for qemu-devel@nongnu.org; Sat, 19 Jul 2008 09:04:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KKC6t-00053R-Vk for qemu-devel@nongnu.org; Sat, 19 Jul 2008 13:04:28 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KKC6t-00053H-MD for qemu-devel@nongnu.org; Sat, 19 Jul 2008 13:04:27 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Sat, 19 Jul 2008 13:04:27 +0000 Subject: [Qemu-devel] [4901] Pretend to be the active console while a screendump takes place ( Avi Kivity). 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 Revision: 4901 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4901 Author: balrog Date: 2008-07-19 13:04:26 +0000 (Sat, 19 Jul 2008) Log Message: ----------- Pretend to be the active console while a screendump takes place (Avi Kivity). Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/console.c Modified: trunk/console.c =================================================================== --- trunk/console.c 2008-07-19 10:46:13 UTC (rev 4900) +++ trunk/console.c 2008-07-19 13:04:26 UTC (rev 4901) @@ -167,10 +167,15 @@ void vga_hw_screen_dump(const char *filename) { - /* There is currently no was of specifying which screen we want to dump, + TextConsole *previous_active_console; + + previous_active_console = active_console; + active_console = consoles[0]; + /* There is currently no way 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)