Qt debugging on yocto I (running on sabrelite)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt debugging on yocto I (running on sabrelite)

2,323 Views
diegogonzalez
Contributor I

Hello everyone!


I'm writing here to expose a question about QT debugging on yocto using sabreliteimx6 .I can run perfectly my application on my board using yocto (dylan). However when I try to debug my application and add an expression evaluator

( I want to see a variable value) the compiler logs tells me :


<484bb options:fancy,autoderef,dyntype vars:watch.4 expanded:return,local,watch,inspect typeformats: formats: watchers:772377617463682e332323692377617463682e3223236a2377617463682e3323236a3d332377617463682e312323612377617463682e34

>&"bb options:fancy,autoderef,dyntype vars:watch.4 expanded:return,local,watch,inspect typeformats: formats: watchers:772377617463682e332323692377617463682e3223236a2377617463682e3323236a3d332377617463682e312323612377617463682e34\n"

>&"Undefined command: \"bb\". Try \"help\".\n"

>484^error,msg="Undefined command: \"bb\". Try \"help\"."

dDUMPER FAILED: 484^error,data={msg="Undefined command: \"bb\". Try \"help\"."}


As you can see the GDB don't recognize bb so if I type the command help


<485help

>&"help\n"

>~"List of classes of commands:\n\n"

>~"aliases -- Aliases of other commands\n"

>~"breakpoints -- Making program stop at certain points\n"

>~"data -- Examining data\n"

>~"files -- Specifying and examining files\n"

>~"internals -- Maintenance commands\n"

>~"obscure -- Obscure features\n"

>~"running -- Running the program\n"

>~"stack -- Examining the stack\n"

>~"status -- Status inquiries\n"

>~"support -- Support facilities\n"

>~"tracepoints -- Tracing of program execution without stopping the program\n"

>~"user-defined -- User-defined commands\n"

>~"\nType \"help\" followed by a class name for a list of commands in "

>~"that class.\nType \"help all\" for the list of all commands."

>~"\nType \"help\" followed by command name "

>~"for full documentation.\n"

>~"Type \"apropos word\" to search for commands related to \"word\".\n"

>~"Command name abbreviations are allowed if unambiguous.\n"

>485^done

I don't see bb command.

Any idea how to fix it? Does anyone else have the same problem?

Thank you!

Diego.

Labels (2)
0 Kudos
3 Replies

759 Views
controlhorus
Contributor III

Hello

Solved  adding the line:

TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess" 

in build/conf/local.conf from Yocto.

That adds the module subprocess to python used by QTcreator

Thanks

0 Kudos

759 Views
controlhorus
Contributor III

Hello

Found:we have two pythonlands 8:(

environment-setup-armv7a-vfp-neon-poky-linux-gnueab redirects PYTHONHOME to a not full-version python 2.7 compiled through meta-toolchain-qt

Next step: how to compile a complete python from meta-toolchain-qt?

Thanks

0 Kudos

759 Views
controlhorus
Contributor III

Hello

As I understand it, QT calls to * dumpers* to visualize the variables and expressions. At last in my installation they seems to be executed through Python. I suppose the undefined bb is part of the dumper commands.

I did not pay attention to previous messages on Debbuger log window. Going back, looking before the bb error, there are previous errors related to dumpers and python.

>&” File \”/opt/qt4/share/qtcreator/dumper/gbridge.py\”, line 9, in <module>\n”
>&” import subprocess\n”
>&“ImportError: No module named subprocess\n”
>&“Error while executing Python code.\n”

So, We went to pythonland. Here, that is Ubuntu 12.04. Python version 2.7.3

If I execute execfile(’/opt/qt4/share/qtcreator/dumper/gbridge.py’) inside python from a terminal window, it detects subprocess module without problem.

If I add a “print sys.version_info” as an additional start debugger command at QtCreator, it shows me: python 2.7.3

For that printing, I added a 'import sys' commando that worked. If I add a 'import subprocces'' ... it is not found 8:|

Why QTCreator python execute does not find subprocess module?

Where is it being disabled?

Thanks and best regards

0 Kudos