public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Steffen Dettmer <steffen.dettmer@googlemail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: help with loading core files
Date: Wed, 28 Jul 2010 12:24:00 -0000	[thread overview]
Message-ID: <20100728122352.GA31106@host1.dyn.jankratochvil.net> (raw)
In-Reply-To: <AANLkTinuiaV8tx-0mBCiNmdE4p=nNuimkwpkSLbWC6M9@mail.gmail.com>

On Wed, 28 Jul 2010 11:06:22 +0200, Steffen Dettmer wrote:
> On Thu, Jul 22, 2010 at 8:18 PM, Jan Kratochvil
> <jan.kratochvil@redhat.com> 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

  reply	other threads:[~2010-07-28 12:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 17:04 Mathew Yeates
2010-07-22 17:07 ` Michael Snyder
2010-07-22 17:16   ` Mathew Yeates
2010-07-22 17:26     ` Michael Snyder
2010-07-22 17:28       ` Mathew Yeates
2010-07-22 17:29         ` Michael Snyder
2010-07-22 17:55           ` Mathew Yeates
2010-07-22 18:07             ` Jan Kratochvil
2010-07-22 18:09               ` Michael Snyder
2010-07-22 18:14                 ` Mathew Yeates
2010-07-22 18:18                   ` Jan Kratochvil
2010-07-28  9:06                     ` Steffen Dettmer
2010-07-28 12:24                       ` Jan Kratochvil [this message]
2010-07-28  9:03             ` Steffen Dettmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100728122352.GA31106@host1.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=steffen.dettmer@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).