public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Jun Koi <junkoi2004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: gdb behaviour?
Date: Mon, 16 Jul 2007 16:49:22 +0300	[thread overview]
Message-ID: <469B7762.8010601@qumranet.com> (raw)
In-Reply-To: <fdaac4d50707160644u611a5863ybe4000da2d406a5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Jun Koi wrote:
> Hi,
>
> I am using gdb to debug Linux guest VM. Steps are like below:
> - Start gdbserver in qemu's monitor
> - From another console, run gdb and connect it to "localhost:1234"
> - Set breakpoints in guest VM
>
> When a breakpoint is hit inside guest, gdb is notified. The problem is
> that I cannot send "c" command to gdbserver from gdb to resume the
> guest. I always have to run "c" from qemu's monitor, then run another
> "c" in gdb. This means I always need 2 "c" commands, in that order.
>
> Is this expected behaviour, or a bug?
>
>   

It's a bug.  When I used gdbserver, it didn't have that behavior, but 
that was close to a year ago so maybe I misremember.

> I suspect that while guest is stopped for debugging, gdbserver also
> stop getting command, hence what I observered. But I looked in the
> code, and cannot confirm this. Any hint?
>   

Maybe... long time since I looked at that code.

How does -no-kvm work?

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

      parent reply	other threads:[~2007-07-16 13:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 13:44 gdb behaviour? Jun Koi
     [not found] ` <fdaac4d50707160644u611a5863ybe4000da2d406a5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-16 13:49   ` Avi Kivity [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=469B7762.8010601@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=junkoi2004-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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