Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging Raspberry PI with gdb-multiarch
Forum Updated to NodeBB v4.3 + New Features

Debugging Raspberry PI with gdb-multiarch

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 2.0k 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.
  • P Offline
    P Offline
    ppreininger
    wrote on 4 Apr 2018, 19:41 last edited by
    #1

    Hi,
    I have Cross compiled a toolchain for the Raspberry PI3 unter Arch labs Linux. Deploy and everything works, debugging can be done with gdb-mulitarch. Unfortunately, the gdb requires specification of an additional startup command (set gnutarget elf32-littlearm). If specified, deploy and debug to the Raspberry works fine, but then the Desktop debugging does not work anymore. Without setting the command, gdb tells me that there is an ambiguous file format (elf32-littlearm, elf32-littlearm-symbian elf32-littlearm-vxworks).
    Is there a way to specify the command for the kit only or maybe remove the other formats from gdb-multiarch? Sorry if I should better post that question in a gdb forum, but thank you for your help anyway.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 4 Apr 2018, 20:19 last edited by
      #2

      Hi
      Creator as a gdb console/shell that allows live/runtime parameters.
      I use it to skip std:.vector etc.
      Im wondering if you can use that for inserting
      set gnutarget elf32-littlearm
      http://doc.qt.io/qtcreator/creator-debug-mode.html#directly-interacting-with-native-debuggers

      I assume if you write in here
      alt text

      Its the case where it breaks the "Desktop debugging" part ?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        ppreininger
        wrote on 4 Apr 2018, 20:58 last edited by
        #3

        Yes, I already used this and it works. The only problem is that this setting is global and not limited to the Kit used, therefore debugging the project in the Desktop version does not work anymore.

        M 1 Reply Last reply 4 Apr 2018, 21:05
        0
        • P ppreininger
          4 Apr 2018, 20:58

          Yes, I already used this and it works. The only problem is that this setting is global and not limited to the Kit used, therefore debugging the project in the Desktop version does not work anymore.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 4 Apr 2018, 21:05 last edited by mrjj 4 Apr 2018, 21:05
          #4

          @ppreininger
          Ok. as i assumed.
          I never did find same sort of setting pr kit so we resorted to live pasting it but
          im not sure if your "set gnutarget " must be run before attach.

          Did you look into using a .gdbinit file ?
          You might be able to pass -x path to init file and use different settings that way but
          i didnt test it.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            ppreininger
            wrote on 4 Apr 2018, 21:55 last edited by
            #5

            Thanks, I'll have a try tomorrow

            1 Reply Last reply
            0
            • P Offline
              P Offline
              ppreininger
              wrote on 5 Apr 2018, 18:16 last edited by
              #6

              Didn't work unfortunately. Does not matter. I'll manage. Thank you

              1 Reply Last reply
              0

              1/6

              4 Apr 2018, 19:41

              • Login

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