I use a cross-compiled Qt setup on a CentOS host. Developing Qt applications and executing them remotely on the Raspberry Pi works fine. But I got the following error when I try to debug the application:
I use the standard GDB from the official Raspberry Pi toolchain (tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gdb
).
So what is wrong? Why does the GDB needs Python scripting when I use C++?
2
Answers
I usually build GDB from source, so you can configure it to include Python support:
First some dependencies:
Then build and install GDB itself:
GDB will be installed in
~/.local/bin
, so add it to your path if you haven’t already.You can run this command in your terminal to install gdb