Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22633

Remote Debugging with Yocto, gdb starts and finishes immediatley

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.10.0-beta1
    • Debugger
    • None
    • Linux/X11

    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:

      1. Sourcing the environment via
        . /opt/poky/2.0.3/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
      1. Starting the gdb with the program as first argument on my host:
        arm-poky-linux-gnueabi-gdb HmiUi
      1. Connect to remote target inside the gdb
        (gdb) target remote 192.168.42.2:1234
        
      1. 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:

      1. From the menu: "Debug" > "Start debugging" > "Attach to running Debug Server"
      2. I filled out "Local executable" with the path to my application
      3. I filled out "Override server channel" with the target ip address and port
      4. When trying to debug now, I see only the following:
        13:58:55: Debugging starts
        13:58:56: Debugging has finished
      1. 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)
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            christian.lohr Christian Lohr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes