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

Source code not displayed while debugging an external library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 2.4.1
    • Debugger
    • None
    • Ubuntu Precise x86/32

    Description

      I have a project which consists of a library and an application. Library is built as a debian package and installed (with -dbg package).
      When i load the application using library in QtC and debug it, the debugger does not display source code in the library.
      GDB on command line does that.

      This may be a difficult one to reproduce but you can try on a Ubuntu system:

      git clone https://github.com/vranki/libsiilihai.git
      git clone https://github.com/vranki/siilihai-client.git
      cd libsiilihai
      dpkg-buildpackage -rfakeroot -b
      sudo dpkg -i ../libsiilihai*.deb

      Now open siilihai-client.pro in QtC and build it.
      Add a breakpoint to for example LoginWizard::LoginWizard

      Start debugging, debugger should break at breakpoint.

      Notice that Frame #2 (ClientLogic::lanchSiilihai() ) is displayed as gray
      in backtrace and clicking on it displays assembler instead of source code.

      If you do the same in GDB, the source for frame #2 is displayed.

      Attachments

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

        Activity

          People

            hjk hjk
            vranki Ville Ranki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes