kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #41002
Re: Debuggers, boost and std::deque
-
To:
Jeff Young <jeff@xxxxxxxxx>
-
From:
Bernhard Stegmaier <stegmaier@xxxxxxxxxxxxx>
-
Date:
Tue, 11 Jun 2019 22:16:10 +0200
-
Arc-authentication-results:
i=1; mail.sw-systems.de; none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=sw-systems.de; s=mail; t=1560284171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=8GA9GMjdzGxn1BImwpel2Z4ZIKqOcnI8zpm/THkTTc0=; b=fz5kSTLAcP60CI8YmloKe42FORYH0c4A8Zc7TAGmZ4fIH3BoL6azzvqTpB2o0k91iTuHsX K5M21sQnQQ/bUWvrLilWA7H2nuyfxa6TCy35TJCsrttRfP3VLkZfyWgfBlz/zI1yCOmgzc DHF6w8u4sOlmMe+Up6J4Ljp2WjVDLnU=
-
Arc-seal:
i=1; s=mail; d=sw-systems.de; t=1560284171; a=rsa-sha256; cv=none; b=GN/lDCjg6JBQi6bmcC8iA2ncLQ3B7nek2I9H4Rly2tGGjNdRbbxWRTPsK+sESSrm+svt/q 4KG4+vH0+tbgiUDVkYkLkForMcjW+r75MVihlT4xgCCONhbuTyDG2LRGE0pN/aFmMh6HIe KzIpIWD1AzNws0OCXc+Eapfmm4g+EIE=
-
Cc:
KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<6D8EB2A7-4110-4479-A90A-8ED441E61E00@rokeby.ie>
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> 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
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References