Solved QtCreator can't debug

FreeBSD 12
QtCreator 4.9.0

lldb doesn't work, so gdb is installed (gdb-8.2.1_3), when it can't be executed


$ gdb
ld-elf.so.1: Undefined symbol "_rl_echoing_p" referenced from COPY relocation in /usr/local/bin/gdb


How to make QtCreator able to debug C++ code?
 
Try to reinstall gdb:
# pkg install -fy gdb

What exactly is the problem of lldb? Perhaps, you might have more success with the latest release v8.0.1 from and the ports:
# pkg install llvm80.

Is this a x86 installation?
 
Try to reinstall gdb:
# pkg install -fy gdb
tried
Code:
# pkg remove gdb
# pkg install gdb
not work, then tried
Code:
# pkg update
# pkg upgrade
after several packages are updated, gdb works.

What exactly is the problem of lldb? Perhaps, you might have more success with the latest release v8.0.1 from and the ports:
# pkg install llvm80.
Installed:
Code:
/usr/local/bin/gcc
/usr/local/bin/g++
/usr/bin/clang
/usr/bin/clang++
/usr/local/llvm60/bin/clang
/usr/local/llvm60/bin/clang++
/usr/local/llvm80/bin/clang
/usr/local/llvm80/bin/clang++
Some test results for debuggers:
gdb works (with gcc g++ llvm80, llvm60 compiler is not tried)
/usr/bin/lldb stuck (with /usr/bin/clang /usr/bing/clang++)
/usr/local/llvm80/bin/lldb break point is either not breaked broken or break at an arbitrary point (with llvm80 compiler)

It seems that lldb has not been well supported by QtCreator 4.9.0 yet.
doc at https://doc.qt.io/qtcreator/creator-debugger-engines.html
PlatformCompilerNative Debugger
LinuxGCC, ICCGDB, LLDB (experimental)
UnixGCC, ICCGDB
macOSGCC, ClangLLDB, FSF GDB (experimental)
Windows/MinGWGCCGDB
Windows/MSVCMicrosoft Visual C++ CompilerDebugging Tools for Windows/CDB

Is this a x86 installation?
Yes, it is x86 64bit
 
jronald You're making a royal mess of the formatting.

 
Back
Top