[Kde-bindings] GDB debugging under Windows!

Dimitar Dobrev dpldobrev at yahoo.com
Sun Dec 11 20:58:55 UTC 2011


Thank you very much! I looked at the stack trace and as soon as I have the opportunity I'll try to fix it. Changing the button to a check box no longer gives the error so it is just for certain widgets (buttons and QActions at least). I'll also to set up debugging on my system. For now I'm just forwarding your mail and attachments to the mailing list, hopefully your stack trace will be enough for Arno to fix the problem. In the mean time, I have sent to the mailing list a simpler example which does not even use Sender() and still crashes, you may want to check it out.



________________________________
 From: Steven Boswell II <ulatekh at yahoo.com>
To: Dimitar Dobrev <dpldobrev at yahoo.com> 
Sent: Sunday, December 11, 2011 10:08 PM
Subject: GDB debugging under Windows!
 

I can run C# executables under Windows in the debugger!  Here's what I did:

1) I deleted my old "C:\Program Files (x86)\qyoto", installed my previously-built Release version of smokegen (to that directory), then copied that directory to "C:\Program Files (x86)\qyoto-debug".
2) I built a Debug version of smokeqt, and installed it to "C:\Program Files (x86)\qyoto-debug".
3) After configuring a Debug qyoto build, set to install to "C:\Program Files (x86)\qyoto-debug", I changed Smoke_DIR to "C:\Program Files (x86)\qyoto-debug/share/smoke/cmake", and rebuilt the CMake files.
4) Even after that, there were still references in my "qyoto-build-debug" directory to "C:\Program Files (x86)\qyoto".  Why, I don't know.  But running the enclosed "qyoto-debug.sh" file from within the "qyoto-build-debug" directory patched them up.
5) I built qyoto, and installed it to "C:\Program Files (x86)\qyoto-debug".
6) I took "C:\Program Files (x86)\qyoto" out of my system path and put in "C:\Program Files (x86)\qyoto-debug" instead.
7) I started a new MinGW Shell window, so that it would get the new path.
8) I cd'd to the directory with the "test" executable and ran "gdb test.exe".

The enclosed test-crash.txt shows the stack trace from the crash, and a point where I was able to list the source code of part of smokeqt, and look at variables!

Hopefully these instructions will let you debug Qyoto under Windows!

As for your crash...it seems to be dying inside of a call to QPushButton::paintEvent(), which seems really weird.


-Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20111211/1c0ae8ff/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-crash.txt
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20111211/1c0ae8ff/attachment.txt>


More information about the Kde-bindings mailing list