* gdb behaviour?
@ 2007-07-16 13:44 Jun Koi
[not found] ` <fdaac4d50707160644u611a5863ybe4000da2d406a5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jun Koi @ 2007-07-16 13:44 UTC (permalink / raw)
To: kvm-devel
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?
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?
Thanks,
Jun
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gdb behaviour?
[not found] ` <fdaac4d50707160644u611a5863ybe4000da2d406a5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-07-16 13:49 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-07-16 13:49 UTC (permalink / raw)
To: Jun Koi; +Cc: kvm-devel
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-16 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox