[Interest] QtCreator, Mac OSX and LLDB?

Michael Jackson imikejackson at gmail.com
Wed Jan 23 15:02:16 CET 2013


On Jan 22, 2013, at 4:25 PM, André Pönitz wrote:

> On Tue, Jan 22, 2013 at 08:50:30PM +0000, danny wrote:
>> I assumed it was common knowledge - you WILL hit this problem if you
>> try to trace into a non-trivial Qt application on Mac. It was
>> discussed previously on the mailing list and the Qt Creator manual
>> alludes to this in two places:
>> 
>> "Since Python enabled versions of GDB are bundled with all recent
>> Linux versions, active support for non-Python builds has been dropped
>> for platforms other than Mac OS X."
> 
> Can this be read as anything else than "Mac does not require a
> python-enabled GDB and continues to be supported with it's non-python
> enabled build"?
> 
>> It even goes so far as to describing how to install a later version of
>> GDB from source:
>> 
>> "FSF GDB can also be compiled for Mac OS, but the build is currently
>> unstable, and thererefore, this is not recommended."
> 
> It mentions the possibility to use a python-enabled GDB on Mac,
> and the consequences.
> 
> What version of GDB are you actually using?
> 
> Andre'

Trying to build and actually use the FSF version of GDB on OS X, if the build actually succeeds has so many caveats that anything beyond "toy" programs is useless. Things like gdb not supporting dynamic libraries (at least the last time I checked) are sort of show-stoppers for me.

The qt-debugging helpers in 4.7.x still seem to work, at least more or less. I can see a QString finally and a std::string pretty easily. Still no true debugging of vectors, sets, maps and really anything else. I should state that I use OS X 10.6.8 still which is where some of these problems seem to lie. I have not actually tried 10.8 debugging under Qt Creator yet.

<opinion>The sad truth for me is that when I really need to debug deep into my code I fire up a VM with Windows and Visual Studio. I may not like how VS operates but the debugger seems to be able to show all everything that I need, including STL containers and most Qt classes. </opinion>

-------
Mike Jackson




More information about the Interest mailing list