[Kde-bindings] GDB debugging under Windows!

Steven Boswell II ulatekh at yahoo.com
Sun Dec 11 21:27:12 UTC 2011


Since you sent my letter to the list, let me add that qyoto-debug.sh needs a trailing parenthesis that somehow got missed during copy/paste.  One also needs to remove the "$ " at the beginning of the file.


Also, while under Windows, I tried to get CMake to generate build files for Visual Studio 2008, since MonoDevelop can read those, but CMake died immediately and complained that it couldn't find an appropriate "make" program.  I wasn't sure what to give it.  I was trying to create projects for smokeqt and qyoto that I could load into MonoDevelop, to see if I could get MonoDevelop to debug them.  No luck so far.  Does CMake need an option for MonoDevelop, or is there some other way to get this to work?

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev at yahoo.com>
To: Steven Boswell II <ulatekh at yahoo.com>; KDE bindings <kde-bindings at kde.org> 
Sent: Sunday, December 11, 2011 1:58 PM
Subject: Re: GDB debugging under Windows!
 

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/17f02843/attachment-0001.html>


More information about the Kde-bindings mailing list