Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. FreeBSD: can't debug from Qt Creator
Forum Updated to NodeBB v4.3 + New Features

FreeBSD: can't debug from Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 2 Posters 1.8k 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.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by aha_1980
    #1

    can't debug a untouched newly created "Qt Widgets Application"

    error message

    02:30:28: Debugging starts
    &"warning: Could not trace the inferior process.\nError: "
    &"\n"
    &"warning: ptrace: Operation not permitted\n"
    02:30:29: Debugging has finished
    

    environment

    • gcc 8.2.0
    • gdb 8.2
    • QtCreator 4.8.0
    • Qt 5.1.2
    • FreeBSD 12.0 Release

    [Edit aha_1980: Improved topic title]

    aha_1980A 1 Reply Last reply
    0
    • jronaldJ jronald

      can't debug a untouched newly created "Qt Widgets Application"

      error message

      02:30:28: Debugging starts
      &"warning: Could not trace the inferior process.\nError: "
      &"\n"
      &"warning: ptrace: Operation not permitted\n"
      02:30:29: Debugging has finished
      

      environment

      • gcc 8.2.0
      • gdb 8.2
      • QtCreator 4.8.0
      • Qt 5.1.2
      • FreeBSD 12.0 Release

      [Edit aha_1980: Improved topic title]

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

      Hi @jronald,

      please past the contents of Windows > Views > Debugger Log. Thanks!

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • jronaldJ Offline
        jronaldJ Offline
        jronald
        wrote on last edited by
        #3
        wNote: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator's Debugger plugin, for instance in swap files, or other plugins you might use.
        wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
        w
        dEXAMINING /home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled
        dELF SECTIONS:  .interp .note.tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .qtversion .eh_frame_hdr .eh_frame .gcc_except_table .ctors .dtors .data.rel.ro .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_pubnames .debug_info .debug_abbrev .debug_line .debug_str .debug_loc .debug_macinfo .debug_pubtypes .debug_ranges .symtab .strtab .shstrtab 
        dStart parameters: 'untitled' mode: 1
        dABI: x86-bsd-freebsd-elf-64bit
        dLanguages: c++ 
        dExecutable: /home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled 
        dDirectory: /home/fb/dev/build-untitled-Desktop_GCC-Debug
        dDebugger: /usr/local/bin/gdb
        dProject: /home/fb/dev/untitled
        dAdditional Search Directories:
        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)
        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: false  (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: false  (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 /usr/local/bin/gdb --tty=/tmp/QtCreator-IhnXok/outputcollector.RxqUtK -i mi
        dGDB STARTED, INITIALIZING IT
        <1show version
        <2show debug-file-directory
        <3set print object on
        <4set breakpoint pending on
        <5set print elements 10000
        <6set unwindonsignal on
        <7set width 0
        <8set height 0
         Setting up inferior...
        <9set substitute-path /home/qt/work/qt /usr/local/include/../Src
        <10python sys.path.insert(1, '/usr/local/share/qtcreator/debugger/')
        <11python sys.path.append('/usr/local/bin/data-directory/python')
        <12python from gdbbridge import *
        <13python theDumper.loadDumpers({"token":13})
        
        >=thread-group-added,id="i1"
        >~"GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]\n"
        >~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
        >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
        >~"\nType \"show copying\" and \"show warranty\" for details.\n"
        >~"This GDB was configured as \"x86_64-portbld-freebsd12.0\".\n"
        >~"Type \"show configuration\" for configuration details.\n"
        >~"For bug reporting instructions, please see:\n"
        >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
        >~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
        >~"\n\n"
        >~"For help, type \"help\".\n"
        >~"Type \"apropos word\" to search for commands related to \"word\".\n"
        
        >&"show version\n"
        >~"GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]\n"
        >~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
        >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
        >~"\nType \"show copying\" and \"show warranty\" for details.\n"
        >~"This GDB was configured as \"x86_64-portbld-freebsd12.0\".\n"
        >~"Type \"show configuration\" for configuration details.\n"
        >~"For bug reporting instructions, please see:\n"
        >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
        >~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
        >~"\n\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 (GDB) 8.2 [GDB v8.2 for FreeBSD]
        dCopyright (C) 2018 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.
        dType "show copying" and "show warranty" for details.
        dThis GDB was configured as "x86_64-portbld-freebsd12.0".
        dType "show configuration" for configuration details.
        dFor bug reporting instructions, please see:
        d<http://www.gnu.org/software/gdb/bugs/>.
        dFind the GDB manual and other documentation resources online at:
        d    <http://www.gnu.org/software/gdb/documentation/>.
        d
        dFor help, type "help".
        dType "apropos word" to search for commands related to "word".
        dGNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
        dCopyright (C) 2018 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.
        dType "show copying" and "show warranty" for details.
        dThis GDB was configured as "x86_64-portbld-freebsd12.0".
        dType "show configuration" for configuration details.
        dFor bug reporting instructions, please see:
        d<http://www.gnu.org/software/gdb/bugs/>.
        dFind the GDB manual and other documentation resources online at:
        d    <http://www.gnu.org/software/gdb/documentation/>.
        d
        dFor help, type "help".
        dType "apropos word" to search for commands related to "word".
        dUSING GDB VERSION: 80200, BUILD: 8
        <14-interpreter-exec console "set target-async off"
        
        >&"show debug-file-directory\n"
        >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n"
        >2^done
        
        >&"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
        
        >&"set unwindonsignal on\n"
        >=cmd-param-changed,param="unwindonsignal",value="on"
        >6^done
        
        >&"set width 0\n"
        >=cmd-param-changed,param="width",value="4294967295"
        >7^done
        
        >&"set height 0\n"
        >8^done
        
        >&"set substitute-path /home/qt/work/qt /usr/local/include/../Src\n"
        >9^done
        
        >&"python sys.path.insert(1, '/usr/local/share/qtcreator/debugger/')\n"
        >10^done
        
        >&"python sys.path.append('/usr/local/bin/data-directory/python')\n"
        >11^done
        
        >&"python from gdbbridge import *\n"
        >12^done
        
        >&"python theDumper.loadDumpers({\"token\":13})\n"
        >~"result={token=\"13\",dumpers=[{type=\"std____debug__unordered_set\"},{type=\"boost__variant\"},{type=\"QV4__InternalClass__Transition\"},{type=\"CPlusPlus__Identifier\"},{type=\"QtcDumperTest_PointerArray\"},{type=\"std__list\"},{type=\"QmakeProjectManager__QmakeProFileNode\"},{type=\"QtcDumperTest_FieldAccessByIndex\"},{type=\"std__multimap\",formats=\"17\"},{type=\"QUuid\"},{type=\"boost__optional\"},{type=\"QDir\"},{type=\"TNimNode\"},{type=\"QSharedData\"},{type=\"Debugger__Internal__GdbMi\"},{type=\"QV4__PropertyHash\"},{type=\"std__complex\"},{type=\"__m256\"},{type=\"boost__container__list\"},{type=\"CPlusPlus__Symbol\"},{type=\"std____debug__unordered_multimap\",formats=\"17\"},{type=\"std____1__complex\"},{type=\"std__deque\"},{type=\"std___Rb_tree_const_iterator\"},{type=\"QFixed\"},{type=\"uint8_t\"},{type=\"std____1__set__iterator\"},{type=\"std____debug__stack\"},{type=\"CPlusPlus__StringLiteral\"},{type=\"ProjectExplorer__Kit\"},{type=\"QPoint\"},{type=\"std____1__vector\",formats=\"16\"},{type=\"QMultiMap\",formats=\"17\"},{type=\"PyTypeObject\"},{type=\"std__byte\"},{type=\"QLocale\"},{type=\"QV4__CallContext\"},{type=\"QJsonPrivate__q_littleendian\"},{type=\"string\",editable=\"true\"},{type=\"std__set\"},{type=\"std___Tree_const_iterator\"},{type=\"__gnu_cxx__hash_set\"},{type=\"QFile\"},{type=\"wstring\",editable=\"true\"},{type=\"QByteArrayData\"},{type=\"CPlusPlus__Literal\"},{type=\"QSizeF\"},{type=\"CPlusPlus__Class\"},{type=\"NimStringDesc\"},{type=\"std__unordered_multimap\",formats=\"17\"},{type=\"QIPv6Address\"},{type=\"QV4__Heap__String\"},{type=\"Utils__ElfSection\"},{type=\"QGraphicsPolygonItem\"},{type=\"Debugger__Internal__DisassemblerLine\"},{type=\"QTypedArrayData\"},{type=\"QPointer\"},{type=\"QMap\",formats=\"17\"},{type=\"std____cxx11__string\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"std____1__stack\"},{type=\"QArrayData\"},{type=\"QV4__ScopedString\"},{type=\"QChar\"},{type=\"boost__posix_time__time_duration\"},{type=\"std__once_flag\"},{type=\"CPlusPlus__TemplateNameId\"},{type=\"QQmlRefCount\"},{type=\"std____debug__set\"},{type=\"QMetaObject\"},{type=\"QHostAddress\"},{type=\"QV4__Value\"},{type=\"QVariantList\"},{type=\"std__unordered_multiset\"},{type=\"QObjectPrivate__ConnectionList\"},{type=\"QJsonValue\"},{type=\"std____1__shared_ptr\"},{type=\"QV4__SimpleScriptFunction\"},{type=\"CPlusPlus__Internal__Value\"},{type=\"QFileInfo\"},{type=\"QHash__const_iterator\"},{type=\"qfloat16\"},{type=\"ProjectExplorer__FolderNode\"},{type=\"QTime\"},{type=\"QSqlField\"},{type=\"std___Tree_iterator\"},{type=\"QXmlStreamStringRef\"},{type=\"CPlusPlus__PointerType\"},{type=\"std____1__weak_ptr\"},{type=\"std____debug__unordered_multiset\"},{type=\"QTimeZone\"},{type=\"gsl__span\"},{type=\"boost__bimaps__bimap\"},{type=\"cv__Size_\"},{type=\"std____cxx1998__map\"},{type=\"std____1__map__const_iterator\"},{type=\"QV4__Heap__Base\"},{type=\"QHash\",formats=\"17\"},{type=\"QXmlAttributes\"},{type=\"QHash__iterator\"},{type=\"KDSoapValue1\"},{type=\"QMetaEnum\"},{type=\"QLinkedList\"},{type=\"Utils__FileName\"},{type=\"QVariantHash\"},{type=\"QStack\",formats=\"16\"},{type=\"QBitArray\"},{type=\"std__list__QNX\"},{type=\"Debugger__Internal__BreakpointModelId\"},{type=\"boost__unordered__unordered_set\"},{type=\"Qt__ItemDataRole\"},{type=\"QLazilyAllocated\"},{type=\"std____1__basic_string\"},{type=\"std____cxx11__basic_string\"},{type=\"std__set__const_iterator\"},{type=\"QQmlBinding\"},{type=\"std____1__unique_ptr\"},{type=\"std__map__iterator\"},{type=\"QDate\"},{type=\"std____1__set_const_iterator\"},{type=\"std__stack\"},{type=\"std____weak_ptr\"},{type=\"std__multiset\"},{type=\"std__unordered_map\",formats=\"17\"},{type=\"QJsonPrivate__qle_bitfield\"},{type=\"QV4__Identifier\"},{type=\"__m128\"},{type=\"__m128d\"},{type=\"QTextCodec\"},{type=\"std__shared_ptr\"},{type=\"std____1__wstring\"},{type=\"std__unordered_set\"},{type=\"QEvent\"},{type=\"std__string\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"QByteArray\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"QtcDumperTest_List__NodeX\"},{type=\"Utf8String\"},{type=\"__m512d\"},{type=\"std____cxx1998__set\"},{type=\"QPixmap\"},{type=\"ProjectExplorer__Node\"},{type=\"std____1__multimap\",formats=\"17\"},{type=\"QMetaClassInfo\"},{type=\"std__map\",formats=\"17\"},{type=\"boost__posix_time__ptime\"},{type=\"QPointF\"},{type=\"std____cxx11__wstring\",editable=\"true\",formats=\"2, 4\"},{type=\"Eigen__Matrix\"},{type=\"QImage\",formats=\"2, 4\"},{type=\"QSet\"},{type=\"std__valarray\",formats=\"16\"},{type=\"std__map__const_iterator\"},{type=\"QJsonArray\"},{type=\"CPlusPlus__QualifiedNameId\"},{type=\"std____1__deque\"},{type=\"QFiniteStack\",formats=\"16\"},{type=\"std__set__iterator\"},{type=\"QTextDocument\"},{type=\"QTJSC__JSValue\"},{type=\"QSqlResultPrivate\"},{type=\"NimGenericSequence__\"},{type=\"QRegion\"},{type=\"std__wstring\",editable=\"true\",formats=\"2, 4\"},{type=\"QV4_Object\"},{type=\"QBasicAtomicInt\"},{type=\"QScriptValue\"},{type=\"QMetaProperty\"},{type=\"QDateTime\"},{type=\"std____1__unordered_set\"},{type=\"std____1__map__iterator\"},{type=\"boost__gregorian__date\"},{type=\"CPlusPlus__Token\"},{type=\"std__pair\"},{type=\"std__set__QNX\"},{type=\"std____1__list\"},{type=\"std__deque__MSVC\"},{type=\"CPlusPlus__ByteArrayRef\"},{type=\"QProcEnvKey\"},{type=\"boost__shared_ptr\"},{type=\"QV__PropertyHash\"},{type=\"Core__Id\"},{type=\"std__basic_string\"},{type=\"std____debug__vector\",formats=\"16\"},{type=\"QRectF\"},{type=\"QAtomicInt\"},{type=\"__m256i\"},{type=\"QQmlSourceLocation\"},{type=\"QKeyEvent\"},{type=\"Debugger__Internal__WatchData\"},{type=\"__m256d\"},{type=\"KDSoapValue\"},{type=\"std____1__set\"},{type=\"PyVarObject\"},{type=\"gsl__byte\"},{type=\"QPolygonF\"},{type=\"QXmlStreamAttribute\"},{type=\"int8_t\"},{type=\"QStandardItemData\"},{type=\"QV4__SharedInternalClassData\"},{type=\"QQmlAccessorProperties__Properties\"},{type=\"QHashedString\"},{type=\"QtcDumperTest_String\"},{type=\"QV4__ExecutionContext\"},{type=\"ProKey\"},{type=\"WTF__String\"},{type=\"std__vector\",editable=\"true\",formats=\"16\"},{type=\"QV4__FunctionObject\"},{type=\"PyObject\"},{type=\"std____1__multiset\"},{type=\"std____1__unordered_map\",formats=\"17\"},{type=\"QV4__IdentifierTable\"},{type=\"__m512i\"},{type=\"QV4__InternalClassTransition\"},{type=\"__m128i\"},{type=\"QVariantMap\",formats=\"17\"},{type=\"QStringRef\"},{type=\"std____debug__map\"},{type=\"std____debug__list\"},{type=\"QStaticStringData\"},{type=\"QVariant (QVariantMap)\",formats=\"17\"},{type=\"QSize\"},{type=\"Debugger__Internal__WatchItem\"},{type=\"QPolygon\"},{type=\"std____1__string\"},{type=\"QSharedDataPointer\"},{type=\"QV__PropertyHashData\"},{type=\"QStringList\"},{type=\"std___Rb_tree_iterator\"},{type=\"QString\",editable=\"true\",formats=\"2, 4\"},{type=\"std__optional\"},{type=\"std__deque__QNX\"},{type=\"QRegExp\"},{type=\"QStringData\"},{type=\"QFlags\"},{type=\"QTextCursor\"},{type=\"std____debug__unordered_map\",formats=\"17\"},{type=\"QList\",formats=\"18, 19\"},{type=\"QJsonPrivate__qle_signedbitfield\"},{type=\"QSharedPointer\"},{type=\"QUrl\",formats=\"2, 4\"},{type=\"QmakeProjectManager__QmakePriFileNode\"},{type=\"cv__Mat\",formats=\"4\"},{type=\"QVarLengthArray\"},{type=\"QV4__Object\"},{type=\"std____debug__deque\"},{type=\"std__unique_ptr\"},{type=\"QScopedPointer\"},{type=\"__m512\"},{type=\"std____1__map\",formats=\"17\"},{type=\"QStandardItem\"},{type=\"QtcDumperTest_BufArray\"},{type=\"QMapNode\"},{type=\"Core__GeneratedFile\"},{type=\"QObjectConnectionList\"},{type=\"std____1__array\",formats=\"16\"},{type=\"std____1__valarray\",formats=\"16\"},{type=\"QVariant\"},{type=\"QV4__String\"},{type=\"QVector\",editable=\"true\",formats=\"16\"},{type=\"ProjectExplorer__ProjectNode\"},{type=\"CPlusPlus__Internal__PPToken\"},{type=\"Debugger__Internal__ThreadId\"},{type=\"std____1__once_flag\"},{type=\"QHashNode\",formats=\"17\"},{type=\"QV4__Scoped\"},{type=\"ProString\"},{type=\"_typeobject\"},{type=\"Utils__Port\"},{type=\"QV4__CompilationUnit\"},{type=\"ProjectExplorer__ToolChain\"},{type=\"std__experimental__optional\"},{type=\"QTemporaryFile\"},{type=\"QXmlAttributes__Attribute\"},{type=\"std__function\"},{type=\"QJsonObject\"},{type=\"QRect\"},{type=\"CPlusPlus__IntegerType\"},{type=\"std__array\",formats=\"16\"},{type=\"CMakeProjectManager__Internal__CMakeProjectNode\"},{type=\"QJSValue\"},{type=\"std____cxx11__list\"},{type=\"CPlusPlus__FullySpecifiedType\"},{type=\"__gnu_debug___Safe_iterator\"},{type=\"QV4__ScriptFunction\"},{type=\"QtcDumperTest_List\"},{type=\"QWeakPointer\"},{type=\"std__weak_ptr\"},{type=\"QMetaMethod\"},{type=\"QAtomicPointer\"},{type=\"CPlusPlus__NamedType\"},],python=\"20715\"}\n"
        >13^done
        dENGINE SUCCESSFULLY STARTED
         Setting breakpoints...
        dSetting breakpoints...
        dTAKING OWNERSHIP OF BREAKPOINT 1
        <15-gdb-set environment LD_LIBRARY_PATH=/usr/local/lib/qt5:/usr/local/lib:/usr/local/lib/qt5
        <16-gdb-set environment PATH=/usr/local/lib/qt5/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
        <17-gdb-set environment QTDIR=/usr/local/lib/qt5
        <18cd /home/fb/dev/build-untitled-Desktop_GCC-Debug
        <19-file-exec-and-symbols "/home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled"
        
        >14^done
        
        dRUNNING NEEDS-STOP COMMAND -break-insert  -f "\"main.cpp\":8"
        dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
        <20-break-insert  -f "\"main.cpp\":8"
        >15^done
        
        >16^done
        
        >17^done
        
        >&"cd /home/fb/dev/build-untitled-Desktop_GCC-Debug\n"
        >~"Working directory /home/fb/dev/build-untitled-Desktop_GCC-Debug\n (canonically /usr/home/fb/dev/build-untitled-Desktop_GCC-Debug).\n"
        >18^done
        
        >19^done
        
        >20^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000402ba0",func="main(int, char**)",file="../untitled/main.cpp",fullname="/usr/home/fb/dev/untitled/main.cpp",line="8",thread-groups=["i1"],times="0",original-location="main.cpp:8"}
        dALL COMMANDS DONE; INVOKING CALLBACK
        dNOTE: ENGINE SETUP OK
        dState changed from EngineSetupRequested(1) to EngineSetupOk(3)
        dState changed from EngineSetupOk(3) to EngineRunRequested(4)
        dCALL: RUN ENGINE
        <21-exec-run
        
         &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"
         &"warning: Could not trace the inferior process.\nError: "
         &"\n"
         &"warning: ptrace: Operation not permitted\n"
        >=thread-group-started,id="i1",pid="49187"
         Thread group i1 created.
        dTaking notice of pid 49187
        >=thread-created,id="1",group-id="i1"
         Thread 1 created.
        >=thread-exited,id="1",group-id="i1"
         Thread 1 in group i1 exited.
        >=thread-group-exited,id="i1"
         Thread group i1 exited.
        dNOTE: INFERIOR EXITED
        dState changed from EngineRunRequested(4) to InferiorShutdownFinished(14)
        dState changed from InferiorShutdownFinished(14) to EngineShutdownRequested(15)
        dCALL: SHUTDOWN ENGINE
        dPLAIN ADAPTER SHUTDOWN 15
        dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
        <22python theDumper.exitGdb({"token":22})
        >21^error,msg="During startup program exited with code 127."
        eERROR: UNEXPECTED STATE: EngineShutdownRequested  WANTED: EngineRunRequested IN gdb/gdbengine.cpp:4441
        dDuring startup program exited with code 127.
        dNOTE: ENGINE RUN FAILED
         Run failed.
        dState changed from EngineShutdownRequested(15) to EngineRunFailed(5)
        dState changed from EngineRunFailed(5) to EngineShutdownRequested(15)
        dCALL: SHUTDOWN ENGINE
        dPLAIN ADAPTER SHUTDOWN 15
        dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
        <23python theDumper.exitGdb({"token":23})
        
        >&"python theDumper.exitGdb({\"token\":22})\n"
        dQUIT DEBUGGER REQUESTED IN STATE 15
        dHANDLE GDB ERROR: An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
        dError writing to process
        dGDB PROCESS FINISHED, status 0, exit code 0
        dNOTE: ENGINE SHUTDOWN FINISHED
        dState changed from EngineShutdownRequested(15) to EngineShutdownFinished(16)
         Debugger finished.
        dState changed from EngineShutdownFinished(16) to DebuggerFinished(17)
        
        aha_1980A 1 Reply Last reply
        0
        • jronaldJ jronald
          wNote: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator's Debugger plugin, for instance in swap files, or other plugins you might use.
          wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
          w
          dEXAMINING /home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled
          dELF SECTIONS:  .interp .note.tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .qtversion .eh_frame_hdr .eh_frame .gcc_except_table .ctors .dtors .data.rel.ro .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_pubnames .debug_info .debug_abbrev .debug_line .debug_str .debug_loc .debug_macinfo .debug_pubtypes .debug_ranges .symtab .strtab .shstrtab 
          dStart parameters: 'untitled' mode: 1
          dABI: x86-bsd-freebsd-elf-64bit
          dLanguages: c++ 
          dExecutable: /home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled 
          dDirectory: /home/fb/dev/build-untitled-Desktop_GCC-Debug
          dDebugger: /usr/local/bin/gdb
          dProject: /home/fb/dev/untitled
          dAdditional Search Directories:
          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)
          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: false  (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: false  (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 /usr/local/bin/gdb --tty=/tmp/QtCreator-IhnXok/outputcollector.RxqUtK -i mi
          dGDB STARTED, INITIALIZING IT
          <1show version
          <2show debug-file-directory
          <3set print object on
          <4set breakpoint pending on
          <5set print elements 10000
          <6set unwindonsignal on
          <7set width 0
          <8set height 0
           Setting up inferior...
          <9set substitute-path /home/qt/work/qt /usr/local/include/../Src
          <10python sys.path.insert(1, '/usr/local/share/qtcreator/debugger/')
          <11python sys.path.append('/usr/local/bin/data-directory/python')
          <12python from gdbbridge import *
          <13python theDumper.loadDumpers({"token":13})
          
          >=thread-group-added,id="i1"
          >~"GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]\n"
          >~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
          >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
          >~"\nType \"show copying\" and \"show warranty\" for details.\n"
          >~"This GDB was configured as \"x86_64-portbld-freebsd12.0\".\n"
          >~"Type \"show configuration\" for configuration details.\n"
          >~"For bug reporting instructions, please see:\n"
          >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
          >~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
          >~"\n\n"
          >~"For help, type \"help\".\n"
          >~"Type \"apropos word\" to search for commands related to \"word\".\n"
          
          >&"show version\n"
          >~"GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]\n"
          >~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
          >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
          >~"\nType \"show copying\" and \"show warranty\" for details.\n"
          >~"This GDB was configured as \"x86_64-portbld-freebsd12.0\".\n"
          >~"Type \"show configuration\" for configuration details.\n"
          >~"For bug reporting instructions, please see:\n"
          >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
          >~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
          >~"\n\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 (GDB) 8.2 [GDB v8.2 for FreeBSD]
          dCopyright (C) 2018 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.
          dType "show copying" and "show warranty" for details.
          dThis GDB was configured as "x86_64-portbld-freebsd12.0".
          dType "show configuration" for configuration details.
          dFor bug reporting instructions, please see:
          d<http://www.gnu.org/software/gdb/bugs/>.
          dFind the GDB manual and other documentation resources online at:
          d    <http://www.gnu.org/software/gdb/documentation/>.
          d
          dFor help, type "help".
          dType "apropos word" to search for commands related to "word".
          dGNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
          dCopyright (C) 2018 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.
          dType "show copying" and "show warranty" for details.
          dThis GDB was configured as "x86_64-portbld-freebsd12.0".
          dType "show configuration" for configuration details.
          dFor bug reporting instructions, please see:
          d<http://www.gnu.org/software/gdb/bugs/>.
          dFind the GDB manual and other documentation resources online at:
          d    <http://www.gnu.org/software/gdb/documentation/>.
          d
          dFor help, type "help".
          dType "apropos word" to search for commands related to "word".
          dUSING GDB VERSION: 80200, BUILD: 8
          <14-interpreter-exec console "set target-async off"
          
          >&"show debug-file-directory\n"
          >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n"
          >2^done
          
          >&"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
          
          >&"set unwindonsignal on\n"
          >=cmd-param-changed,param="unwindonsignal",value="on"
          >6^done
          
          >&"set width 0\n"
          >=cmd-param-changed,param="width",value="4294967295"
          >7^done
          
          >&"set height 0\n"
          >8^done
          
          >&"set substitute-path /home/qt/work/qt /usr/local/include/../Src\n"
          >9^done
          
          >&"python sys.path.insert(1, '/usr/local/share/qtcreator/debugger/')\n"
          >10^done
          
          >&"python sys.path.append('/usr/local/bin/data-directory/python')\n"
          >11^done
          
          >&"python from gdbbridge import *\n"
          >12^done
          
          >&"python theDumper.loadDumpers({\"token\":13})\n"
          >~"result={token=\"13\",dumpers=[{type=\"std____debug__unordered_set\"},{type=\"boost__variant\"},{type=\"QV4__InternalClass__Transition\"},{type=\"CPlusPlus__Identifier\"},{type=\"QtcDumperTest_PointerArray\"},{type=\"std__list\"},{type=\"QmakeProjectManager__QmakeProFileNode\"},{type=\"QtcDumperTest_FieldAccessByIndex\"},{type=\"std__multimap\",formats=\"17\"},{type=\"QUuid\"},{type=\"boost__optional\"},{type=\"QDir\"},{type=\"TNimNode\"},{type=\"QSharedData\"},{type=\"Debugger__Internal__GdbMi\"},{type=\"QV4__PropertyHash\"},{type=\"std__complex\"},{type=\"__m256\"},{type=\"boost__container__list\"},{type=\"CPlusPlus__Symbol\"},{type=\"std____debug__unordered_multimap\",formats=\"17\"},{type=\"std____1__complex\"},{type=\"std__deque\"},{type=\"std___Rb_tree_const_iterator\"},{type=\"QFixed\"},{type=\"uint8_t\"},{type=\"std____1__set__iterator\"},{type=\"std____debug__stack\"},{type=\"CPlusPlus__StringLiteral\"},{type=\"ProjectExplorer__Kit\"},{type=\"QPoint\"},{type=\"std____1__vector\",formats=\"16\"},{type=\"QMultiMap\",formats=\"17\"},{type=\"PyTypeObject\"},{type=\"std__byte\"},{type=\"QLocale\"},{type=\"QV4__CallContext\"},{type=\"QJsonPrivate__q_littleendian\"},{type=\"string\",editable=\"true\"},{type=\"std__set\"},{type=\"std___Tree_const_iterator\"},{type=\"__gnu_cxx__hash_set\"},{type=\"QFile\"},{type=\"wstring\",editable=\"true\"},{type=\"QByteArrayData\"},{type=\"CPlusPlus__Literal\"},{type=\"QSizeF\"},{type=\"CPlusPlus__Class\"},{type=\"NimStringDesc\"},{type=\"std__unordered_multimap\",formats=\"17\"},{type=\"QIPv6Address\"},{type=\"QV4__Heap__String\"},{type=\"Utils__ElfSection\"},{type=\"QGraphicsPolygonItem\"},{type=\"Debugger__Internal__DisassemblerLine\"},{type=\"QTypedArrayData\"},{type=\"QPointer\"},{type=\"QMap\",formats=\"17\"},{type=\"std____cxx11__string\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"std____1__stack\"},{type=\"QArrayData\"},{type=\"QV4__ScopedString\"},{type=\"QChar\"},{type=\"boost__posix_time__time_duration\"},{type=\"std__once_flag\"},{type=\"CPlusPlus__TemplateNameId\"},{type=\"QQmlRefCount\"},{type=\"std____debug__set\"},{type=\"QMetaObject\"},{type=\"QHostAddress\"},{type=\"QV4__Value\"},{type=\"QVariantList\"},{type=\"std__unordered_multiset\"},{type=\"QObjectPrivate__ConnectionList\"},{type=\"QJsonValue\"},{type=\"std____1__shared_ptr\"},{type=\"QV4__SimpleScriptFunction\"},{type=\"CPlusPlus__Internal__Value\"},{type=\"QFileInfo\"},{type=\"QHash__const_iterator\"},{type=\"qfloat16\"},{type=\"ProjectExplorer__FolderNode\"},{type=\"QTime\"},{type=\"QSqlField\"},{type=\"std___Tree_iterator\"},{type=\"QXmlStreamStringRef\"},{type=\"CPlusPlus__PointerType\"},{type=\"std____1__weak_ptr\"},{type=\"std____debug__unordered_multiset\"},{type=\"QTimeZone\"},{type=\"gsl__span\"},{type=\"boost__bimaps__bimap\"},{type=\"cv__Size_\"},{type=\"std____cxx1998__map\"},{type=\"std____1__map__const_iterator\"},{type=\"QV4__Heap__Base\"},{type=\"QHash\",formats=\"17\"},{type=\"QXmlAttributes\"},{type=\"QHash__iterator\"},{type=\"KDSoapValue1\"},{type=\"QMetaEnum\"},{type=\"QLinkedList\"},{type=\"Utils__FileName\"},{type=\"QVariantHash\"},{type=\"QStack\",formats=\"16\"},{type=\"QBitArray\"},{type=\"std__list__QNX\"},{type=\"Debugger__Internal__BreakpointModelId\"},{type=\"boost__unordered__unordered_set\"},{type=\"Qt__ItemDataRole\"},{type=\"QLazilyAllocated\"},{type=\"std____1__basic_string\"},{type=\"std____cxx11__basic_string\"},{type=\"std__set__const_iterator\"},{type=\"QQmlBinding\"},{type=\"std____1__unique_ptr\"},{type=\"std__map__iterator\"},{type=\"QDate\"},{type=\"std____1__set_const_iterator\"},{type=\"std__stack\"},{type=\"std____weak_ptr\"},{type=\"std__multiset\"},{type=\"std__unordered_map\",formats=\"17\"},{type=\"QJsonPrivate__qle_bitfield\"},{type=\"QV4__Identifier\"},{type=\"__m128\"},{type=\"__m128d\"},{type=\"QTextCodec\"},{type=\"std__shared_ptr\"},{type=\"std____1__wstring\"},{type=\"std__unordered_set\"},{type=\"QEvent\"},{type=\"std__string\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"QByteArray\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"QtcDumperTest_List__NodeX\"},{type=\"Utf8String\"},{type=\"__m512d\"},{type=\"std____cxx1998__set\"},{type=\"QPixmap\"},{type=\"ProjectExplorer__Node\"},{type=\"std____1__multimap\",formats=\"17\"},{type=\"QMetaClassInfo\"},{type=\"std__map\",formats=\"17\"},{type=\"boost__posix_time__ptime\"},{type=\"QPointF\"},{type=\"std____cxx11__wstring\",editable=\"true\",formats=\"2, 4\"},{type=\"Eigen__Matrix\"},{type=\"QImage\",formats=\"2, 4\"},{type=\"QSet\"},{type=\"std__valarray\",formats=\"16\"},{type=\"std__map__const_iterator\"},{type=\"QJsonArray\"},{type=\"CPlusPlus__QualifiedNameId\"},{type=\"std____1__deque\"},{type=\"QFiniteStack\",formats=\"16\"},{type=\"std__set__iterator\"},{type=\"QTextDocument\"},{type=\"QTJSC__JSValue\"},{type=\"QSqlResultPrivate\"},{type=\"NimGenericSequence__\"},{type=\"QRegion\"},{type=\"std__wstring\",editable=\"true\",formats=\"2, 4\"},{type=\"QV4_Object\"},{type=\"QBasicAtomicInt\"},{type=\"QScriptValue\"},{type=\"QMetaProperty\"},{type=\"QDateTime\"},{type=\"std____1__unordered_set\"},{type=\"std____1__map__iterator\"},{type=\"boost__gregorian__date\"},{type=\"CPlusPlus__Token\"},{type=\"std__pair\"},{type=\"std__set__QNX\"},{type=\"std____1__list\"},{type=\"std__deque__MSVC\"},{type=\"CPlusPlus__ByteArrayRef\"},{type=\"QProcEnvKey\"},{type=\"boost__shared_ptr\"},{type=\"QV__PropertyHash\"},{type=\"Core__Id\"},{type=\"std__basic_string\"},{type=\"std____debug__vector\",formats=\"16\"},{type=\"QRectF\"},{type=\"QAtomicInt\"},{type=\"__m256i\"},{type=\"QQmlSourceLocation\"},{type=\"QKeyEvent\"},{type=\"Debugger__Internal__WatchData\"},{type=\"__m256d\"},{type=\"KDSoapValue\"},{type=\"std____1__set\"},{type=\"PyVarObject\"},{type=\"gsl__byte\"},{type=\"QPolygonF\"},{type=\"QXmlStreamAttribute\"},{type=\"int8_t\"},{type=\"QStandardItemData\"},{type=\"QV4__SharedInternalClassData\"},{type=\"QQmlAccessorProperties__Properties\"},{type=\"QHashedString\"},{type=\"QtcDumperTest_String\"},{type=\"QV4__ExecutionContext\"},{type=\"ProKey\"},{type=\"WTF__String\"},{type=\"std__vector\",editable=\"true\",formats=\"16\"},{type=\"QV4__FunctionObject\"},{type=\"PyObject\"},{type=\"std____1__multiset\"},{type=\"std____1__unordered_map\",formats=\"17\"},{type=\"QV4__IdentifierTable\"},{type=\"__m512i\"},{type=\"QV4__InternalClassTransition\"},{type=\"__m128i\"},{type=\"QVariantMap\",formats=\"17\"},{type=\"QStringRef\"},{type=\"std____debug__map\"},{type=\"std____debug__list\"},{type=\"QStaticStringData\"},{type=\"QVariant (QVariantMap)\",formats=\"17\"},{type=\"QSize\"},{type=\"Debugger__Internal__WatchItem\"},{type=\"QPolygon\"},{type=\"std____1__string\"},{type=\"QSharedDataPointer\"},{type=\"QV__PropertyHashData\"},{type=\"QStringList\"},{type=\"std___Rb_tree_iterator\"},{type=\"QString\",editable=\"true\",formats=\"2, 4\"},{type=\"std__optional\"},{type=\"std__deque__QNX\"},{type=\"QRegExp\"},{type=\"QStringData\"},{type=\"QFlags\"},{type=\"QTextCursor\"},{type=\"std____debug__unordered_map\",formats=\"17\"},{type=\"QList\",formats=\"18, 19\"},{type=\"QJsonPrivate__qle_signedbitfield\"},{type=\"QSharedPointer\"},{type=\"QUrl\",formats=\"2, 4\"},{type=\"QmakeProjectManager__QmakePriFileNode\"},{type=\"cv__Mat\",formats=\"4\"},{type=\"QVarLengthArray\"},{type=\"QV4__Object\"},{type=\"std____debug__deque\"},{type=\"std__unique_ptr\"},{type=\"QScopedPointer\"},{type=\"__m512\"},{type=\"std____1__map\",formats=\"17\"},{type=\"QStandardItem\"},{type=\"QtcDumperTest_BufArray\"},{type=\"QMapNode\"},{type=\"Core__GeneratedFile\"},{type=\"QObjectConnectionList\"},{type=\"std____1__array\",formats=\"16\"},{type=\"std____1__valarray\",formats=\"16\"},{type=\"QVariant\"},{type=\"QV4__String\"},{type=\"QVector\",editable=\"true\",formats=\"16\"},{type=\"ProjectExplorer__ProjectNode\"},{type=\"CPlusPlus__Internal__PPToken\"},{type=\"Debugger__Internal__ThreadId\"},{type=\"std____1__once_flag\"},{type=\"QHashNode\",formats=\"17\"},{type=\"QV4__Scoped\"},{type=\"ProString\"},{type=\"_typeobject\"},{type=\"Utils__Port\"},{type=\"QV4__CompilationUnit\"},{type=\"ProjectExplorer__ToolChain\"},{type=\"std__experimental__optional\"},{type=\"QTemporaryFile\"},{type=\"QXmlAttributes__Attribute\"},{type=\"std__function\"},{type=\"QJsonObject\"},{type=\"QRect\"},{type=\"CPlusPlus__IntegerType\"},{type=\"std__array\",formats=\"16\"},{type=\"CMakeProjectManager__Internal__CMakeProjectNode\"},{type=\"QJSValue\"},{type=\"std____cxx11__list\"},{type=\"CPlusPlus__FullySpecifiedType\"},{type=\"__gnu_debug___Safe_iterator\"},{type=\"QV4__ScriptFunction\"},{type=\"QtcDumperTest_List\"},{type=\"QWeakPointer\"},{type=\"std__weak_ptr\"},{type=\"QMetaMethod\"},{type=\"QAtomicPointer\"},{type=\"CPlusPlus__NamedType\"},],python=\"20715\"}\n"
          >13^done
          dENGINE SUCCESSFULLY STARTED
           Setting breakpoints...
          dSetting breakpoints...
          dTAKING OWNERSHIP OF BREAKPOINT 1
          <15-gdb-set environment LD_LIBRARY_PATH=/usr/local/lib/qt5:/usr/local/lib:/usr/local/lib/qt5
          <16-gdb-set environment PATH=/usr/local/lib/qt5/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
          <17-gdb-set environment QTDIR=/usr/local/lib/qt5
          <18cd /home/fb/dev/build-untitled-Desktop_GCC-Debug
          <19-file-exec-and-symbols "/home/fb/dev/build-untitled-Desktop_GCC-Debug/untitled"
          
          >14^done
          
          dRUNNING NEEDS-STOP COMMAND -break-insert  -f "\"main.cpp\":8"
          dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
          <20-break-insert  -f "\"main.cpp\":8"
          >15^done
          
          >16^done
          
          >17^done
          
          >&"cd /home/fb/dev/build-untitled-Desktop_GCC-Debug\n"
          >~"Working directory /home/fb/dev/build-untitled-Desktop_GCC-Debug\n (canonically /usr/home/fb/dev/build-untitled-Desktop_GCC-Debug).\n"
          >18^done
          
          >19^done
          
          >20^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000402ba0",func="main(int, char**)",file="../untitled/main.cpp",fullname="/usr/home/fb/dev/untitled/main.cpp",line="8",thread-groups=["i1"],times="0",original-location="main.cpp:8"}
          dALL COMMANDS DONE; INVOKING CALLBACK
          dNOTE: ENGINE SETUP OK
          dState changed from EngineSetupRequested(1) to EngineSetupOk(3)
          dState changed from EngineSetupOk(3) to EngineRunRequested(4)
          dCALL: RUN ENGINE
          <21-exec-run
          
           &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"
           &"warning: Could not trace the inferior process.\nError: "
           &"\n"
           &"warning: ptrace: Operation not permitted\n"
          >=thread-group-started,id="i1",pid="49187"
           Thread group i1 created.
          dTaking notice of pid 49187
          >=thread-created,id="1",group-id="i1"
           Thread 1 created.
          >=thread-exited,id="1",group-id="i1"
           Thread 1 in group i1 exited.
          >=thread-group-exited,id="i1"
           Thread group i1 exited.
          dNOTE: INFERIOR EXITED
          dState changed from EngineRunRequested(4) to InferiorShutdownFinished(14)
          dState changed from InferiorShutdownFinished(14) to EngineShutdownRequested(15)
          dCALL: SHUTDOWN ENGINE
          dPLAIN ADAPTER SHUTDOWN 15
          dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
          <22python theDumper.exitGdb({"token":22})
          >21^error,msg="During startup program exited with code 127."
          eERROR: UNEXPECTED STATE: EngineShutdownRequested  WANTED: EngineRunRequested IN gdb/gdbengine.cpp:4441
          dDuring startup program exited with code 127.
          dNOTE: ENGINE RUN FAILED
           Run failed.
          dState changed from EngineShutdownRequested(15) to EngineRunFailed(5)
          dState changed from EngineRunFailed(5) to EngineShutdownRequested(15)
          dCALL: SHUTDOWN ENGINE
          dPLAIN ADAPTER SHUTDOWN 15
          dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
          <23python theDumper.exitGdb({"token":23})
          
          >&"python theDumper.exitGdb({\"token\":22})\n"
          dQUIT DEBUGGER REQUESTED IN STATE 15
          dHANDLE GDB ERROR: An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
          dError writing to process
          dGDB PROCESS FINISHED, status 0, exit code 0
          dNOTE: ENGINE SHUTDOWN FINISHED
          dState changed from EngineShutdownRequested(15) to EngineShutdownFinished(16)
           Debugger finished.
          dState changed from EngineShutdownFinished(16) to DebuggerFinished(17)
          
          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jronald said in can't debug:

          dHANDLE GDB ERROR: An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
          dError writing to process

          Strange. Can you debug this program from command line with gdb?

          I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

          Qt has to stay free or it will die.

          jronaldJ 2 Replies Last reply
          0
          • aha_1980A aha_1980

            @jronald said in can't debug:

            dHANDLE GDB ERROR: An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
            dError writing to process

            Strange. Can you debug this program from command line with gdb?

            I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

            jronaldJ Offline
            jronaldJ Offline
            jronald
            wrote on last edited by jronald
            #5

            @aha_1980 said in FreeBSD: can't debug from Qt Creator:

            Strange. Can you debug this program from command line with gdb?

            console application can run in debug mode, but breakpoints not work.

            I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

            I tried on Windows, no problem. I'll install Linux, and try it there.

            aha_1980A 1 Reply Last reply
            0
            • jronaldJ jronald

              @aha_1980 said in FreeBSD: can't debug from Qt Creator:

              Strange. Can you debug this program from command line with gdb?

              console application can run in debug mode, but breakpoints not work.

              I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

              I tried on Windows, no problem. I'll install Linux, and try it there.

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

              @jronald said in FreeBSD: can't debug from Qt Creator:

              Strange. Can you debug this program from command line with gdb?

              console application can run in debug mode, but breakpoints not work.

              That might be the reason. You'll have to make sure gdb works correctly first. Probably you'll get better help on this in a BSD forum.

              I tried on Windows, no problem. I'll install Linux, and try it there.

              Usually it works nicely on Linux too. May I ask why you want to use Qt in BSD?

              Qt has to stay free or it will die.

              jronaldJ 1 Reply Last reply
              1
              • aha_1980A aha_1980

                @jronald said in FreeBSD: can't debug from Qt Creator:

                Strange. Can you debug this program from command line with gdb?

                console application can run in debug mode, but breakpoints not work.

                That might be the reason. You'll have to make sure gdb works correctly first. Probably you'll get better help on this in a BSD forum.

                I tried on Windows, no problem. I'll install Linux, and try it there.

                Usually it works nicely on Linux too. May I ask why you want to use Qt in BSD?

                jronaldJ Offline
                jronaldJ Offline
                jronald
                wrote on last edited by
                #7

                @aha_1980 said in FreeBSD: can't debug from Qt Creator:

                May I ask why you want to use Qt in BSD?

                high quality code and doc, more focus

                1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @jronald said in can't debug:

                  dHANDLE GDB ERROR: An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
                  dError writing to process

                  Strange. Can you debug this program from command line with gdb?

                  I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

                  jronaldJ Offline
                  jronaldJ Offline
                  jronald
                  wrote on last edited by
                  #8

                  @aha_1980 said in FreeBSD: can't debug from Qt Creator:

                  I'm afraid I've never used BSD, so I don't know if there are any system-related traps.

                  Tried on Debian 9.6, no problem, the QtCreator version is 4.2.0, not 4.8.0
                  I'll look for help on the FreeBSD forum.
                  I'll use Linux, and compare it to FreeBSD practically :)
                  Thank you

                  1 Reply Last reply
                  0

                  • Login

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