当我构建clang时,我添加了标志-DCMAKE_BUILD_TYPE=Debug
。
现在我想调试我的铿锵声。
我做gdb build/bin/clang
。但是当我想添加断点break llvm/lib/Transforms/Instrumentation/AddressSanitizer:instrumentStoreInstruction
并且gdb抛出错误
功能" instrumentStoreInstruction"未在" /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp"中定义。
但该函数的原型和定义在该文件中。