From: Jan Kiszka <jan.kiszka@web.de>
To: shiv chauhan <sp2linux@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Issue: qemu-kvm with gdb
Date: Thu, 24 Mar 2011 08:14:36 +0100 [thread overview]
Message-ID: <4D8AEF5C.6000207@web.de> (raw)
In-Reply-To: <AANLkTikxhH73i1adBO-_90jXruUKGxN2qkH7ahgjzN3T@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
On 2011-03-24 07:17, shiv chauhan wrote:
> Hi all,
>
> While remote debugging a kernel (not written in C and no debugging
> symbols) using qemu-kvm with gdb, strange it does not stop at
> breakpoint though qemu works well:
>
> Commands:
> # qemu-kvm -s -S -hda hd.img &
> #gdb
> (gdb) target remote localhost:1234
> Remote debugging using localhost:1234
> 0x0000fff0 in ?? ()
> (gdb) break *0x200020
> Breakpoint 1 at 0x200020
> (gdb) c
>
> This break point never reach, though I am sure this address comes in
> execution control path, above all same sequence of commands work well
> with qemu, anybody else faced such issue? or any explanation for this
> behavior?
Breakpoints in emulation mode are like hardware breakpoints: It doesn't
matter if the guest writes to their location. However, KVM software
breakpoints (the default) work via injecting an INT3 into the guest
code. So you may be more lucky with hbreak.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
prev parent reply other threads:[~2011-03-24 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 6:17 Issue: qemu-kvm with gdb shiv chauhan
2011-03-24 7:14 ` 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=4D8AEF5C.6000207@web.de \
--to=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=sp2linux@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.