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

Stepping in C++ does not work on Boot2Qt device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.3.1, Qt Creator 4.4.0
    • Fix Version/s: None
    • Component/s: Boot2Qt Support , Debugger
    • Labels:
      None
    • Environment:
      Ubuntu 17.04 64 bit
      Windows 10 1703 64 bit
      Nitrogen6x board

      Description

      1. Create a new Qt Quick Application project using defaults.
      2. Place a breakpoint in main.cpp at the line:
            QQmlApplicationEngine engine;
        
      3. Start debugging this on a Boot2Qt device with Qt 5.6.2.
      4. When the breakpoint is being hit, press F10 ("step over").
        You'll soon see a message box that the process was stopped because of a SIGTRAP signal. Creator will display the following lines in pthread_cond_wait.c:
        	  /* Wait until woken by signal or broadcast.  */
        	lll_futex_wait (&cond->__data.__futex, futex_val, pshared);
        
      5. Press F5 ("continue").
        You won't be able to get the application running. At least I am not.

      Stepping from the breakpoint should stop at the next line in the same file. After continuing, the application should start correctly.

      Without the said breakpoint, the application will start correctly. Stepping at a breakpoint in QML works. Breakpoints in both, C++ and QML, work with a Boot2Qt device running Qt 5.9.1

        Attachments

        1. left.log
          12 kB
        2. right.log
          169 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sapiippo Samuli Piippo
            Reporter:
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes