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

GDB Additional Attach Command for local executable

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.1
    • Debugger
    • None
    • Windows 10 64 bit

      Qt 5.15.2 64 bit

      GDB 11.2.0 64 bit

    • Windows
    • 193b1295f (master)

    Description

      Hi, this is my first bug report.

      I'm debugging an application which loads many libraries.
      To speed up debugging I've disabled automatic symbol loading with GDB command:

      set auto-solib-add off 

      (Set in Project -> Run -> Debugger Settings -> Additional startup commands)

       

      Then I'd like to load symbols from a subset of the shared libraries (for example Qt5Core.dll and other Qt related libraries). This can be done with GDB command:

      sharedlibrary Qt5Core.dll
      

      But it needs to be executed AFTER the inferior is started.

       

      There is a global GDB settings called "Additional Attach Command" which would do this but it works only for remote targets. Instead I'm debugging a locally compiled program.

      Can this setting made to work also for local debugged applications?
      Looking at the source code doesn't seem to difficult but I took only a quick look.{}

       

      A similar issue was opened some years ago QTCREATORBUG-16351 but it was closed.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-28764
        # Subject Branch Project Status CR V

        Activity

          People

            hjk hjk
            gfgit Filippo Gentile
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes