Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding Qt Sources to GDB on linux
Forum Updated to NodeBB v4.3 + New Features

Adding Qt Sources to GDB on linux

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dualfaces
    wrote on last edited by
    #1

    Hi all,

    i try to set up the gdb such that i can debug into qt sources from my library.
    I have Qt 5.3.2 installed (including sources) in ~/Software/Qt.
    Adding the sources via 'Add Qt Sources' button in the options menu does not lead to success.
    It adds the source path /var/tmp/qt-src and targetPath ~/Software/Qt/5.3/Src which is correct.
    But I can't step into the sources. What do i have to configure as source path?
    "Here":http://qt-project.org/doc/qtcreator-2.8/creator-debugger-engines.html is stated it has to be configured as "In the Source path field, specify the source path in the debug information of the executable as reported by the debugger." Unfortunately i don't know what that means.

    How to continue?

    Thank you!

    Regards,
    Andreas

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      You need to use debug build of Qt to make debugger to step into the Qt sources.

      I don't think that Qt from qt-project.org comes with debug info.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dualfaces
        wrote on last edited by
        #3

        Hi,

        thanks for your response! You are absolutely right, i link against release libraries. Since the windows build comes with debug libraries i did not check that.
        Is there a way to add these libraries without building them on my own?

        Thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved