From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuIOO-000480-Ii for qemu-devel@nongnu.org; Thu, 08 May 2008 22:31:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuIOM-00046i-VH for qemu-devel@nongnu.org; Thu, 08 May 2008 22:31:28 -0400 Received: from [199.232.76.173] (port=45392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuIOM-00046Z-PE for qemu-devel@nongnu.org; Thu, 08 May 2008 22:31:26 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:26901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuIOM-0002JH-Ip for qemu-devel@nongnu.org; Thu, 08 May 2008 22:31:26 -0400 Received: by wf-out-1314.google.com with SMTP id 27so963814wfd.4 for ; Thu, 08 May 2008 19:31:24 -0700 (PDT) Message-ID: Date: Fri, 9 May 2008 09:31:24 +0700 From: "Mulyadi Santosa" Subject: Re: [Qemu-devel] Debugging vmlinux with qemu and gdb. Unable to step, next, print or to get any information.. In-Reply-To: <824D057211107844BA95DB341B4BF12E01139BF2@hanvsmail04.eu.thmulti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <824D057211107844BA95DB341B4BF12E01139BF2@hanvsmail04.eu.thmulti.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi... On Thu, May 8, 2008 at 2:53 PM, Keilhau Timo ( Student ) wrote: > Ive compiled the 2.6.25 kernel on guest with: > [*] Compile the kernel with frame pointers > [*] Compile the kernel with debug info > additionally CFLAGS="-g3 -ggdb" You meant -O3? well, IMO, you don't need -O at all. AFAIK mixing -g or -ggdb with -O{1,2,3} is a bad thing, since it will render the DWARF information inside the ELF file (in this case, the vmlinux) inconsistent with the runtime context (line number, current EIP correlated with break points). Of course, this assume that there is no bugs while Qemu inspect and found that it must pause at certain address... I believe Jasson Wessel had squashed all that kind of bugs in the past. regards, Mulyadi.