This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
Hi, TI and everyone,
I'm using AM5728 EVM, ti-processor-sdk-linux-am57xx-evm-04.03.00.05-Linux-x86-Install, and qt-opensource-linux-x64-5.7.0.run at Ubuntu 16.04 LTS virtual machine.
Debugging starts
Listening on port 10000
Debugging has failed
Debugging has finished
,and Debug Log display:
sStarting debugger "GdbEngine" for ABI "arm-linux-generic-elf-32bit"...
dStart parameters: 'test-qt-ui (on Remote Device)' mode: 6
dABI: arm-linux-generic-elf-32bit
dLanguages: c++
dExecutable: /home/root/test-qt-ui
dDebugger: /opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gdb
dProject: /home/aither/test-qt-uiAddtional Search Directories:
dRemote: 192.168.1.155:-1
dSysroot: /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
dDebug Source Location:
dDebugger settings:
dNoPluginBreakpoints: false (default: false)
dSelectedPluginBreakpointsPattern: .* (default: .*)
dQmlInspector.ShowAppOnTop: false (default: false)
dLogTimeStamps: false (default: false)
dAutoQuit: false (default: false)
dFontSizeFollowsEditor: false (default: false)
dUseMessageBoxForSignals: true (default: true)
dUseAlternatingRowColours: false (default: false)
dUseDebuggingHelper: true (default: true)
dUseCodeModel: true (default: true)
dRaiseOnInterrupt: true (default: true)
dStationaryEditorWhileStepping: false (default: false)
dSwitchModeOnExit: false (default: false)
dBreakpointsFullPath: false (default: false)
dCloseBuffersOnExit: false (default: false)
dCloseMemoryBuffersOnExit: true (default: true)
dUseAddressInStackView: false (default: false)
dUseToolTipsInBreakpointsView: false (default: true) ***
dUseAddressInBreakpointsView: false (default: false)
dUseToolTipsInLocalsView: false (default: false)
dUseToolTipsInBreakpointsView: false (default: false)
dShowThreadNames: false (default: false)
dUseToolTips: true (default: true)
dBreakEvent: (default: )
dBreakOnCrtDbgReport: false (default: false)
dSymbolPaths: (default: )
dSourcePaths: (default: )
dGdbCustomDumperCommands: (default: )
dAdditionalArguments: (default: )
dAlwaysAdjustColumnWidths: true (default: true)
dExtraDumperFile: (default: )
dGdbStartupCommands: set sysroot /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/
dset debug-file-directory /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/.debug/
d (default: ) ***
dGdbPostAttachCommands: (default: )
dLoadGdbDumpers2: false (default: false)
dAttemptQuickStart: false (default: false)
dIgnoreFirstChanceAccessViolation: false (default: false)
dLoadGdbInit: true (default: true)
dCDB_Console: false (default: false)
dBreakpointCorrection: true (default: true)
dIntelFlavor: false (default: false)
dIdentifyDebugInfoPackages: false (default: false)
dWarnOnReleaseBuilds: true (default: true)
dMultiInferior: false (default: false)
dUseDynamicType: true (default: true)
dTargetAsync: false (default: false)
dWatchdogTimeout: 20 (default: 20)
dAutoEnrichParameters: true (default: true)
dSortStructMembers: true (default: true)
dAutoDerefPointers: true (default: true)
dShowQtNamespace: true (default: true)
dShowQObjectNames: false (default: false)
dShowStandardNamespace: true (default: true)
dMaximalStackDepth: 20 (default: 20)
dSelectedPluginBreakpoints: false (default: false)
dAdjustBreakpointLocations: true (default: true)
dAllPluginBreakpoints: true (default: true)
dSkipKnownFrames: false (default: false)
dEnableReverseDebugging: false (default: false)
dMaximalStringLength: 10000 (default: 10000)
dDisplayStringLimit: 100 (default: 100)
dBreakOnAbort: false (default: false)
dShowQmlObjectTree: true (default: true)
dBreakOnWarning: false (default: false)
dBreakOnFatal: false (default: false)
dBreakOnThrow: false (default: false)
dBreakOnCatch: false (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
dEXAMINING /home/aither/build-test-qt-ui-tisdk-Debug/test-qt-ui
dELF SECTIONS: .interp .note.ABI-tag .note.gnu.build-id .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.extab .ARM.exidx .eh_frame .init_array .fini_array .jcr .data.rel.ro .dynamic .got .data .bss .comment .ARM.attributes .debug_aranges .debug_info .debug_abbrev .debug_line .debug_frame .debug_str .debug_loc .debug_ranges .shstrtab .symtab .strtab
dTRYING TO START ADAPTER
dNOTE: REQUEST REMOTE SETUP
Listening on port 10000
dNOTE: REMOTE SETUP DONE: GDB SERVER PORT: 10000 QML PORT -1
dENABLING TEST CASE: 0
dSTARTING /opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gdb -i mi
dGDB STARTED, INITIALIZING IT
<1show version
<2show debug-file-directory
<3set print object on
<4set breakpoint pending on
<5set print elements 10000
<6handle SIGSEGV nopass stop print
<7set unwindonsignal on
<8set width 0
<9set height 0
sSetting up inferior...
<10set sysroot /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
<11set substitute-path /usr/src /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/src
<12-interpreter-exec console "set auto-solib-add on"
<13python sys.path.insert(1, '/opt/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/')
<14python sys.path.append('/opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/data-directory/python')
<15python from gdbbridge import *
<16python theDumper.loadDumpers({"token":16})
>=thread-group-added,id="i1"
>~"GNU gdb (Linaro GDB) 7.8-2014.09\n"
>~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"--host=x86_64-arago-linux --target=arm-linux-gnueabi\".\nType \"show configuration\" for configuration details."
>~"\nFor bug reporting instructions, please see:\n"
>~"<http://bugs.linaro.org>.\n"
>~"Find the GDB manual and other documentation resources online at:\n<www.gnu.org/.../>.\n"
>~"For help, type \"help\".\n"
>~"Type \"apropos word\" to search for commands related to \"word\".\n"
>&"show version\n"
>~"GNU gdb (Linaro GDB) 7.8-2014.09\n"
>~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"--host=x86_64-arago-linux --target=arm-linux-gnueabi\".\nType \"show configuration\" for configuration details."
>~"\nFor bug reporting instructions, please see:\n"
>~"<http://bugs.linaro.org>.\n"
>~"Find the GDB manual and other documentation resources online at:\n<www.gnu.org/.../>.\n"
>~"For help, type \"help\".\n"
>~"Type \"apropos word\" to search for commands related to \"word\".\n"
>1^done
dPARSING VERSION: 1^done
dSUPPORTED GDB VERSION GNU gdb (Linaro GDB) 7.8-2014.09
dCopyright (C) 2014 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "--host=x86_64-arago-linux --target=arm-linux-gnueabi".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
d<http://bugs.linaro.org>.
dFind the GDB manual and other documentation resources online at:
d<www.gnu.org/.../>.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dGNU gdb (Linaro GDB) 7.8-2014.09
dCopyright (C) 2014 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "--host=x86_64-arago-linux --target=arm-linux-gnueabi".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
d<http://bugs.linaro.org>.
dFind the GDB manual and other documentation resources online at:
d<www.gnu.org/.../>.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dUSING GDB VERSION: 70800, BUILD: 2014
<17-interpreter-exec console "set target-async off"
<18-interpreter-exec console "set detach-on-fork off"
>&"show debug-file-directory\n"
>~"The directory where separate debug symbols are searched for is \"/tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy/sysroots/x86_64-arago-linux/usr/lib/arm-linux-gnueabi/debug\".\n"
>2^done
(I already set Projects -> Options -> Debugger -> GDB -> Additional Startup Commands:
set sysroot /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/
set debug-file-directory /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/.debug/)
>&"set print object on\n"
>=cmd-param-changed,param="print object",value="on"
>3^done
>&"set breakpoint pending on\n"
>=cmd-param-changed,param="breakpoint pending",value="on"
>4^done
>&"set print elements 10000\n"
>=cmd-param-changed,param="print elements",value="10000"
>5^done
>&"handle SIGSEGV nopass stop print\n"
>~"Signal Stop\tPrint\tPass to program\tDescription\n"
>~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
>6^done
>&"set unwindonsignal on\n"
>=cmd-param-changed,param="unwindonsignal",value="on"
>7^done
>&"set width 0\n"
>=cmd-param-changed,param="width",value="4294967295"
>8^done
>&"set height 0\n"
>9^done
>&"set sysroot /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi\n"
>=cmd-param-changed,param="sysroot",value="/opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi"
>10^done
>&"set substitute-path /usr/src /opt/am5728/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/src\n"
>11^done
>12^done
>&"python sys.path.insert(1, '/opt/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/')\n"
>13^done
>&"python sys.path.append('/opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/data-directory/python')\n"
>14^done
>&"python from gdbbridge import *\n"
>&"No symbol table is loaded. Use the \"file\" command.\n"
>15^done
>&"python theDumper.loadDumpers({\"token\":16})\n"
>&"Traceback (most recent call last):\n"
>&" File \"<string>\", line 1, in <module>\n"
>&" File \"/opt/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 1711, in loadDumpers\n"
>&" print(self.setupDumpers())\n"
>&" File \"/opt/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 1782, in setupDumpers\n"
>&" m = __import__(mod)\n"
>&" File \"/opt/Qt5.7.0/Tools/QtCreator/share/qtcreator/debugger/qttypes.py\", line 26, in <module>\n"
>&" import platform\n"
>&" File \"/opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/python3.5/platform.py\", line 117, in <module>\n"
>&" import sys, os, re, subprocess\n"
>&" File \"/opt/am5728/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/python3.5/subprocess.py\", line 437, in <module>\n"
>&" import _posixsubprocess\n"
>&"ImportError: No module named '_posixsubprocess'\n"
>&"Error while executing Python code.\n"
>16^error,msg="Error while executing Python code."
dNOTE: ENGINE SETUP FAILED
dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master]
dHANDLE RUNCONTROL FINISHED
sDebugger finished.
sUser requested stop. Shutting down...
dHANDLE RUNCONTROL START FAILED
dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master]
dQUIT DEBUGGER REQUESTED IN STATE 22
>17^done
dCOOKIE FOR TOKEN 17 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
>=cmd-param-changed,param="detach-on-fork",value="off"
>18^done
dCOOKIE FOR TOKEN 18 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
Please lead me to the success remote debugging.
Thanks,
Best Regards.
Aither