Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Jan Kiszka
On 2012-03-17 15:16, Wei Yang wrote: >>> You can also try my patch : >>> >>> http://patchwork.ozlabs.org/patch/137543/ >> >> Unless there is a use case beyond this x86 band-aid, lets focus on >> getting gdb right. Reminds me that gdb folks asked me to file a bug >> about this - which I still need t

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Wei Yang
>> You can also try my patch : >> >> http://patchwork.ozlabs.org/patch/137543/ > > Unless there is a use case beyond this x86 band-aid, lets focus on > getting gdb right. Reminds me that gdb folks asked me to file a bug > about this - which I still need to do. :-/ > > Jan > Jan, I didn't try your

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Wei Yang
2012/3/17 Jan Kiszka : > [ re-added qemu-devel to CC ] > > On 2012-03-17 13:10, Wei Yang wrote: >>> Two major issues with this procedure: >>> >>> 1. When using kvm, a soft breakpoint (as set by 'b') will inject a trap >>> instruction into the guest image - which is not yet loaded after the >>> bios

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Jan Kiszka
On 2012-03-17 12:25, Laurent Vivier wrote: > Le samedi 17 mars 2012 à 09:53 +0100, Jan Kiszka a écrit : >> On 2012-03-16 03:43, Wei Yang wrote: >>> All >>> >>> I like qemu very much and know it could debug the kernel. >>> >>> I tried what I searched on web but couldn't stop at the break point. >>>

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Jan Kiszka
[ re-added qemu-devel to CC ] On 2012-03-17 13:10, Wei Yang wrote: >> Two major issues with this procedure: >> >> 1. When using kvm, a soft breakpoint (as set by 'b') will inject a trap >> instruction into the guest image - which is not yet loaded after the >> bios ran. You need to use a hardware

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Laurent Vivier
Le samedi 17 mars 2012 à 09:53 +0100, Jan Kiszka a écrit : > On 2012-03-16 03:43, Wei Yang wrote: > > All > > > > I like qemu very much and know it could debug the kernel. > > > > I tried what I searched on web but couldn't stop at the break point. > > Below is what I did. > > > > 1. Both host a

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-17 Thread Jan Kiszka
On 2012-03-16 03:43, Wei Yang wrote: > All > > I like qemu very much and know it could debug the kernel. > > I tried what I searched on web but couldn't stop at the break point. > Below is what I did. > > 1. Both host and guest installed the same OS, Fedora16 x86_64. > > 2. Compile the qemu wit

Re: [Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-16 Thread Mulyadi Santosa
Hi... On Fri, Mar 16, 2012 at 09:43, Wei Yang wrote: > 8. Attach the gdb in the kernel source directory >    gdb >    file vmlinux that vmlinux, is that the symbol file of the guest running kernel? And have you compiled the guest kernel with the option to include debug info and possibly frame po

[Qemu-devel] Failed to set a breakpoint on start_kernel

2012-03-15 Thread Wei Yang
All I like qemu very much and know it could debug the kernel. I tried what I searched on web but couldn't stop at the break point. Below is what I did. 1. Both host and guest installed the same OS, Fedora16 x86_64. 2. Compile the qemu with ./configure --target-list=x86_64-softmmu --enable-k