qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Onkar <kernzap@gmail.com>
To: qemu-devel@nongnu.org
Cc: Stefan Hajnoczi <stefanha@gmail.com>
Subject: [Qemu-devel] setting up breakpoints - kernel debugging help wit gdb in qemu-kvm
Date: Wed, 22 Aug 2012 05:23:59 +0530	[thread overview]
Message-ID: <1345593239.2574.4.camel@localhost.localdomain> (raw)

I am running a linux guest like this - which I wish to debug - 
but the breakpoint gets set but I am not able to stop the guest 
execution at the set breakpoint - it just hangs after I do continue. 
Can you please provide me some clues - 

# ./qemu-system-x86_64 -m 2048 -smp 4 -vga std -vnc :5 -drive
file=/sda4/bin/disk/disk0.img,cache=writeback -S -s

# gdb
GNU gdb (GDB) Fedora (7.2-52.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
The target architecture is assumed to be i386:x86-64:intel
(gdb) symbol-file /sda4/kvm/vmlinux
Reading symbols from /sda4/kvm/vmlinux...done.
(gdb) target remote :1234
Remote debugging using :1234
0x0000000000000000 in ?? ()
(gdb) b kmem_cache_alloc
Breakpoint 1 at 0xffffffff81121adb: file mm/slub.c, line 2375. (2
locations)
(gdb) c
Continuing.


Thanks, 
Onkar

             reply	other threads:[~2012-08-21 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 23:53 Onkar [this message]
2012-08-22  9:50 ` [Qemu-devel] setting up breakpoints - kernel debugging help wit gdb in qemu-kvm Mulyadi Santosa
2012-08-22 10:27 ` Jan Kiszka

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=1345593239.2574.4.camel@localhost.localdomain \
    --to=kernzap@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@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 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 NNTP newsgroup(s).