Locals and Expressions window is blank
-
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.
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.
Some information about compilers and debuggers:
BBB with Angstrom:
Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
Debugger => GNU gdb (GDB) 7.2BBB 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.12What can I do to make the Locals and Expressions window update automatically with Debian?
Thanks. -
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-multiarchAnd in the target Kit tab of QtCreator I have selected Multiarch GDB as my Debugger.
Thanks.
-
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.
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.
Some information about compilers and debuggers:
BBB with Angstrom:
Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
Debugger => GNU gdb (GDB) 7.2BBB 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.12What can I do to make the Locals and Expressions window update automatically with Debian?
Thanks.@maher_electronic Did you check the "Debugger Console"? Maybe there is something.
-
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.
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.
Some information about compilers and debuggers:
BBB with Angstrom:
Compiler => arm-angstrom-linux-gnueabin-g++ (GCC) 4.3.3
Debugger => GNU gdb (GDB) 7.2BBB 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.12What can I do to make the Locals and Expressions window update automatically with Debian?
Thanks.most likely your gdb is missing python support.
Please check Window > Views > Debugger Log (that was what @jsulm meant...)
Regards
-
most likely your gdb is missing python support.
Please check Window > Views > Debugger Log (that was what @jsulm meant...)
Regards
@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.
-
@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.
@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. -
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.
-
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.
@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
-
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-multiarchAnd in the target Kit tab of QtCreator I have selected Multiarch GDB as my Debugger.
Thanks.