qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Debugging vmlinux with qemu and gdb. Unable to step, ne


From: Mulyadi Santosa
Subject: Re: [Qemu-devel] Debugging vmlinux with qemu and gdb. Unable to step, next, print or to get any information..
Date: Fri, 9 May 2008 09:31:24 +0700

Hi...

On Thu, May 8, 2008 at 2:53 PM, Keilhau Timo ( Student )
<address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]