Здравствуйте! Я столкнулся с проблемой при запуске отладчика в Qt Creator (Qt Creator 4.8.0-beta1 (4.7.82)). Проблема в следующем, создаю тестовый проект, все нормально собирается, рассылается и запускается на QNX машине. Однако при запуске gdb выводится ошибка "no symbol table is loaded use the file command".
На разных форумах пишут, что при сборке надо добавить ключ -g компилятору для включения отладочной информации. В настройках комплектов Qt в Creator я указал флаги, однако не помогло.
В чем может быть проблема?
Настройки среды в приложенных картинках, вот логи отладчика:
dStart parameters: 'qt-creator-qnx-test' mode: 6
dABI: x86-qnx-generic-elf-32bit
dLanguages: c++
dExecutable: \tmp\qt-creator-qnx-test\bin\qt-creator-qnx-test
dDebugger: C:\QNX650\host\win32\x86\usr\bin\ntox86-gdb.exe
dProject: C:\Users\shj\Documents\qt-creator-qnx-test
dAdditional Search Directories:
dRemote: 192.168.38.134:10007
dQML server: 192.168.38.134:10008
dSysroot:
dDebug Source Location:
dDebugger settings:
dAdditionalArguments: (default: )
dAdjustBreakpointLocations: true (default: true)
dAllPluginBreakpoints: true (default: true)
dAlwaysAdjustColumnWidths: true (default: true)
dAutoDerefPointers: true (default: true)
dAutoEnrichParameters: true (default: true)
dAutoQuit: false (default: false)
dBreakEvent: (default: )
dBreakOnAbort: false (default: false)
dBreakOnCatch: false (default: false)
dBreakOnCrtDbgReport: false (default: false)
dBreakOnFatal: false (default: false)
dBreakOnThrow: false (default: false)
dBreakOnWarning: false (default: false)
dBreakpointCorrection: true (default: true)
dBreakpointsFullPath: false (default: false)
dCDB_Console: false (default: false)
dCloseBuffersOnExit: false (default: false)
dCloseMemoryBuffersOnExit: true (default: true)
dDisplayStringLimit: 100 (default: 100)
dEnableReverseDebugging: false (default: false)
dExtraDumperFile: (default: )
dFirstChanceExceptionTaskEntry: true (default: true)
dFontSizeFollowsEditor: false (default: false)
dGdbCustomDumperCommands: (default: )
dGdbPostAttachCommands: (default: )
dGdbStartupCommands: (default: )
dIdentifyDebugInfoPackages: false (default: false)
dIgnoreFirstChanceAccessViolation: false (default: false)
dIntelFlavor: false (default: false)
dLoadGdbDumpers2: false (default: false)
dLoadGdbInit: true (default: true)
dLogTimeStamps: false (default: false)
dMaximalStackDepth: 20 (default: 20)
dMaximalStringLength: 10000 (default: 10000)
dMultiInferior: false (default: false)
dNoPluginBreakpoints: false (default: false)
dQmlInspector.ShowAppOnTop: false (default: false)
dRaiseOnInterrupt: true (default: true)
dRegisterForPostMortem: false (default: false)
dSecondChanceExceptionTaskEntry: true (default: true)
dSelectedPluginBreakpoints: false (default: false)
dSelectedPluginBreakpointsPattern: .* (default: .*)
dShowQObjectNames2: true (default: true)
dShowQmlObjectTree: true (default: true)
dShowQtNamespace: true (default: true)
dShowStandardNamespace: true (default: true)
dShowThreadNames: true (default: false) ***
dSkipKnownFrames: false (default: false)
dSortStructMembers: true (default: true)
dSourcePaths: (default: )
dStationaryEditorWhileStepping: false (default: false)
dSwitchModeOnExit: false (default: false)
dSymbolPaths: (default: )
dTargetAsync: false (default: false)
dUseAddressInBreakpointsView: false (default: false)
dUseAddressInStackView: false (default: false)
dUseAlternatingRowColours: false (default: false)
dUseCodeModel: true (default: true)
dUseDebuggingHelper: true (default: true)
dUseDynamicType: true (default: true)
dUseMessageBoxForSignals: true (default: true)
dUsePythonDumper: true (default: true)
dUseToolTips: true (default: true)
dUseToolTipsInBreakpointsView: true (default: false) ***
dUseToolTipsInLocalsView: false (default: false)
dUseToolTipsInStackView: true (default: true)
dWarnOnReleaseBuilds: true (default: true)
dWatchdogTimeout: 20 (default: 20)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1)
dCALL: SETUP ENGINE
dTRYING TO START ADAPTER
dENABLING TEST CASE: 0
dSTARTING C:/QNX650/host/win32/x86/usr/bin/ntox86-gdb.exe -i mi
dGDB STARTED, INITIALIZING IT
<99show version
<100show debug-file-directory
<101set print object on
<102set breakpoint pending on
<103set print elements 10000
<104set unwindonsignal on
<105set width 0
<106set height 0
Настройка подчинённого...
<107set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.5
<108python sys.path.insert(1, 'C:/Qt/qtcreator-4.8.0-beta1/share/qtcreator/debugger/')
<109python sys.path.append('C:/QNX650/host/win32/x86/usr/bin/data-directory/python')
<110python from gdbbridge import *
<111python theDumper.loadDumpers({"token":111})
>~"GNU gdb 6.8 qnx-nto (rev. 506)\n"
>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
>~"This is free software: you are free to change and redistribute it.\n"
>~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n"
>~"and \"show warranty\" for details.\n"
>~"This GDB was configured as \"--host=i386-mingw32msvc --target=i486-pc-nto-qnx6.5.0\".\n"
>&"show version\n"
>~"GNU gdb 6.8 qnx-nto (rev. 506)\n"
>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
>~"This is free software: you are free to change and redistribute it.\n"
>~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n"
>~"and \"show warranty\" for details.\n"
>~"This GDB was configured as \"--host=i386-mingw32msvc --target=i486-pc-nto-qnx6.5.0\".\n"
>99^done
dPARSING VERSION: 99^done
dUNSUPPORTED GDB VERSION GNU gdb 6.8 qnx-nto (rev. 506)
dCopyright (C) 2008 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/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=i386-mingw32msvc --target=i486-pc-nto-qnx6.5.0".
dGNU gdb 6.8 qnx-nto (rev. 506)
dCopyright (C) 2008 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/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=i386-mingw32msvc --target=i486-pc-nto-qnx6.5.0".
dUSING GDB VERSION: 60800, BUILD: 506
<112-interpreter-exec console "set target-async off"
>&"show debug-file-directory\n"
>~"The directory where separate debug symbols are searched for is \"c:\\c\\qnx650\\host\\win32\\x86\\usr\\lib\\debug\".\n"
>100^done
>&"set print object on\n"
>101^done
>&"set breakpoint pending on\n"
>102^done
>&"set print elements 10000\n"
>103^done
>&"set unwindonsignal on\n"
>104^done
>&"set width 0\n"
>105^done
>&"set height 0\n"
>106^done
>&"set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.5\n"
>107^done
>&"python sys.path.insert(1, 'C:/Qt/qtcreator-4.8.0-beta1/share/qtcreator/debugger/')\n"
>&"Undefined command: \"python\". Try \"help\".\n"
>108^error,msg="Undefined command: \"python\". Try \"help\"."
>&"python sys.path.append('C:/QNX650/host/win32/x86/usr/bin/data-directory/python')\n"
>&"Undefined command: \"python\". Try \"help\".\n"
>109^error,msg="Undefined command: \"python\". Try \"help\"."
>&"python from gdbbridge import *\n"
>&"Undefined command: \"python\". Try \"help\".\n"
>110^error,msg="Undefined command: \"python\". Try \"help\"."
>&"python theDumper.loadDumpers({\"token\":111})\n"
>&"Undefined command: \"python\". Try \"help\".\n"
>111^error,msg="Undefined command: \"python\". Try \"help\"."
dNOTE: ENGINE SETUP FAILED
dState changed from EngineSetupRequested(1) to EngineSetupFailed(2)
<Ошибка отладки
dState changed from EngineSetupFailed(2) to DebuggerFinished(17)
dQUIT DEBUGGER REQUESTED IN STATE 17
>&"No symbol table is loaded. Use the \"file\" command.\n"
>112^error,msg="No symbol table is loaded. Use the \"file\" command."
dCOOKIE FOR TOKEN 112 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
Программа завершилась с ошибкой: No symbol table is loaded. Use the "file" command.
d
dNON-CRITICAL TIMEOUT
dCOMMANDS STILL IN PROGRESS:
и второй:
99show version
100show debug-file-directory
101set print object on
102set breakpoint pending on
103set print elements 10000
104set unwindonsignal on
105set width 0
106set height 0
Настройка подчинённого...
107set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.5
108python sys.path.insert(1, 'C:/Qt/qtcreator-4.8.0-beta1/share/qtcreator/debugger/')
109python sys.path.append('C:/QNX650/host/win32/x86/usr/bin/data-directory/python')
110python from gdbbridge import *
111python theDumper.loadDumpers({"token":111})
112-interpreter-exec console "set target-async off"
Ошибка отладки
Программа завершилась с ошибкой: No symbol table is loaded. Use the "file" command.