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

GDB debugging not working in QtCreator 2.8.1/Qt 5.1.1/GDB 7.5/TI SDK 6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.0.0-rc1
    • Qt Creator 2.8.1
    • Debugger
    • None
    • QtCreator 2.8.1/Qt 5.1.1 -platform eglfs -plugin tslib/GDB 7.5/TI SDK 6.0 running on am335x TI dev board/Ubuntu 12.04 lts running in VMware® Player on Windows 7 32bit SP1

    Description

      I built Qt 5.1.1 using the tool chain included in the TI SDK 6.0, which includes GDB 7.5. When trying to debug from within QtCreator 2.8.1 the Locals and Expressions window doesn't display any of my c++ variables, it does however show my qml variables. Even if I highlight a c++ variable and try to drag and drop it into the Locals and Expressions window it still doesn't show up. To try and solve this issue I downloaded precompiled binaries of the GDB libraries from here: https://releases.linaro.org/12.10/components/toolchain/binaries
      And I tried the two latest ones from here: https://launchpad.net/linaro-toolchain-binaries

      Although replacing the local arm-linux-gnueabihf-gdb file and the gdbserver file on my SD card of my linux build did help the problem a little, it did not totally fix it. Now I get c++ variables sometimes in the Locals and Expressions window but sometimes I do not or I get the wrong stuff. I can also drag and drop c++ variables to the window sometimes and the values will show up and other times that doesn't work either. I find it works best if I remove all expression evaluators first before dragging and dropping a new local or member variable to the window.

      This brings me to my next problem which I believe is most likely related but I cannot be certain. I regularly get segmentation faults when running with the debugger attached. This didn't happen really until I added in a stackview component or a loader component. It is strange however that my application will run all day if I am running without the debugger even if there is a stackview component or a loader component.

      Since updating my GDB didn't fix the problem I restored the original gdb and gdbserver files and collected some debug logs. There are three debugger files attached, one with c++ debugging only, one with qml debugging only, and one with both enabled. You will see the debugger doesn't crash if I only have one or the other disabled but it does crash when I have both enabled. Also it didn't matter if I had qml debugging enabled I still wasn't able to see c++ variables in the Locals and Expressions window. Just for reference...

      root@am335x-evm:~# gdbserver --version
      GNU gdbserver (GDB) 7.5
      Copyright (C) 2012 Free Software Foundation, Inc.
      gdbserver is free software, covered by the GNU General Public License.
      This gdbserver was configured as "arm-oe-linux-gnueabi"

      Attachments

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

        Activity

          People

            hjk hjk
            nate.rogers Nate Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes