[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
Richard W.M. Jones
Re: [Qemu-devel] How to capture guest %rip from a qemu process without monitor?
Fri, 30 Sep 2011 10:03:09 +0100
On Fri, Sep 30, 2011 at 10:49:20AM +0200, Jan Kiszka wrote:
> 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 to dump the CS
> segment cache (relevant while in real mode).
*first_cpu contains a wealth of info.
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd