Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Remote Debugging
Forum Updated to NodeBB v4.3 + New Features

Remote Debugging

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
10 Posts 2 Posters 1.4k 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by ODБOï
    #1

    Hi,
    I'm trying to deploy a debug build of my application on my target machine, start it and use my development PC (qt-creator) to debug the application remotely.
    -target machine runs windows10 (no Qt installed)
    -dev machine windows 10, Qt5.15 - mingw

    I follow instructions from here:
    https://doc.qt.io/qtcreator/creator-debugger-operating-modes.html#remote-debugging

    So i manually copied the content from my dev PC c:\qt\tools to my target PC
    then i try to run my application (debug build) like this :

    gdbserver :1234 myAppDbg

    but i get this output

    glob could not process pattern '(null)'

    Does someone know what is the issue pls ?
    Thank you

    JonBJ 1 Reply Last reply
    0
    • ODБOïO ODБOï

      Hi,
      I'm trying to deploy a debug build of my application on my target machine, start it and use my development PC (qt-creator) to debug the application remotely.
      -target machine runs windows10 (no Qt installed)
      -dev machine windows 10, Qt5.15 - mingw

      I follow instructions from here:
      https://doc.qt.io/qtcreator/creator-debugger-operating-modes.html#remote-debugging

      So i manually copied the content from my dev PC c:\qt\tools to my target PC
      then i try to run my application (debug build) like this :

      gdbserver :1234 myAppDbg

      but i get this output

      glob could not process pattern '(null)'

      Does someone know what is the issue pls ?
      Thank you

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @LeLev
      Is the following relevant to you:
      https://stackoverflow.com/questions/51092849/gdbserver-glob-could-not-process-pattern-null
      https://patches-gcc.linaro.org/patch/4389/
      https://sourceware.org/bugzilla/show_bug.cgi?id=23158

      ODБOïO 1 Reply Last reply
      1
      • JonBJ JonB

        @LeLev
        Is the following relevant to you:
        https://stackoverflow.com/questions/51092849/gdbserver-glob-could-not-process-pattern-null
        https://patches-gcc.linaro.org/patch/4389/
        https://sourceware.org/bugzilla/show_bug.cgi?id=23158

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @JonB Hi, thank you very much for your time.
        If i understand correctly there is a patch that i can apply togdbserver to fix this behavior ?
        Do i have to build gdbserver myself to apply that patch or i can download binaries from somewhere ?
        THX

        JonBJ 1 Reply Last reply
        0
        • ODБOïO ODБOï

          @JonB Hi, thank you very much for your time.
          If i understand correctly there is a patch that i can apply togdbserver to fix this behavior ?
          Do i have to build gdbserver myself to apply that patch or i can download binaries from somewhere ?
          THX

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @LeLev
          I know no more than what those links said!
          Start with gdbserver --version on your system?

          ODБOïO 1 Reply Last reply
          1
          • JonBJ JonB

            @LeLev
            I know no more than what those links said!
            Start with gdbserver --version on your system?

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #5

            @JonB said in Remote Debugging:

            Start with gdbserver --version on your system?

            Right now i have version 8.1, but a also did a test with one older version (7.something)

            JonBJ 1 Reply Last reply
            0
            • ODБOïO ODБOï

              @JonB said in Remote Debugging:

              Start with gdbserver --version on your system?

              Right now i have version 8.1, but a also did a test with one older version (7.something)

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @LeLev
              My reading is that it was fixed on 8.1.1 (I believe). Can you get a later version than your 8.1?

              ODБOïO 1 Reply Last reply
              1
              • JonBJ JonB

                @LeLev
                My reading is that it was fixed on 8.1.1 (I believe). Can you get a later version than your 8.1?

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by ODБOï
                #7

                @JonB ok thanks.
                I will try to download the last version then.
                My current version is the one that comes with Qt installation, under tools folder.

                1 Reply Last reply
                0
                • ODБOïO Offline
                  ODБOïO Offline
                  ODБOï
                  wrote on last edited by
                  #8

                  Hi
                  Where can I download gdbserver (binary) version >8.1.0 for windows ?
                  GDB is included in MinGW installation package but the most recent version there is 7.x
                  The vesion i got with Qt Maintenance Tool is 8.1.0
                  Should i maybe build the last version myself ? Where to find sources and build steps for windows pls ?

                  THX

                  1 Reply Last reply
                  0
                  • ODБOïO Offline
                    ODБOïO Offline
                    ODБOï
                    wrote on last edited by ODБOï
                    #9

                    I tryed to build 8.1.1
                    http://ftp.gnu.org/gnu/gdb/
                    with Msys but got tons of compilation errors:

                    [..........]
                    i386-windows-nat.c:25:54: note: in definition of macro 'context_offset'
                     #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
                                                                          ^
                    i386-windows-nat.c:66:19: error: 'CONTEXT' {aka 'struct _CONTEXT'} has no member named 'ExtendedRegisters'; did you mean 'VectorRegister'?
                       context_offset (ExtendedRegisters[15*16]),
                                       ^~~~~~~~~~~~~~~~~
                    i386-windows-nat.c:25:54: note: in definition of macro 'context_offset'
                     #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
                                                                          ^
                    i386-windows-nat.c:67:19: error: 'CONTEXT' {aka 'struct _CONTEXT'} has no member named 'ExtendedRegisters'; did you mean 'VectorRegister'?
                       context_offset (ExtendedRegisters[16*16]),
                                       ^~~~~~~~~~~~~~~~~
                    i386-windows-nat.c:25:54: note: in definition of macro 'context_offset'
                     #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
                                                                          ^
                    i386-windows-nat.c:68:19: error: 'CONTEXT' {aka 'struct _CONTEXT'} has no member named 'ExtendedRegisters'; did you mean 'VectorRegister'?
                       context_offset (ExtendedRegisters[17*16]),
                                       ^~~~~~~~~~~~~~~~~
                    i386-windows-nat.c:25:54: note: in definition of macro 'context_offset'
                     #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
                                                                          ^
                    i386-windows-nat.c:70:19: error: 'CONTEXT' {aka 'struct _CONTEXT'} has no member named 'ExtendedRegisters'; did you mean 'VectorRegister'?
                       context_offset (ExtendedRegisters[24])
                                       ^~~~~~~~~~~~~~~~~
                    i386-windows-nat.c:25:54: note: in definition of macro 'context_offset'
                     #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
                                                                          ^
                    make[2]: *** [i386-windows-nat.o] Error 1
                    make[2]: Leaving directory `/gdb-8.1.1/gdb'
                    make[1]: *** [all-gdb] Error 2
                    make[1]: Leaving directory `/gdb-8.1.1'
                    make: *** [all] Error 2
                    

                    Is there really no way of getting a compiled version directly ? I searched everywhere

                    1 Reply Last reply
                    0
                    • ODБOïO Offline
                      ODБOïO Offline
                      ODБOï
                      wrote on last edited by
                      #10

                      Worked with gdbserver verson 7.9.1

                      1 Reply Last reply
                      1

                      • Login

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