[Kde-pim] Review Request: Using gdb to debug akonadi_agent_launcher is not always possible
Guy Maurel
guy-kde at maurel.de
Mon Nov 7 17:33:07 GMT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103064/
-----------------------------------------------------------
Review request for Akonadi.
Description
-------
Using gdb to debug
akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_0
I use the dgb command
set detach-on-fork off
This is not possible because the process will been killed
QProcess: Destroyed while process is still running.
Program terminated with signal SIGKILL, Killed.
The program no longer exists.
Looking at
http://sector.ynet.sk/qt4-tutorial/how-to-read-qt-documentation-basic-concepts.html
we can found the explanation under
Memory allocation on stack vs. heap
...
Solution to this is to create variable on heap.
I propose the same here to be able to debug the akonadi_agent_launcher, changing
QProcess proc;
to
QProcess *proc = new QProcess();
Diffs
-----
libs/xdgbasedirs.cpp 6307b70
Diff: http://git.reviewboard.kde.org/r/103064/diff/diff
Testing
-------
Thanks,
Guy Maurel
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list