Received: from eggs.gnu.org ([140.186.70.92]:38936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Yme-00046e-7c for qemu-devel@nongnu.org; Fri, 30 Sep 2011 04:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9YmZ-0001us-Ex for qemu-devel@nongnu.org; Fri, 30 Sep 2011 04:49:28 -0400 Received: from thoth.sbs.de ([192.35.17.2]:29133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9YmX-0001ui-Vh for qemu-devel@nongnu.org; Fri, 30 Sep 2011 04:49:22 -0400 Message-ID: <4E858290.8000903@siemens.com> Date: Fri, 30 Sep 2011 10:49:20 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <20110930074251.GA3972@amd.home.annexia.org> In-Reply-To: <20110930074251.GA3972@amd.home.annexia.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] How to capture guest %rip from a qemu process without monitor? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org On 2011-09-30 09:42, Richard W.M. Jones wrote: > > I've finally managed to reproduce a very infrequent kernel boot hang > by forcing TCG (so it runs slower, bug seems to be timing sensitive) > and running a boot test in a loop thousands of times. > > I'd like to find out where in the guest kernel this is looping. > > Unfortunately I don't have access to the monitor so "info registers" > won't work, but I can attach to the qemu process with gdb. > > Which TCG struct contains %rip, other registers? What other useful > information can be captured using only gdb? Print first_cpu->eip, maybe also first_cpu->segs[1] to dump the CS segment cache (relevant while in real mode). Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux