Re: [libvirt] gdb works abnormally when debug the libvirt.

2011-11-29 Thread Eric Blake
On 11/29/2011 03:41 AM, Michal Privoznik wrote: > > Now you should have libvirtd in ./daemon/libvirtd; However, this is > libtool wrapper script. So you won't succeed running it directly (gdb > ./daemon/libvirtd); I personally use attach: gdb -p $(pgrep libvirtd); You can also use: libtool --mod

Re: [libvirt] gdb works abnormally when debug the libvirt.

2011-11-29 Thread ShaoHe Feng
thank you. It can work. , Michal Privoznik wrote: > On 29.11.2011 11:32, ShaoHe Feng wrote: >> When I to use gdb to check whether qemuMonitorJSONIOProcessEvent >> processes the Event that I expect. >> >> but the gdb works abnormally. >> I list the the position of the source file by gdb. It is the

Re: [libvirt] gdb works abnormally when debug the libvirt.

2011-11-29 Thread Michal Privoznik
On 29.11.2011 11:32, ShaoHe Feng wrote: > When I to use gdb to check whether qemuMonitorJSONIOProcessEvent > processes the Event that I expect. > > but the gdb works abnormally. > I list the the position of the source file by gdb. It is the correct > functionqemuMonitorJSONIOProcessEvent. > Howe

[libvirt] gdb works abnormally when debug the libvirt.

2011-11-29 Thread ShaoHe Feng
When I to use gdb to check whether qemuMonitorJSONIOProcessEvent processes the Event that I expect. but the gdb works abnormally. I list the the position of the source file by gdb. It is the correct functionqemuMonitorJSONIOProcessEvent. However I set break point on this position. then "info b"