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

Cannot run debugger (remote gdb)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.4.0-beta1
    • Qt Creator 4.3.1
    • Debugger
    • None
    • I'm using QtCreator 4.3.1 on KUbuntu-17.04, arm-gdb 7.12.1 (Yocto Poky 2.3), target is a beaglebone.
    • 1d682f214426b97360fc7433530c405b8d6a572c

    Description

      Initially reported on the ML:
      http://lists.qt-project.org/pipermail/qt-creator/2017-July/006649.html

      I'm using QtCreator 4.3.1 on KUbuntu-17.04, arm-gdb 7.12.1 (Yocto Poky 2.3), target is a beaglebone.

      I have setup QtCreator kits, and the remote host, I can compile and remote run a simple Qt5 program, but i cannot remote debug it.

      I can manually run gdbserver on the target, and manually run arm-poky-linux-gnueabi-gdb on the host, and debug my application this way. But for some reason it doesn't work when using QtCreator. When i start a debug session (f5), I end up with a "Debug has failed" message

      Compile output pane

      18:01:38: Running steps for project testapp1...
      18:01:38: Configuration unchanged, skipping qmake step.
      18:01:38: Starting: "/usr/bin/make"
      make: Nothing to be done for 'first'.
      18:01:38: The process "/usr/bin/make" exited normally.
      18:01:38: The remote file system has 6425 megabytes of free space, going ahead.
      18:01:38: Deploy step finished.
      18:01:38: No deployment action necessary. Skipping.
      18:01:38: Deploy step finished.
      18:01:38: Elapsed time: 00:00.
      

      Application output pane

      Debugging starts
      Listening on port 10000
      Debugging has failed
      Debugging has finished
      

      Console/terminal messages

      QProcess: Destroyed while process ("/opt/poky/2.3.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb") is still running.
      SOFT ASSERT: "state() == Inactive || state() == Running" in file /work/build/qt-creator/src/plugins/remotelinux/remotelinuxdebugsupport.cpp, line 207
      SOFT ASSERT: "isValid()" in file /work/build/qt-creator/src/libs/utils/port.h, line 49
      SOFT ASSERT: "d->applicationProcessHandle.isValid()" in file /work/build/qt-creator/src/plugins/projectexplorer/runconfiguration.cpp, line 775
      

       

      Attachments

        Activity

          People

            hjk hjk
            chgans Christian Gagneraud
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: