gdb can't call function

前端 未结 1 1946
被撕碎了的回忆
被撕碎了的回忆 2021-01-24 17:48

I have some problems with debugging my app - when I try to call parser::extractString(...) from gdb shell it return

No symbol \"extractString\" in namesp

1条回答
  •  野的像风
    2021-01-24 18:22

    gdb does not yet support C++11 ABI tags introduced in gcc 5. See these bugs:

    • https://sourceware.org/bugzilla/show_bug.cgi?id=19436
    • https://sourceware.org/bugzilla/show_bug.cgi?id=18601

    The simplest workaround for you is probably to disable new gcc ABI by defining the macro _GLIBCXX_USE_CXX11_ABI to 0, see https://gcc.gnu.org/gcc-5/changes.html#libstdcxx.

    Or alternatively you can try to apply workarounds from https://sourceware.org/bugzilla/show_bug.cgi?id=18601#c1 though they look a bit weird.

    0 讨论(0)
提交回复
热议问题