在OS X上缺少Boost调试符号

时间:2015-03-26 15:44:04

标签: c++ boost gdb debug-symbols

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

我在一个奇怪的地方收到一个SIGTRAP异常断点,并且GDB调试器日志显示以下“无法打开读取符号:没有这样的文件或目录”。大多数问题(如果不是全部)似乎都是Boost问题。

我正在尝试使用CMion在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.

1 个答案:

答案 0 :(得分:1)

从评论中回答:

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