From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AM1rY-0004eX-La for qemu-devel@nongnu.org; Tue, 18 Nov 2003 04:09:32 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AM1qw-0003Io-MQ for qemu-devel@nongnu.org; Tue, 18 Nov 2003 04:09:25 -0500 Received: from [62.210.158.46] (helo=teheran.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AM1qm-0002y5-Ag for qemu-devel@nongnu.org; Tue, 18 Nov 2003 04:08:44 -0500 Received: from 10.0.0.2 (ppp-181.net-555.magic.fr [62.210.255.181]) by teheran.magic.fr (8.11.6/8.11.2) with ESMTP id hAI87Ce01722 for ; Tue, 18 Nov 2003 09:07:12 +0100 (CET) Subject: Re: [Qemu-devel] [PATCH] Term prompt for qemu From: "J. Mayer" In-Reply-To: <1069140566.13658.2177.camel@rapid> References: <20031117105133.7e856e56.Jens.Arm@gmx.de> <1069140566.13658.2177.camel@rapid> Content-Type: text/plain Message-Id: <1069143118.13659.2284.camel@rapid> Mime-Version: 1.0 Date: 18 Nov 2003 09:11:59 +0100 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org exec.c.diff cpu_reset_log implementation diff -urNbB -x CVS qemu-current/exec.c qemu/exec.c --- qemu-current/exec.c Tue Nov 18 06:51:07 2003 +++ qemu/exec.c Sun Nov 16 04:10:03 2003 @@ -710,6 +710,15 @@ logfilename = strdup(filename); } +void cpu_reset_log (void) +{ + if (logfile != NULL) { + fclose(logfile); + logfile = NULL; + } + loglevel = 0; +} + /* mask must never be zero */ void cpu_interrupt(CPUState *env, int mask) {