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. Locals and Expressions window is blank
QtWS25 Last Chance

Locals and Expressions window is blank

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 4 Posters 1.1k 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.
  • M Offline
    M Offline
    maher_electronic
    wrote on last edited by
    #1

    Hi,

    I'm developing a GUI application with Qt on my target device which is a Beaglebone Black.
    If BBB is running with Angstrom the Locals and Expressions window works fine.
    Debugger con Angstrom.JPG

    However, if BBB is running with Debian the Locals and Expressions window is blank. Although, I can Insert New Expression Evaluator and I can check the value of any variable, but the values are not refreshed the next time the program stops at the same breakpoint.
    Debugger con Debian.JPG

    Some information about compilers and debuggers:
    BBB with Angstrom:
    Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
    Debugger => GNU gdb (GDB) 7.2

    BBB with Debian:
    Compiler => arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 4.7.3 20130328
    Debugger => GNU gdb (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 7.5 2012.12

    What can I do to make the Locals and Expressions window update automatically with Debian?
    Thanks.

    jsulmJ aha_1980A 2 Replies Last reply
    0
    • M Offline
      M Offline
      maher_electronic
      wrote on last edited by
      #8

      Hi,

      I've already solved it.
      I have installed gdb-multiarch on my development host (Ubuntu):

      sudo apt-get install gdb-multiarch

      Then in the Debuggers tab of QtCreator I have added a new manual entry:
      Name: Multiarch GDB
      Path: /usr/bin/gdb-multiarch

      And in the target Kit tab of QtCreator I have selected Multiarch GDB as my Debugger.

      Thanks.

      1 Reply Last reply
      2
      • M maher_electronic

        Hi,

        I'm developing a GUI application with Qt on my target device which is a Beaglebone Black.
        If BBB is running with Angstrom the Locals and Expressions window works fine.
        Debugger con Angstrom.JPG

        However, if BBB is running with Debian the Locals and Expressions window is blank. Although, I can Insert New Expression Evaluator and I can check the value of any variable, but the values are not refreshed the next time the program stops at the same breakpoint.
        Debugger con Debian.JPG

        Some information about compilers and debuggers:
        BBB with Angstrom:
        Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
        Debugger => GNU gdb (GDB) 7.2

        BBB with Debian:
        Compiler => arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 4.7.3 20130328
        Debugger => GNU gdb (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 7.5 2012.12

        What can I do to make the Locals and Expressions window update automatically with Debian?
        Thanks.

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

        @maher_electronic Did you check the "Debugger Console"? Maybe there is something.

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

        1 Reply Last reply
        0
        • M maher_electronic

          Hi,

          I'm developing a GUI application with Qt on my target device which is a Beaglebone Black.
          If BBB is running with Angstrom the Locals and Expressions window works fine.
          Debugger con Angstrom.JPG

          However, if BBB is running with Debian the Locals and Expressions window is blank. Although, I can Insert New Expression Evaluator and I can check the value of any variable, but the values are not refreshed the next time the program stops at the same breakpoint.
          Debugger con Debian.JPG

          Some information about compilers and debuggers:
          BBB with Angstrom:
          Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
          Debugger => GNU gdb (GDB) 7.2

          BBB with Debian:
          Compiler => arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 4.7.3 20130328
          Debugger => GNU gdb (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 7.5 2012.12

          What can I do to make the Locals and Expressions window update automatically with Debian?
          Thanks.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #3

          Hi @maher_electronic,

          most likely your gdb is missing python support.

          Please check Window > Views > Debugger Log (that was what @jsulm meant...)

          Regards

          Qt has to stay free or it will die.

          M 1 Reply Last reply
          2
          • aha_1980A aha_1980

            Hi @maher_electronic,

            most likely your gdb is missing python support.

            Please check Window > Views > Debugger Log (that was what @jsulm meant...)

            Regards

            M Offline
            M Offline
            maher_electronic
            wrote on last edited by
            #4

            @aha_1980
            Hi,

            I have found this in Debugger Log:

            &"Python scripting is not supported in this copy of GDB.\n"
            12^error,msg="Python scripting is not supported in this copy of GDB."

            Thanks.

            JonBJ 1 Reply Last reply
            1
            • M maher_electronic

              @aha_1980
              Hi,

              I have found this in Debugger Log:

              &"Python scripting is not supported in this copy of GDB.\n"
              12^error,msg="Python scripting is not supported in this copy of GDB."

              Thanks.

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

              @maher_electronic
              Google for your error message
              Python scripting is not supported in this copy of GDB
              and follow any number of the hits from there, according to your environment.

              1 Reply Last reply
              1
              • M Offline
                M Offline
                maher_electronic
                wrote on last edited by
                #6

                Hi,

                I don't understand why the variables and their values are not shown automatically, but however I can check them if I insert them manually.

                I'm lost, can anyone help me?.

                Thanks.

                jsulmJ 1 Reply Last reply
                0
                • M maher_electronic

                  Hi,

                  I don't understand why the variables and their values are not shown automatically, but however I can check them if I insert them manually.

                  I'm lost, can anyone help me?.

                  Thanks.

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

                  @maher_electronic said in Locals and Expressions window is blank:

                  I don't understand why the variables and their values are not shown automatically

                  Because your GDB was compiled without Python support

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

                  1 Reply Last reply
                  2
                  • M Offline
                    M Offline
                    maher_electronic
                    wrote on last edited by
                    #8

                    Hi,

                    I've already solved it.
                    I have installed gdb-multiarch on my development host (Ubuntu):

                    sudo apt-get install gdb-multiarch

                    Then in the Debuggers tab of QtCreator I have added a new manual entry:
                    Name: Multiarch GDB
                    Path: /usr/bin/gdb-multiarch

                    And in the target Kit tab of QtCreator I have selected Multiarch GDB as my Debugger.

                    Thanks.

                    1 Reply Last reply
                    2

                    • Login

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