[libvirt] gdb works abnormally when debug the libvirt.

Eric Blake eblake at redhat.com
Wed Nov 30 00:11:37 UTC 2011


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 --mode=execute gdb daemon/libvirtd

to start from scratch instead of attaching to an existing pid.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111129/e8e82d29/attachment-0001.sig>


More information about the libvir-list mailing list