I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a Linux ARM), when I ask Qt Creator to run in debug mode it returns an error in the "Application Output":
sh: gdbserver: not found
This seems strange since, as I sad, the configuration is fine and no error about that is reported by Qt Creator in any moment before starting debug mode.
I did some research on the web to find which was the exact steps to use GDB to debug an Embedded Linux application from within Qt Creator (to use breakpoints, etc.) and the closest thing to an answer I got was this commentary by Tobias Hunger:
You will need to have ssh and gdbserver installed on your board for this to work. Then you need to set up your board [qt-project.org] in Creator. Afterwards you need to set up a kit [qt-project.org] using this device.
Those steps, thought, are not clear to me.
- First, why would I need to have a GDB inside the device if the Kit should point to my local GDB?
- Or it shouldn't?
- Where would I put the GDB anyway?
- How do I know if I have this
ssh
on my device? - If I don't, how do I install it?
- All the other mentioned steps are already done, but related to the GDB located on my Desktop Ubuntu. Should I change something if I do the above steps?
And of course, is this manual my Tobias complete or do I need to do something else for this to work?