Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Remote debugging with QtCreator
QtWS25 Last Chance

Remote debugging with QtCreator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 2.6k Views
  • 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.
  • V Offline
    V Offline
    Veepee
    wrote on last edited by
    #1

    I have established a ssh connection between target device and my Desktop PC Ubuntu 14.04.
    I have the debug binaries flashed on to the target .

    I have started gdbserver in my target device with port 2345 for my executable.
    To start remote debugging in Qt creator I give
    Debug->STart Debugging->Attach to running debug server

    I get the below error on starting the debug

    Error:
    Debugging starts
    Could not load shared library symbols for linux-gate.so.1.
    Do you need "set solib-search-path" or "set sysroot"?Debugging has finished

    Gdbserver version in target:
    GNU gdbserver (crosstool-NG 1.21.0) 7.10

    Desktop details:
    Ubuntu 14.04
    Qtcreator version 4.0.1
    Qt 5.6.1

    Configuration in Qtcreator for gdb:
    Additional attach commands ( gdb of Qtcreator)
    set solib-search-path /home/XXX/xxx/xxx_GEN/xxx/generated/staging/xxxx86make/usr/lib/:/home/XXX/xxx/xxx_GEN/xxx/generated/bin/xxxx86make/debug/
    set handle SIG32 noprint nostop
    set handle SIG64 noprint nostop
    set detach-on-fork on

    Sysroot path is set in Build & Run configuration of Qtcreator.

    I find linux-gate library is a dynamic virtual lib that is embedded as part of the binary. Any idea why this is not loading ?

    jsulmJ 1 Reply Last reply
    0
    • V Veepee

      I have established a ssh connection between target device and my Desktop PC Ubuntu 14.04.
      I have the debug binaries flashed on to the target .

      I have started gdbserver in my target device with port 2345 for my executable.
      To start remote debugging in Qt creator I give
      Debug->STart Debugging->Attach to running debug server

      I get the below error on starting the debug

      Error:
      Debugging starts
      Could not load shared library symbols for linux-gate.so.1.
      Do you need "set solib-search-path" or "set sysroot"?Debugging has finished

      Gdbserver version in target:
      GNU gdbserver (crosstool-NG 1.21.0) 7.10

      Desktop details:
      Ubuntu 14.04
      Qtcreator version 4.0.1
      Qt 5.6.1

      Configuration in Qtcreator for gdb:
      Additional attach commands ( gdb of Qtcreator)
      set solib-search-path /home/XXX/xxx/xxx_GEN/xxx/generated/staging/xxxx86make/usr/lib/:/home/XXX/xxx/xxx_GEN/xxx/generated/bin/xxxx86make/debug/
      set handle SIG32 noprint nostop
      set handle SIG64 noprint nostop
      set detach-on-fork on

      Sysroot path is set in Build & Run configuration of Qtcreator.

      I find linux-gate library is a dynamic virtual lib that is embedded as part of the binary. Any idea why this is not loading ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Veepee said in Remote debugging with QtCreator:

      linux-gate.so.1

      it can depend on other libraries.
      What does "ldd linux-gate.so.1" say?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Veepee
        wrote on last edited by Veepee
        #3

        I cannot give ldd linux-gate.so.1 because linux-gate is a virtual dynamic lib and does not exist in the system

        ldd linux-gate.so.1

        ldd: ./linux-gate.so.1: No such file or directory

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Veepee
          wrote on last edited by
          #4

          This looks to be an issue with gdb 7.7.1
          The issue gets resolved when I upgrade to 7.8 or later.

          jsulmJ 1 Reply Last reply
          0
          • V Veepee

            This looks to be an issue with gdb 7.7.1
            The issue gets resolved when I upgrade to 7.8 or later.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Veepee Regarding your use of the ldd - you need to pass the whole path to the library so it can actually find it...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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