← Back to team overview

kicad-developers team mailing list archive

Re: Debuggers, boost and std::deque

 

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> 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
> [2] https://github.com/ruediger/Boost-Pretty-Printer


Follow ups

References