Solved QT program automatically exits after I run under debug mode
-
I have a project, it is mixed with c and c++ code, and passed. when i debug it, it always automatically exits, no any tip.
I have checked the gdb log, but I don’t know where is the problem.gdb log:
dStart parameters: 'libredwgtest2' mode: 1
dABI: x86-windows-msys-pe-64bit
dLanguages: c++
dExecutable: E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libredwgtest2.exe
dDirectory: E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug
dDebugger: D:\Qt\Qt5.13.2\Tools\mingw730_64\bin\gdb.exe
dProject: E:\10_Program\libredwgtest2
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: true (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: true (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: 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: 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 D:\Qt\Qt5.13.2\Tools\mingw730_64\bin\gdb.exe "--tty=\.\pipe\creator-10148-26874" -i mi
dGDB STARTED, INITIALIZING IT
<75show version
<76show debug-file-directory
<77set print object on
<78set breakpoint pending on
<79set print elements 10000
<80set unwindonsignal on
<81set width 0
<82set height 0
正在设置 inferior...
<83set substitute-path C:/work/build/qt5_workdir/w/s D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src
<84set substitute-path Q:/qt5_workdir/w/s D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src
<85set substitute-path c:/Users/qt/work/install D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src
<86set substitute-path c:/users/qt/work/qt D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src
<87python sys.path.insert(1, 'D:/Qt/Qt5.13.2/Tools/QtCreator/share/qtcreator/debugger/')
<88python sys.path.append('D:/Qt/Qt5.13.2/Tools/mingw730_64/bin/data-directory/python')
<89python from gdbbridge import *
<90python theDumper.loadDumpers({"token":90})=thread-group-added,id="i1"
~"GNU gdb (GDB) 8.1\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. Type "show copying"\nand "show warranty" for details.\n"
~"This GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"http://www.gnu.org/software/gdb/bugs/.\n"
~"Find the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\n"
~"For help, type "help".\n"
~"Type "apropos word" to search for commands related to "word".\n"&"show version\n"
~"GNU gdb (GDB) 8.1\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. Type "show copying"\nand "show warranty" for details.\n"
~"This GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"http://www.gnu.org/software/gdb/bugs/.\n"
~"Find the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\n"
~"For help, type "help".\n"
~"Type "apropos word" to search for commands related to "word".\n"
75^done
dPARSING VERSION: 75^done
dSUPPORTED GDB VERSION GNU gdb (GDB) 8.1
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. Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "x86_64-w64-mingw32".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
dhttp://www.gnu.org/software/gdb/bugs/.
dFind the GDB manual and other documentation resources online at:
dhttp://www.gnu.org/software/gdb/documentation/.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dGNU gdb (GDB) 8.1
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. Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "x86_64-w64-mingw32".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
dhttp://www.gnu.org/software/gdb/bugs/.
dFind the GDB manual and other documentation resources online at:
dhttp://www.gnu.org/software/gdb/documentation/.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dUSING GDB VERSION: 80100, BUILD: 2018
<91-interpreter-exec console "set target-async off"&"show debug-file-directory\n"
~"The directory where separate debug symbols are searched for is "c:\c\mingw730\x86_64-730-posix-seh-rt_v5-rev0\mingw64\lib\debug".\n"
76^done&"set print object on\n"
=cmd-param-changed,param="print object",value="on"
77^done&"set breakpoint pending on\n"
=cmd-param-changed,param="breakpoint pending",value="on"
78^done&"set print elements 10000\n"
=cmd-param-changed,param="print elements",value="10000"
79^done&"set unwindonsignal on\n"
=cmd-param-changed,param="unwindonsignal",value="on"
80^done&"set width 0\n"
=cmd-param-changed,param="width",value="4294967295"
81^done&"set height 0\n"
82^done&"set substitute-path C:/work/build/qt5_workdir/w/s D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src\n"
83^done&"set substitute-path Q:/qt5_workdir/w/s D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src\n"
84^done&"set substitute-path c:/Users/qt/work/install D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src\n"
85^done&"set substitute-path c:/users/qt/work/qt D:/Qt/Qt5.13.2/5.13.2/mingw73_64/../Src\n"
86^done&"python sys.path.insert(1, 'D:/Qt/Qt5.13.2/Tools/QtCreator/share/qtcreator/debugger/')\n"
87^done&"python sys.path.append('D:/Qt/Qt5.13.2/Tools/mingw730_64/bin/data-directory/python')\n"
88^done&"python from gdbbridge import *\n"
89^done&"python theDumper.loadDumpers({"token":90})\n"
......................
90^done
dENGINE SUCCESSFULLY STARTED
正在设置断点...
d正在设置断点...
dTAKING OWNERSHIP OF BREAKPOINT 1
dTAKING OWNERSHIP OF BREAKPOINT 2
dTAKING OWNERSHIP OF BREAKPOINT 3
dTAKING OWNERSHIP OF BREAKPOINT 4
dTAKING OWNERSHIP OF BREAKPOINT 5
<92-gdb-set environment PATH=D:\Qt\Qt5.13.2\5.13.2\mingw73_64\bin;D:\Qt\Qt5.13.2\Tools\mingw730_64\bin;D:\Qt\Qt5.13.2\5.13.2\mingw73_64\bin;D:\Qt\Qt5.13.2\Tools\mingw730_64\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;D:\Qt\Qt5.13.2\5.13.2\mingw73_64\bin;D:\Qt\Qt5.13.2\5.13.2\mingw73_32\bin;D:\Qt\Qt5.13.2\5.13.2\msvc2017\bin;D:\Qt\Qt5.13.2\5.13.2\msvc2017_64\bin;D:\Qt\Qt5.13.2\5.13.2\msvc2015_64\bin;C:\Qt\Qt5.8.0\Tools\mingw530_32\bin;C:\Program Files\CMake\bin;C:\Qt\Qt5.8.0\5.8\mingw53_32\bin;C:\opencv401\build\x86\vc15\bin;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Common Files\NetSarang;C:\cygwin64\lib\python3.6;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v713\runtime\win32;C:\Program Files (x86)\Java\jdk1.6.0_19/bin;C:\Program Files (x86)\Java\jdk1.6.0_19/jre/bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\ORACLE\instantclient_11_2;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Windows\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files (x86)\CADSeePlus;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\EsafeNet\Cobra DocGuard Client;C:\Program Files\CMake\bin;C:\dev\CGAL-4.11.1\auxiliary\gmp\lib;C:\Program Files\CGAL-4.7\auxiliary\gmp\lib;C:\dev\CGAL-5.0.2\auxiliary\gmp\lib
<93-gdb-set environment QTDIR=D:\Qt\Qt5.13.2\5.13.2\mingw73_64
<94cd E:/10_Program/build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug
<95-file-exec-and-symbols "E:/10_Program/build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug/debug/libredwgtest2.exe"91^done
dRUNNING NEEDS-STOP COMMAND -break-insert -f ""main.cpp":8"
dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
<96-break-insert -f ""main.cpp":8"
dRUNNING NEEDS-STOP COMMAND -break-insert -f ""main.cpp":9"
dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
<97-break-insert -f ""main.cpp":9"
dRUNNING NEEDS-STOP COMMAND -break-insert -f ""main.cpp":10"
dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
<98-break-insert -f ""main.cpp":10"
dRUNNING NEEDS-STOP COMMAND -break-insert -f ""main.cpp":11"
dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
<99-break-insert -f ""main.cpp":11"
dRUNNING NEEDS-STOP COMMAND -break-insert -f ""main.cpp":7"
dUNSAFE STATE FOR QUEUED COMMAND. EXECUTING IMMEDIATELY
<100-break-insert -f ""main.cpp":7"92^done
93^done
&"cd E:/10_Program/build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\n"
~"Working directory E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug.\n"
94^done95^done
96^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000403efc",func="qMain(int, char**)",file="../libredwgtest2/main.cpp",fullname="E:\10_Program\libredwgtest2\main.cpp",line="8",thread-groups=["i1"],times="0",original-location="main.cpp:8"}
97^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000403f1c",func="qMain(int, char**)",file="../libredwgtest2/main.cpp",fullname="E:\10_Program\libredwgtest2\main.cpp",line="9",thread-groups=["i1"],times="0",original-location="main.cpp:9"}
98^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000403f2d",func="qMain(int, char**)",file="../libredwgtest2/main.cpp",fullname="E:\10_Program\libredwgtest2\main.cpp",line="10",thread-groups=["i1"],times="0",original-location="main.cpp:10"}
99^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000403f3d",func="qMain(int, char**)",file="../libredwgtest2/main.cpp",fullname="E:\10_Program\libredwgtest2\main.cpp",line="11",thread-groups=["i1"],times="0",original-location="main.cpp:11"}
100^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000403eb8",func="qMain(int, char**)",file="../libredwgtest2/main.cpp",fullname="E:\10_Program\libredwgtest2\main.cpp",line="7",thread-groups=["i1"],times="0",original-location="main.cpp:7"}
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
<101-exec-run=thread-group-started,id="i1",pid="10484"
Thread group i1 created.
dTaking notice of pid 10484
=thread-created,id="1",group-id="i1"
Thread 1 created.
~"[New Thread 10484.0x3b84]\n"
[New Thread 10484.0x3b84]
=library-loaded,id="C:\Windows\SYSTEM32\ntdll.dll",target-name="C:\Windows\SYSTEM32\ntdll.dll",host-name="C:\Windows\SYSTEM32\ntdll.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00000000771f1000",to="0x000000007738e4ee"}]
Library C:\Windows\SYSTEM32\ntdll.dll loaded.
=library-loaded,id="C:\Windows\system32\kernel32.dll",target-name="C:\Windows\system32\kernel32.dll",host-name="C:\Windows\system32\kernel32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00000000770d1000",to="0x00000000771eeaf4"}]
Library C:\Windows\system32\kernel32.dll loaded.
=library-loaded,id="C:\Windows\system32\KernelBase.dll",target-name="C:\Windows\system32\KernelBase.dll",host-name="C:\Windows\system32\KernelBase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd301000",to="0x000007fefd36913c"}]
Library C:\Windows\system32\KernelBase.dll loaded.
=library-loaded,id="C:\Windows\System32\sysfer.dll",target-name="C:\Windows\System32\sysfer.dll",host-name="C:\Windows\System32\sysfer.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000074d01000",to="0x0000000074d94680"}]
Library C:\Windows\System32\sysfer.dll loaded.
=library-loaded,id="C:\Windows\system32\advapi32.dll",target-name="C:\Windows\system32\advapi32.dll",host-name="C:\Windows\system32\advapi32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007feff171000",to="0x000007feff24a624"}]
Library C:\Windows\system32\advapi32.dll loaded.
=library-loaded,id="C:\Windows\system32\msvcrt.dll",target-name="C:\Windows\system32\msvcrt.dll",host-name="C:\Windows\system32\msvcrt.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd931000",to="0x000007fefd9ce4bc"}]
Library C:\Windows\system32\msvcrt.dll loaded.
=library-loaded,id="C:\Windows\SYSTEM32\sechost.dll",target-name="C:\Windows\SYSTEM32\sechost.dll",host-name="C:\Windows\SYSTEM32\sechost.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd9d1000",to="0x000007fefd9ee39a"}]
Library C:\Windows\SYSTEM32\sechost.dll loaded.
=library-loaded,id="C:\Windows\system32\rpcrt4.dll",target-name="C:\Windows\system32\rpcrt4.dll",host-name="C:\Windows\system32\rpcrt4.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007feff3b1000",to="0x000007feff4db924"}]
Library C:\Windows\system32\rpcrt4.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Cored.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Cored.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Cored.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000000006b781000",to="0x000000006bd91b40"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Cored.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libgcc_s_seh-1.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libgcc_s_seh-1.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libgcc_s_seh-1.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000061441000",to="0x0000000061459064"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libgcc_s_seh-1.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libwinpthread-1.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libwinpthread-1.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libwinpthread-1.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000064941000",to="0x0000000064954068"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libwinpthread-1.dll loaded.
=library-loaded,id="C:\Windows\system32\mpr.dll",target-name="C:\Windows\system32\mpr.dll",host-name="C:\Windows\system32\mpr.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fef6c01000",to="0x000007fef6c17094"}]
Library C:\Windows\system32\mpr.dll loaded.
=library-loaded,id="C:\Windows\system32\netapi32.dll",target-name="C:\Windows\system32\netapi32.dll",host-name="C:\Windows\system32\netapi32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefbbd1000",to="0x000007fefbbe5034"}]
Library C:\Windows\system32\netapi32.dll loaded.
=library-loaded,id="C:\Windows\system32\netutils.dll",target-name="C:\Windows\system32\netutils.dll",host-name="C:\Windows\system32\netutils.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefc451000",to="0x000007fefc45b01c"}]
Library C:\Windows\system32\netutils.dll loaded.
=library-loaded,id="C:\Windows\system32\srvcli.dll",target-name="C:\Windows\system32\srvcli.dll",host-name="C:\Windows\system32\srvcli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefcb81000",to="0x000007fefcba265c"}]
Library C:\Windows\system32\srvcli.dll loaded.
=library-loaded,id="C:\Windows\system32\wkscli.dll",target-name="C:\Windows\system32\wkscli.dll",host-name="C:\Windows\system32\wkscli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefbbb1000",to="0x000007fefbbc4388"}]
Library C:\Windows\system32\wkscli.dll loaded.
=library-loaded,id="C:\Windows\system32\ole32.dll",target-name="C:\Windows\system32\ole32.dll",host-name="C:\Windows\system32\ole32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd711000",to="0x000007fefd90e770"}]
Library C:\Windows\system32\ole32.dll loaded.
=library-loaded,id="C:\Windows\system32\gdi32.dll",target-name="C:\Windows\system32\gdi32.dll",host-name="C:\Windows\system32\gdi32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd3c1000",to="0x000007fefd426210"}]
Library C:\Windows\system32\gdi32.dll loaded.
=library-loaded,id="C:\Windows\system32\user32.dll",target-name="C:\Windows\system32\user32.dll",host-name="C:\Windows\system32\user32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000076fd1000",to="0x00000000770c9348"}]
Library C:\Windows\system32\user32.dll loaded.
=library-loaded,id="C:\Windows\system32\lpk.dll",target-name="C:\Windows\system32\lpk.dll",host-name="C:\Windows\system32\lpk.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd701000",to="0x000007fefd70d034"}]
Library C:\Windows\system32\lpk.dll loaded.
=library-loaded,id="C:\Windows\system32\usp10.dll",target-name="C:\Windows\system32\usp10.dll",host-name="C:\Windows\system32\usp10.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd531000",to="0x000007fefd5fa28c"}]
Library C:\Windows\system32\usp10.dll loaded.
=library-loaded,id="C:\Windows\system32\shell32.dll",target-name="C:\Windows\system32\shell32.dll",host-name="C:\Windows\system32\shell32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd9f1000",to="0x000007fefe77afc4"}]
Library C:\Windows\system32\shell32.dll loaded.
=library-loaded,id="C:\Windows\system32\shlwapi.dll",target-name="C:\Windows\system32\shlwapi.dll",host-name="C:\Windows\system32\shlwapi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd681000",to="0x000007fefd6f0da8"}]
Library C:\Windows\system32\shlwapi.dll loaded.
=library-loaded,id="C:\Windows\system32\userenv.dll",target-name="C:\Windows\system32\userenv.dll",host-name="C:\Windows\system32\userenv.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefc2d1000",to="0x000007fefc2ed230"}]
Library C:\Windows\system32\userenv.dll loaded.
=library-loaded,id="C:\Windows\system32\profapi.dll",target-name="C:\Windows\system32\profapi.dll",host-name="C:\Windows\system32\profapi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefcf91000",to="0x000007fefcf9e040"}]
Library C:\Windows\system32\profapi.dll loaded.
=library-loaded,id="C:\Windows\system32\version.dll",target-name="C:\Windows\system32\version.dll",host-name="C:\Windows\system32\version.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefb9b1000",to="0x000007fefb9bb010"}]
Library C:\Windows\system32\version.dll loaded.
=library-loaded,id="C:\Windows\system32\winmm.dll",target-name="C:\Windows\system32\winmm.dll",host-name="C:\Windows\system32\winmm.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefa951000",to="0x000007fefa98a130"}]
Library C:\Windows\system32\winmm.dll loaded.
=library-loaded,id="C:\Windows\system32\ws2_32.dll",target-name="C:\Windows\system32\ws2_32.dll",host-name="C:\Windows\system32\ws2_32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd431000",to="0x000007fefd47c124"}]
Library C:\Windows\system32\ws2_32.dll loaded.
=library-loaded,id="C:\Windows\system32\nsi.dll",target-name="C:\Windows\system32\nsi.dll",host-name="C:\Windows\system32\nsi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefd521000",to="0x000007fefd52700c"}]
Library C:\Windows\system32\nsi.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libstdc++-6.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libstdc++-6.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libstdc++-6.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00000000018a1000",to="0x0000000001a04cc4"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\libstdc++-6.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Guid.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Guid.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Guid.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000001b61000",to="0x0000000002135510"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Guid.dll loaded.
=library-loaded,id="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Widgetsd.dll",target-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Widgetsd.dll",host-name="E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Widgetsd.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000013911000",to="0x0000000013f0a620"}]
Library E:\10_Program\build-libredwgtest2-Desktop_Qt_5_13_2_MinGW_64_bit-Debug\debug\Qt5Widgetsd.dll loaded.
=library-loaded,id="C:\Windows\system32\dwmapi.dll",target-name="C:\Windows\system32\dwmapi.dll",host-name="C:\Windows\system32\dwmapi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefb961000",to="0x000007fefb977050"}]
Library C:\Windows\system32\dwmapi.dll loaded.
=library-loaded,id="C:\Windows\system32\uxtheme.dll",target-name="C:\Windows\system32\uxtheme.dll",host-name="C:\Windows\system32\uxtheme.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefb111000",to="0x000007fefb165290"}]
Library C:\Windows\system32\uxtheme.dll loaded.=cmd-param-changed,param="debug-file-directory",value="c:\c\mingw730\x86_64-730-posix-seh-rt_v5-rev0\mingw64\lib\debug:"
101^running
dNOTE: ENGINE RUN AND INFERIOR RUN OK
Running.
dState changed from EngineRunRequested(4) to InferiorRunOk(8)
dINFERIOR STARTED
Application started.
*running,thread-id="all"=thread-created,id="2",group-id="i1"
Thread 2 created.
~"[New Thread 10484.0x38e8]\n"
[New Thread 10484.0x38e8]
=library-loaded,id="C:\Windows\system32\imm32.dll",target-name="C:\Windows\system32\imm32.dll",host-name="C:\Windows\system32\imm32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefef61000",to="0x000007fefef8d048"}]
Library C:\Windows\system32\imm32.dll loaded.
=library-loaded,id="C:\Windows\system32\msctf.dll",target-name="C:\Windows\system32\msctf.dll",host-name="C:\Windows\system32\msctf.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000007fefea31000",to="0x000007fefeb38a04"}]
Library C:\Windows\system32\msctf.dll loaded.
~"[Thread 10484.0x38e8 exited with code 0]\n"
[Thread 10484.0x38e8 exited with code 0]
=thread-exited,id="2",group-id="i1"
Thread 2 in group i1 exited.PASSED: 16
FAILED: 0~"[Inferior 1 (process 10484) exited normally]\n"
=thread-exited,id="1",group-id="i1"
Thread 1 in group i1 exited.
=thread-group-exited,id="i1",exit-code="0"
Thread group i1 exited.
dNOTE: INFERIOR EXITED
dState changed from InferiorRunOk(8) to InferiorShutdownFinished(14)
dState changed from InferiorShutdownFinished(14) to EngineShutdownRequested(15)
dCALL: SHUTDOWN ENGINE
dPLAIN ADAPTER SHUTDOWN 15
dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
<102python theDumper.exitGdb({"token":102})
*stopped,reason="exited-normally"
dNOTE: INFERIOR STOP OK
dNOTE: ... WHILE DYING.
dNOTE: ... IGNORING STOP MESSAGE&"python theDumper.exitGdb({"token":102})\n"
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) -
How was this solved? I have the same problem and don't see the answer
-
@Giti_zsx said in QT program automatically exits after I run under debug mode:
~"[Inferior 1 (process 10484) exited normally]\n"
Looks like the program being debugged exited normally.