From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3yFG-0002fA-8a for qemu-devel@nongnu.org; Tue, 21 Aug 2012 19:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3yFA-0007PM-RT for qemu-devel@nongnu.org; Tue, 21 Aug 2012 19:52:26 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:41818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3yFA-0007PG-L1 for qemu-devel@nongnu.org; Tue, 21 Aug 2012 19:52:20 -0400 Received: by pbbjt11 with SMTP id jt11so586804pbb.4 for ; Tue, 21 Aug 2012 16:52:19 -0700 (PDT) From: Onkar Content-Type: text/plain; charset="ISO-8859-15" Date: Wed, 22 Aug 2012 05:23:59 +0530 Message-ID: <1345593239.2574.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] setting up breakpoints - kernel debugging help wit gdb in qemu-kvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi 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 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: . 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