Skip to content

when gdb bitcoind program, gdb prints message "can't open to read symbols" #8812

@lovecodelc

Description

@lovecodelc

Hi all, this is my first time to ask question on GitHub, I come from China. Maybe there are some mistakes in this question, Sorry.

Before I write C++ on Linux, such Ubuntu, Now turn to on Max OS.

I install Bitcoin Core code and compile it successful according to https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md , and start it successful.

But when I gdb bitcoind binary executable, i meet some problems, such as:

  1. Reading symbols from /***/bitcoin/src/bitcoind...
    warning: can't find symbol '_Z10ParseHexUVRK8UniValueRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE' in minsymtab. why?

  2. warning: `/private/tmp/boost-20160924-23596- 1q34jy8/boost_1_61_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. why?

//a lot of "can't open to read symbols: No such file or directory" about boost

3)when i gdb funcation by step, it notices "", even if i modify Makefile(in ./src/Makefile, not ./Makefile)configuration, before "CXXFLAGS = -g -O2", now "
CXXFLAGS = -g -O0", it seems not work, why?

  1. when I use gdb breakpoint, such HTTPReq_JSONRPC funcation, when request arrives, the break is stop other place not HTTPReq_JSONRPC, why?

How can i solve above questions??
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions