From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14599 invoked by alias); 28 Jul 2010 12:24:05 -0000 Received: (qmail 14214 invoked by uid 22791); 28 Jul 2010 12:24:03 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_QE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 12:23:58 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6SCNuBW000300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 28 Jul 2010 08:23:57 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6SCNsE2014026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 28 Jul 2010 08:23:56 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o6SCNrVs031522; Wed, 28 Jul 2010 14:23:53 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o6SCNqbN031517; Wed, 28 Jul 2010 14:23:52 +0200 Date: Wed, 28 Jul 2010 12:24:00 -0000 From: Jan Kratochvil To: Steffen Dettmer Cc: "gdb@sourceware.org" Subject: Re: help with loading core files Message-ID: <20100728122352.GA31106@host1.dyn.jankratochvil.net> References: <4C487F33.1030807@vmware.com> <4C48800B.1030100@vmware.com> <20100722180100.GA3927@host1.dyn.jankratochvil.net> <4C488940.8020503@vmware.com> <20100722181821.GA27777@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00108.txt.bz2 On Wed, 28 Jul 2010 11:06:22 +0200, Steffen Dettmer wrote: > On Thu, Jul 22, 2010 at 8:18 PM, Jan Kratochvil > wrote: > > I have only experience with virtual machines (qemu-kvm, see > > savevm and loadvm) where you can snapshot the whole virtual > > machine with the debugger + debuggee. > > ohh, this sounds like a great idea! > > How long does it approximately take to prepare such a `retry'? > Is it a matter of very few seconds only? Yes, ctrl-alt-2, "loadvm a", ctrl-alt-1 takes about 1 second, "savevm b" takes ~3 seconds. See: http://wiki.qemu.org/download/qemu-doc.html#vm_005fsnapshots If you run qemu-kvm by hand it does some fsync() by default (#$!@#$!@#), you should mount your disk using: -drive file=test.qcow2,cache=writeback Use recent host Linux kernel, older kernels had buggy debug registers in KVM. Run testsuite in your guest: http://sourceware.org/systemtap/wiki/utrace/tests Regards, Jan