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

Remote Debugging

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
10 Posts 2 Posters 1.3k 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.
  • O Offline
    O Offline
    ODБOï
    wrote on 12 Nov 2020, 09:54 last edited by ODБOï 11 Dec 2020, 09:54
    #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

    J 1 Reply Last reply 12 Nov 2020, 10:48
    0
    • O ODБOï
      12 Nov 2020, 09:54

      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

      J Offline
      J Offline
      JonB
      wrote on 12 Nov 2020, 10:48 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

      O 1 Reply Last reply 12 Nov 2020, 10:57
      1
      • J JonB
        12 Nov 2020, 10:48

        @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

        O Offline
        O Offline
        ODБOï
        wrote on 12 Nov 2020, 10:57 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

        J 1 Reply Last reply 12 Nov 2020, 11:00
        0
        • O ODБOï
          12 Nov 2020, 10:57

          @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

          J Offline
          J Offline
          JonB
          wrote on 12 Nov 2020, 11:00 last edited by
          #4

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

          O 1 Reply Last reply 12 Nov 2020, 11:03
          1
          • J JonB
            12 Nov 2020, 11:00

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

            O Offline
            O Offline
            ODБOï
            wrote on 12 Nov 2020, 11:03 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)

            J 1 Reply Last reply 12 Nov 2020, 11:09
            0
            • O ODБOï
              12 Nov 2020, 11:03

              @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)

              J Offline
              J Offline
              JonB
              wrote on 12 Nov 2020, 11:09 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?

              O 1 Reply Last reply 12 Nov 2020, 11:17
              1
              • J JonB
                12 Nov 2020, 11:09

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

                O Offline
                O Offline
                ODБOï
                wrote on 12 Nov 2020, 11:17 last edited by ODБOï 11 Dec 2020, 11:19
                #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
                • O Offline
                  O Offline
                  ODБOï
                  wrote on 13 Nov 2020, 13:37 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
                  • O Offline
                    O Offline
                    ODБOï
                    wrote on 16 Nov 2020, 13:42 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
                    • O Offline
                      O Offline
                      ODБOï
                      wrote on 17 Nov 2020, 10:59 last edited by
                      #10

                      Worked with gdbserver verson 7.9.1

                      1 Reply Last reply
                      1

                      1/10

                      12 Nov 2020, 09:54

                      • Login

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