← Back to team overview

kicad-developers team mailing list archive

Re: Debuggers, boost and std::deque

 

I also found a new experimental feature in CLion: Enable natvis renderers for LLDB.

Doesn’t seem to help though.  I wonder if I need to load natvis files somewhere?


> On 11 Jun 2019, at 21:16, Bernhard Stegmaier <stegmaier@xxxxxxxxxxxxx> wrote:
> 
> I wouldn’t try this.
> macOS switched to libc++ long time ago.
> I don’t know how it is today but I had a really hard time with unpredictable results/crashes/linking errors back when I started with KiCad and (due to not knowing anything about it) had libraries compiled with libstdc++ and libc++ mixed. Some stuff like strings were not compatible causing a lot of fun.
> 
> 
> Regards,
> Bernhard
> 
> 
>> On 11. Jun 2019, at 21:53, Jeff Young <jeff@xxxxxxxxx <mailto:jeff@xxxxxxxxx>> wrote:
>> 
>> I found this in a CLion blog:
>> 
>> This feature works in GCC, and in the case of Clang it works for libstdc++ only. This requires the following setting to be added to CMakeLists.txt:
>> 
>> set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -stdlib=libstdc++”)
>> I’m not sure what the alternative to libstdc++ is.  Anyone know what we use?
>> 
>>> On 11 Jun 2019, at 19:21, Seth Hillbrand <seth@xxxxxxxxxxxxx <mailto:seth@xxxxxxxxxxxxx>> wrote:
>>> 
>>> On 2019-06-11 13:23, Jeff Young wrote:
>>>> Do other folks debuggers have a hard time with these?  Mine won’t show
>>>> me the contents of an OPT item, and it consistently lies about the
>>>> size() of a std::deque.
>>>> Cheers,
>>>> Jeff.
>>> 
>>> Hi Jeff-
>>> 
>>> I use this [1] in gdb for STL containers.  Also, check out [2] for working with BOOST if your gdb is >7.0
>>> 
>>> Best-
>>> Seth
>>> 
>>> 
>>> [1] http://sourceware.org/ml/gdb/2008-02/msg00064.html <http://sourceware.org/ml/gdb/2008-02/msg00064.html>
>>> [2] https://github.com/ruediger/Boost-Pretty-Printer <https://github.com/ruediger/Boost-Pretty-Printer>
>> 
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers <https://launchpad.net/~kicad-developers>
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~kicad-developers <https://launchpad.net/~kicad-developers>
>> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 


References