Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt Creator 4.10.0-beta1
-
None
Description
I'm trying to remote debug a application on linux, that was build with Yocto (for imx6). I started the gdbserver on my remote machine via
QT_QPA_PLATFORM=eglfs gdbserver :1234 HmiUi
when I try to debug via commandline gdb on my host machine everything works fine:
- Sourcing the environment via
. /opt/poky/2.0.3/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
- Starting the gdb with the program as first argument on my host:
arm-poky-linux-gnueabi-gdb HmiUi
- Connect to remote target inside the gdb
(gdb) target remote 192.168.42.2:1234
- Inside the command line gdb I can debug. It's all fine.
When I'm trying this inside the QtCreator it isn't working. I started the gdbserver as stated above and then:
- From the menu: "Debug" > "Start debugging" > "Attach to running Debug Server"
- I filled out "Local executable" with the path to my application
- I filled out "Override server channel" with the target ip address and port
- When trying to debug now, I see only the following:
13:58:55: Debugging starts 13:58:56: Debugging has finished
- Inside the terminal window from which I started the QtCreator (because I sourced the environment like above) I see the following:
Invalid run control state transition from "RunControlState::Starting" to "RunControlState::Stopped"
So Remote debugging with the QtCreator doesn't work on my machine.
My GDB-Configuration:
(gdb) show configuration This GDB was configured as follows: configure --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --with-auto-load-dir=$debugdir:$datadir/auto-load --with-auto-load-safe-path=$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/share/gdb (relocatable) --with-jit-reader-dir=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/gdb (relocatable) --without-libunwind-ia64 --without-lzma --without-babeltrace --without-intel-pt --disable-libmcheck --with-mpfr --with-python=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr (relocatable) --without-guile --with-separate-debug-dir=/opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/debug (relocatable)