OS X 上缺少 Boost 调试符号

Missing Boost debug symbols on OS X

我以前从来不需要包含调试符号。它们可能已被其他人包含在项目中,但不是我。

我在一个奇怪的地方收到一个 SIGTRAP 异常断点,GDB 调试器日志显示以下 "can't open to read symbols: No such file or directory"。大多数问题(如果不是全部)似乎是 Boost 问题。

我正在尝试使用 CLion 在 Mac OS X 上调试 C++ 应用程序,它使用 CMake。有人提到我可能没有安装调试器符号。我一直在寻找不同的问题和互联网。然而,由于这个话题对我来说是新的,所以我读得越多就越困惑。

谁能帮我弄清楚如何获取我丢失的符号?

GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
python
>>>>>Function "__cxa_throw" not defined.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/cmdline.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/config_file.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/convert.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/options_description.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/parsers.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/positional_options.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/split.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/utf8_codecvt_facet.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/value_semantic.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/program_options/build/darwin-4.2.1/release/threading-multi/variables_map.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/codecvt_error_category.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/operations.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/path.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/path_traits.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/portability.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/unique_path.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/utf8_codecvt_facet.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/thread/build/darwin-4.2.1/release/threading-multi/future.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/thread/build/darwin-4.2.1/release/threading-multi/pthread/once.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/thread/build/darwin-4.2.1/release/threading-multi/pthread/thread.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/chrono/build/darwin-4.2.1/release/threading-multi/chrono.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/chrono/build/darwin-4.2.1/release/threading-multi/process_cpu_clocks.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/chrono/build/darwin-4.2.1/release/threading-multi/thread_clock.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/system/build/darwin-4.2.1/release/threading-multi/error_code.o': can't open to read symbols: No such file or directory.
warning: `/private/tmp/boost-VVHIjo/boost_1_57_0/bin.v2/libs/atomic/build/darwin-4.2.1/release/threading-multi/lockpool.o': can't open to read symbols: No such file or directory.
warning: Could not open OSO archive file "/BinaryCache/corecrypto/corecrypto-233.1.2~26/Symbols/BuiltProducts/libcorecrypto_static.a"
warning: `/BinaryCache/coreTLS/coreTLS-35.1.2~2/Objects/coretls.build/coretls.build/Objects-normal/x86_64/system_coretls_vers.o': can't open to read symbols: No such file or directory.
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~2/Symbols/BuiltProducts/libcoretls_ciphersuites.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~2/Symbols/BuiltProducts/libcoretls_handshake.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~2/Symbols/BuiltProducts/libcoretls_record.a"
warning: Could not open OSO archive file "/BinaryCache/coreTLS/coreTLS-35.1.2~2/Symbols/BuiltProducts/libcoretls_stream_parser.a"
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/bdz.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/bdz_ph.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/bmz.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/bmz8.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/brz.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/buffer_entry.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/buffer_manager.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/chd.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/chd_ph.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/chm.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/cmph.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/cmph_structs.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/compressed_rank.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/compressed_seq.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/fch.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/fch_buckets.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/graph.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/hash.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/jenkins_hash.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/linear_string_map.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/miller_rabin.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/select.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/vqueue.o': can't open to read symbols: No such file or directory.
warning: `/BinaryCache/cmph/cmph-1~1091/Objects/cmph.build/cmph.build/Objects-normal/x86_64/vstack.o': can't open to read symbols: No such file or directory.

Breakpoint 1, idair::OPProperties::readProperties (this=0x7fff5fbffa00) at /Users/pdl/IDair/Development/ONEprint Projects/Oneprint/src/controllers/OPProperties.cpp:30
30      DeviceConfig deviceConfig("DeviceConfig.ini");

Program received signal SIGTRAP, Trace/breakpoint trap.
Single stepping until exit from function _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataEv,
which has no line number information.

Program received signal SIGTRAP, Trace/breakpoint trap.
Single stepping until exit from function _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataEv,
which has no line number information.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff93019286 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::data() const () from /usr/lib/libc++.1.dylib

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff93019286 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::data() const () from /usr/lib/libc++.1.dylib

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff93019286 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::data() const () from /usr/lib/libc++.1.dylib

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff93019286 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::data() const () from /usr/lib/libc++.1.dylib

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff93019286 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::data() const () from /usr/lib/libc++.1.dylib

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

Program received signal SIGTRAP, Trace/breakpoint trap.

根据评论做出回答:

尝试从捆绑的 GDB 切换到系统上安装的 GDB。 我在 Centos 机器上。该建议是基于我无法使用捆绑的 GDB 调试 pthreads。