Mulyadi Santosa wrote: > 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. > > I believe that Mulyadi is talking about the following two patches which are attached here, assuming you are able to hit breakpoints. Jason.