[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to capture guest %rip from a qemu process without m

From: Jan Kiszka
Subject: Re: [Qemu-devel] How to capture guest %rip from a qemu process without monitor?
Date: Fri, 30 Sep 2011 10:49:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv: Gecko/20080226 SUSE/ Thunderbird/ Mnenhy/

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).


Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

reply via email to

[Prev in Thread] Current Thread [Next in Thread]