public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: jyoung5@us.ibm.com
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: gdb removing breakpoints after first breakpoint is hit ??
Date: Fri, 06 Jun 2008 19:49:20 +0200	[thread overview]
Message-ID: <484978A0.9020203@web.de> (raw)
In-Reply-To: <1212773930.17418.17.camel@thinkpadL>

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

Jerone Young wrote:
> Has anyone notice with x86 that after you hit your first breakpoint and
> come back into gdb from kvm, gdb starts to sends commands to the qemu
> gdb stub to serially remove all the break points you have specified?
> Ultimately ending up in a state where you will have no breakpoints when
> you go back into KVM. 
> 
> So you end up hitting your first breakpoint and then no others (since
> gdb removed them). Could be my version of gdb .. but trying to quickly
> see if anyone else has seen this.

Not really, but maybe some error made gdb remove them. You have a trace
of the remote session (set debug remote 1)? Which gdb version? Which kvm
version? Note that Avi just merged latest qemu SVN into userland which
also brings in a few new features for the gdbstub: detach and kill. The
latter is clearly visible (kvm quits), the latter removes all
breakpoints as well. But that will be visible in the session trace.

Ah, and another pitfall is trying to debug SMP guests: Only VCPU 0 will
report breakpoints to you (see related patch of mine).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

      reply	other threads:[~2008-06-06 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 17:38 gdb removing breakpoints after first breakpoint is hit ?? Jerone Young
2008-06-06 17:49 ` Jan Kiszka [this message]

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=484978A0.9020203@web.de \
    --to=jan.kiszka@web.de \
    --cc=jyoung5@us.ibm.com \
    --cc=kvm@vger.kernel.org \
    /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