microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.53k stars 1.56k forks source link

ERROR: GDB exited unexpectedly. Debugging will now abort. #5889

Closed justKidrauhl closed 4 years ago

justKidrauhl commented 4 years ago

Type: Debugger

Describe the bug

To Reproduce Please include a code sample and launch.json configuration. Steps to reproduce the behavior:

  1. Code and breakpoint: image

  2. Configuration: launch.json { "version": "0.2.0", "configurations": [ { "name": "g++.exe", "type": "cppdbg", "request": "launch", "program": "${fileDirname}\${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gdb.exe", "setupCommands": [ { "description": "enable pretty printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "C/C++: g++.exe build active file" } ] }

  3. Error: Thread 1 hit Breakpoint 1, main () at c:\Users\limin\Desktop\C++Code\1.cpp:5 5 string s = "aaa"; Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\msvcrt.dll'. Symbols loaded. Loaded 'E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\opt\bin\libgcc_s_seh-1.dll'. Symbols loaded. Loaded 'E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\libstdc++-6.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\user32.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\win32u.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\gdi32.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\gdi32full.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\msvcp_win.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\ucrtbase.dll'. Symbols loaded. Loaded 'C:\WINDOWS\System32\imm32.dll'. Symbols loaded.

Thread 1 hit Breakpoint 2, main () at c:\Users\limin\Desktop\C++Code\1.cpp:8 8 cout<<s[i]<<endl; Execute debugger commands using "-exec ", for example "-exec info registers" will list registers in use (when GDB is the debugger) ERROR: GDB exited unexpectedly. Debugging will now abort. The program 'c:\Users\limin\Desktop\C++Code\1.exe' has exited with code -1 (0xffffffff).

  1. But GDB works well with the code below: image
WardenGnaw commented 4 years ago

Can you add the following to your launch.json and share the output from Debug Console?

"logging": {
   "engineLogging": true,
   "traceResponse": true
}
justKidrauhl commented 4 years ago

All info from Debug Console:

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (181) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\r\n"},"seq":2}
1: (181) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (218) LaunchOptions  ExePath='c:\\Users\\limin\\Desktop\\C++Code\\1.exe'\r\n"},"seq":4}
1: (218) LaunchOptions  ExePath='c:\Users\limin\Desktop\C++Code\1.exe'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (218) LaunchOptions  WorkingDirectory='C:\\Users\\limin\\Desktop\\C++Code'\r\n"},"seq":6}
1: (218) LaunchOptions  WorkingDirectory='C:\Users\limin\Desktop\C++Code'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (219) LaunchOptions  ExeArguments='2&gt;CON 1&gt;CON &lt;CON'\r\n"},"seq":8}
1: (219) LaunchOptions  ExeArguments='2&gt;CON 1&gt;CON &lt;CON'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (219) LaunchOptions  MIMode='gdb'\r\n"},"seq":10}
1: (219) LaunchOptions  MIMode='gdb'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions  MIDebuggerPath='E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\gdb.exe'\r\n"},"seq":12}
1: (223) LaunchOptions  MIDebuggerPath='E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gdb.exe'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions  WaitDynamicLibLoad='false'\r\n"},"seq":14}
1: (223) LaunchOptions  WaitDynamicLibLoad='false'
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions>\r\n"},"seq":16}
1: (223) LaunchOptions>
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions    <SetupCommands>\r\n"},"seq":18}
1: (223) LaunchOptions    <SetupCommands>
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions        <Command IgnoreFailures='true' Description='为 gdb 启用整齐打印'>-enable-pretty-printing</Command>\r\n"},"seq":20}
1: (223) LaunchOptions        <Command IgnoreFailures='true' Description='为 gdb 启用整齐打印'>-enable-pretty-printing</Command>
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (223) LaunchOptions    </SetupCommands>\r\n"},"seq":22}
1: (223) LaunchOptions    </SetupCommands>
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (224) LaunchOptions</LocalLaunchOptions>\r\n"},"seq":24}
1: (224) LaunchOptions</LocalLaunchOptions>
--> C (runInTerminal-26): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: 1.exe","cwd":"","args":["c:\\Users\\limin\\.vscode\\extensions\\ms-vscode.cpptools-0.29.0\\debugAdapters\\bin\\WindowsDebugLauncher.exe","--stdin=Microsoft-MIEngine-In-wvfwfvl0.ntd","--stdout=Microsoft-MIEngine-Out-52xvkhjn.pt3","--stderr=Microsoft-MIEngine-Error-wekgrbag.edm","--pid=Microsoft-MIEngine-Pid-qmi01vgt.jdd","--dbgExe=E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\gdb.exe","--interpreter=mi"],"env":{}},"seq":26}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (383) Wait for connection completion.\r\n"},"seq":28}
1: (383) Wait for connection completion.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3285) ->=thread-group-added,id=\"i1\"\r\n"},"seq":30}
1: (3285) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3288) ->~\"GNU gdb (GDB) 8.1\\n\"\r\n"},"seq":32}
1: (3288) ->~"GNU gdb (GDB) 8.1\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3290) ->~\"Copyright (C) 2018 Free Software Foundation, Inc.\\n\"\r\n"},"seq":34}
1: (3290) ->~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3291) ->~\"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\"\r\n"},"seq":36}
1: (3291) ->~"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"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3292) ->~\"This GDB was configured as \\\"x86_64-w64-mingw32\\\".\\nType \\\"show configuration\\\" for configuration details.\"\r\n"},"seq":38}
1: (3292) ->~"This GDB was configured as \"x86_64-w64-mingw32\".\nType \"show configuration\" for configuration details."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3292) ->~\"\\nFor bug reporting instructions, please see:\\n\"\r\n"},"seq":40}
1: (3292) ->~"\nFor bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3293) ->~\"<http://www.gnu.org/software/gdb/bugs/>.\\n\"\r\n"},"seq":42}
1: (3293) ->~"<http://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3294) ->~\"Find the GDB manual and other documentation resources online at:\\n<http://www.gnu.org/software/gdb/documentation/>.\\n\"\r\n"},"seq":44}
1: (3294) ->~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3294) ->~\"For help, type \\\"help\\\".\\n\"\r\n"},"seq":46}
1: (3294) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3295) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\r\n"},"seq":48}
1: (3295) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3297) ->(gdb)\r\n"},"seq":50}
1: (3297) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3301) <-1001-gdb-set target-async on\r\n"},"seq":52}
1: (3301) <-1001-gdb-set target-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) ->1001^done\r\n"},"seq":54}
1: (3308) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) ->(gdb)\r\n"},"seq":56}
1: (3308) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) ->&\"\\n\"\r\n"},"seq":58}
1: (3308) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) ->^done\r\n"},"seq":60}
1: (3308) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) ->(gdb)\r\n"},"seq":62}
1: (3308) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3308) 1001: elapsed time 6\r\n"},"seq":64}
1: (3308) 1001: elapsed time 6
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3318) <-1002-enable-pretty-printing\r\n"},"seq":66}
1: (3318) <-1002-enable-pretty-printing
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) ->1002^done\r\n"},"seq":68}
1: (3329) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) 1002: elapsed time 10\r\n"},"seq":70}
1: (3329) 1002: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) ->(gdb)\r\n"},"seq":72}
1: (3329) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) <-1003-interpreter-exec console \"set pagination off\"\r\n"},"seq":74}
1: (3329) <-1003-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) ->&\"\\n\"\r\n"},"seq":76}
1: (3329) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) ->^done\r\n"},"seq":78}
1: (3329) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3329) ->(gdb)\r\n"},"seq":80}
1: (3329) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\r\n"},"seq":82}
1: (3340) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) ->1003^done\r\n"},"seq":84}
1: (3340) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) 1003: elapsed time 11\r\n"},"seq":86}
1: (3340) 1003: elapsed time 11
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) <-1004-gdb-set auto-solib-add on\r\n"},"seq":88}
1: (3340) <-1004-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) ->(gdb)\r\n"},"seq":90}
1: (3340) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) ->&\"\\n\"\r\n"},"seq":92}
1: (3340) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3340) ->^done\r\n"},"seq":94}
1: (3340) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3342) ->(gdb)\r\n"},"seq":96}
1: (3342) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3350) ->1004^done\r\n"},"seq":98}
1: (3350) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3350) 1004: elapsed time 10\r\n"},"seq":100}
1: (3350) 1004: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3350) <-1005-gdb-set solib-search-path c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code;\r\n"},"seq":102}
1: (3350) <-1005-gdb-set solib-search-path c:\\Users\\limin\\Desktop\\C++Code;
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3350) ->(gdb)\r\n"},"seq":104}
1: (3350) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3350) ->&\"\\n\"\r\n"},"seq":106}
1: (3350) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3351) ->^done\r\n"},"seq":108}
1: (3351) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3351) ->(gdb)\r\n"},"seq":110}
1: (3351) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3361) ->1005^done\r\n"},"seq":112}
1: (3361) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3361) 1005: elapsed time 10\r\n"},"seq":114}
1: (3361) 1005: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3361) <-1006-environment-cd C:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\r\n"},"seq":116}
1: (3361) <-1006-environment-cd C:\\Users\\limin\\Desktop\\C++Code
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3361) ->(gdb)\r\n"},"seq":118}
1: (3361) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3362) ->&\"\\n\"\r\n"},"seq":120}
1: (3362) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3369) ->^done\r\n"},"seq":122}
1: (3369) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3369) ->(gdb)\r\n"},"seq":124}
1: (3369) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3371) ->1006^done\r\n"},"seq":126}
1: (3371) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3371) 1006: elapsed time 10\r\n"},"seq":128}
1: (3371) 1006: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3372) ->(gdb)\r\n"},"seq":130}
1: (3372) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3372) ->&\"\\n\"\r\n"},"seq":132}
1: (3372) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3373) ->^done\r\n"},"seq":134}
1: (3373) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3374) ->(gdb)\r\n"},"seq":136}
1: (3374) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3377) <-1007-interpreter-exec console \"show configuration\"\r\n"},"seq":138}
1: (3377) <-1007-interpreter-exec console "show configuration"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3382) ->~\"This GDB was configured as follows:\\n   configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32\\n\"\r\n"},"seq":140}
1: (3382) ->~"This GDB was configured as follows:\n   configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3383) ->~\"             --with-auto-load-dir=$debugdir:$datadir/auto-load\\n             --with-auto-load-safe-path=$debugdir:$datadir/auto-load\\n\"\r\n"},"seq":142}
1: (3383) ->~"             --with-auto-load-dir=$debugdir:$datadir/auto-load\n             --with-auto-load-safe-path=$debugdir:$datadir/auto-load\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3383) ->~\"             --with-expat\\n\"\r\n"},"seq":144}
1: (3383) ->~"             --with-expat\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3383) ->~\"             --with-gdb-datadir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/share/gdb (relocatable)\\n\"\r\n"},"seq":146}
1: (3383) ->~"             --with-gdb-datadir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/share/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3383) ->~\"             --with-jit-reader-dir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/lib/gdb (relocatable)\\n\"\r\n"},"seq":148}
1: (3383) ->~"             --with-jit-reader-dir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/lib/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --without-libunwind-ia64\\n\"\r\n"},"seq":150}
1: (3384) ->~"             --without-libunwind-ia64\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --without-lzma\\n\"\r\n"},"seq":152}
1: (3384) ->~"             --without-lzma\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --with-python=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt (relocatable)\\n\"\r\n"},"seq":154}
1: (3384) ->~"             --with-python=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/opt (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --without-guile\\n\"\r\n"},"seq":156}
1: (3384) ->~"             --without-guile\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --with-separate-debug-dir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/lib/debug (relocatable)\\n\"\r\n"},"seq":158}
1: (3384) ->~"             --with-separate-debug-dir=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/lib/debug (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3384) ->~\"             --with-system-gdbinit=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/etc/gdbinit (relocatable)\\n\"\r\n"},"seq":160}
1: (3384) ->~"             --with-system-gdbinit=/c/mingw810/x86_64-810-win32-seh-rt_v6-rev0/mingw64/etc/gdbinit (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3385) ->~\"             --without-babeltrace\\n\"\r\n"},"seq":162}
1: (3385) ->~"             --without-babeltrace\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3385) ->~\"\\n(\\\"Relocatable\\\" means the directory can be moved with the GDB installation\\ntree, and GDB will still find it.)\\n\"\r\n"},"seq":164}
1: (3385) ->~"\n(\"Relocatable\" means the directory can be moved with the GDB installation\ntree, and GDB will still find it.)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) ->1007^done\r\n"},"seq":166}
1: (3387) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) 1007: elapsed time 10\r\n"},"seq":168}
1: (3387) 1007: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) ->(gdb)\r\n"},"seq":170}
1: (3387) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) ->&\"\\n\"\r\n"},"seq":172}
1: (3387) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) ->^done\r\n"},"seq":174}
1: (3387) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3387) ->(gdb)\r\n"},"seq":176}
1: (3387) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/WindowsRuntime","data":{"VS.Diagnostics.Debugger.MIEngine.WindowsRuntime":"MinGW"}},"seq":178}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3390) <-1008-file-exec-and-symbols c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.exe\r\n"},"seq":180}
1: (3390) <-1008-file-exec-and-symbols c:\\Users\\limin\\Desktop\\C++Code\\1.exe
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3407) ->1008^done\r\n"},"seq":182}
1: (3407) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3407) 1008: elapsed time 17\r\n"},"seq":184}
1: (3407) 1008: elapsed time 17
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3407) <-1009-interpreter-exec console \"show architecture\"\r\n"},"seq":186}
1: (3407) <-1009-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3407) ->(gdb)\r\n"},"seq":188}
1: (3407) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3408) ->&\"\\n\"\r\n"},"seq":190}
1: (3408) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3408) ->^done\r\n"},"seq":192}
1: (3408) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3408) ->(gdb)\r\n"},"seq":194}
1: (3408) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3408) ->~\"The target architecture is set automatically (currently i386:x86-64)\\n\"\r\n"},"seq":196}
1: (3408) ->~"The target architecture is set automatically (currently i386:x86-64)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) ->1009^done\r\n"},"seq":198}
1: (3409) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) 1009: elapsed time 2\r\n"},"seq":200}
1: (3409) 1009: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) ->(gdb)\r\n"},"seq":202}
1: (3409) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) ->&\"\\n\"\r\n"},"seq":204}
1: (3409) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) ->^done\r\n"},"seq":206}
1: (3409) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3409) ->(gdb)\r\n"},"seq":208}
1: (3409) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3410) <-1010-exec-arguments 2>CON 1>CON <CON\r\n"},"seq":210}
1: (3410) <-1010-exec-arguments 2>CON 1>CON <CON
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) ->1010^done\r\n"},"seq":212}
1: (3419) ->1010^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) 1010: elapsed time 8\r\n"},"seq":214}
1: (3419) 1010: elapsed time 8
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) ->(gdb)\r\n"},"seq":216}
1: (3419) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) <-1011-break-insert -f main\r\n"},"seq":218}
1: (3419) <-1011-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) ->&\"\\n\"\r\n"},"seq":220}
1: (3419) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) ->^done\r\n"},"seq":222}
1: (3419) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3419) ->(gdb)\r\n"},"seq":224}
1: (3419) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3430) ->1011^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000000401563\",func=\"main()\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\r\n"},"seq":226}
1: (3430) ->1011^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000401563",func="main()",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3430) ->(gdb)\r\n"},"seq":228}
1: (3430) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3430) ->&\"\\n\"\r\n"},"seq":230}
1: (3430) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3430) ->^done\r\n"},"seq":232}
1: (3430) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3431) ->(gdb)\r\n"},"seq":234}
1: (3431) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3437) 1011: elapsed time 18\r\n"},"seq":236}
1: (3437) 1011: elapsed time 18
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3448) Send Event AD7EngineCreateEvent\r\n"},"seq":238}
1: (3448) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3451) Send Event AD7ProgramCreateEvent\r\n"},"seq":240}
1: (3451) Send Event AD7ProgramCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"16.5.10630.1","VS.Diagnostics.Debugger.HostVersion":"16.5.10630.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":3347,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0,"VS.Diagnostics.Debugger.MIMode":"gdb"}},"seq":242}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":244}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":246}
<--   R (runInTerminal-26) [3109 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":26,"success":true,"body":{"shellProcessId":4572}}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3495) ShellPid=13984\r\n"},"seq":249}
1: (3495) ShellPid=13984
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3506) DebuggerPid=11092\r\n"},"seq":251}
1: (3506) DebuggerPid=11092
<--   C (setBreakpoints-4): {"command":"setBreakpoints","arguments":{"source":{"name":"1.cpp","path":"c:\\Users\\limin\\Desktop\\C++Code\\1.cpp"},"lines":[8],"breakpoints":[{"line":8}],"sourceModified":false},"type":"request","seq":4}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3539) <-1012-break-insert -f 1.cpp:8\r\n"},"seq":254}
1: (3539) <-1012-break-insert -f 1.cpp:8
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) ->1012^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000000004015bf\",func=\"main()\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"8\",thread-groups=[\"i1\"],times=\"0\",original-location=\"1.cpp:8\"}\r\n"},"seq":256}
1: (3547) ->1012^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004015bf",func="main()",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="8",thread-groups=["i1"],times="0",original-location="1.cpp:8"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) 1012: elapsed time 7\r\n"},"seq":258}
1: (3547) 1012: elapsed time 7
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) ->(gdb)\r\n"},"seq":260}
1: (3547) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) ->&\"\\n\"\r\n"},"seq":262}
1: (3547) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) ->^done\r\n"},"seq":264}
1: (3547) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3547) ->(gdb)\r\n"},"seq":266}
1: (3547) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3564) <-1013-symbol-list-lines c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\r\n"},"seq":268}
1: (3564) <-1013-symbol-list-lines c:\\Users\\limin\\Desktop\\C++Code\\1.cpp
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3569) ->1013^done,lines=[{pc=\"0x0000000000401550\",line=\"4\"},{pc=\"0x000000000040155e\",line=\"4\"},{pc=\"0x0000000000401563\",line=\"5\"},{pc=\"0x0000000000401595\",line=\"6\"},{pc=\"0x000000000040159c\",line=\"7\"},{pc=\"0x00000000004015bf\",line=\"8\"},{pc=\"0x00000000004015f4\",line=\"7\"},{pc=\"0x00000000004015fa\",line=\"10\"},{pc=\"0x00000000004015ff\",line=\"5\"},{pc=\"0x0000000000401643\",line=\"11\"},{pc=\"0x000000000040164a\",line=\"0\"},{pc=\"0x0000000000401665\",line=\"11\"},{pc=\"0x0000000000401673\",line=\"11\"},{pc=\"0x0000000000401682\",line=\"0\"},{pc=\"0x000000000040169a\",line=\"11\"},{pc=\"0x00000000004016a1\",line=\"11\"},{pc=\"0x00000000004016a9\",line=\"11\"},{pc=\"0x00000000004016bf\",line=\"0\"}]\r\n"},"seq":270}
1: (3569) ->1013^done,lines=[{pc="0x0000000000401550",line="4"},{pc="0x000000000040155e",line="4"},{pc="0x0000000000401563",line="5"},{pc="0x0000000000401595",line="6"},{pc="0x000000000040159c",line="7"},{pc="0x00000000004015bf",line="8"},{pc="0x00000000004015f4",line="7"},{pc="0x00000000004015fa",line="10"},{pc="0x00000000004015ff",line="5"},{pc="0x0000000000401643",line="11"},{pc="0x000000000040164a",line="0"},{pc="0x0000000000401665",line="11"},{pc="0x0000000000401673",line="11"},{pc="0x0000000000401682",line="0"},{pc="0x000000000040169a",line="11"},{pc="0x00000000004016a1",line="11"},{pc="0x00000000004016a9",line="11"},{pc="0x00000000004016bf",line="0"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3569) ->(gdb)\r\n"},"seq":272}
1: (3569) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3569) 1013: elapsed time 5\r\n"},"seq":274}
1: (3569) 1013: elapsed time 5
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3569) ->&\"\\n\"\r\n"},"seq":276}
1: (3569) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3571) ->^done\r\n"},"seq":278}
1: (3571) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3572) ->(gdb)\r\n"},"seq":280}
1: (3572) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3580) Send Event AD7BreakpointBoundEvent\r\n"},"seq":282}
1: (3580) Send Event AD7BreakpointBoundEvent
--> R (setBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":8}]},"seq":284}
--> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":8}},"seq":286}
<--   C (setFunctionBreakpoints-5): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
--> R (setFunctionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":289}
<--   C (configurationDone-6): {"command":"configurationDone","type":"request","seq":6}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3636) Send Event AD7LoadCompleteEvent\r\n"},"seq":293}
1: (3636) Send Event AD7LoadCompleteEvent
--> R (configurationDone-6): {"type":"response","request_seq":6,"success":true,"command":"configurationDone","body":{},"seq":292}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (GDB) 8.1\nCopyright (C) 2018 Free Software Foundation, Inc.\nLicense 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.\nThis 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/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":296}
=thread-group-added,id="i1"
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3644) <-1014-exec-run\r\n"},"seq":298}
1: (3644) <-1014-exec-run
<--   C (threads-7): {"command":"threads","type":"request","seq":7}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3658) ->=thread-group-started,id=\"i1\",pid=\"12080\"\r\n"},"seq":302}
1: (3658) ->=thread-group-started,id="i1",pid="12080"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3659) ->=thread-created,id=\"1\",group-id=\"i1\"\r\n"},"seq":304}
1: (3659) ->=thread-created,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3659) ->~\"[New Thread 12080.0x4c04]\\n\"\r\n"},"seq":306}
1: (3659) ->~"[New Thread 12080.0x4c04]\n"
--> R (threads-7): {"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[]},"seq":301}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3668) <-1015-thread-info 1\r\n"},"seq":309}
1: (3668) <-1015-thread-info 1
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 12080.0x4c04]\n"},"seq":311}
[New Thread 12080.0x4c04]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3699) ->=thread-created,id=\"2\",group-id=\"i1\"\r\n"},"seq":313}
1: (3699) ->=thread-created,id="2",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3699) <-1016-thread-info 2\r\n"},"seq":315}
1: (3699) <-1016-thread-info 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3702) ->~\"[New Thread 12080.0x1470]\\n\"\r\n"},"seq":317}
1: (3702) ->~"[New Thread 12080.0x1470]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 12080.0x1470]\n"},"seq":319}
[New Thread 12080.0x1470]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3707) ->=thread-created,id=\"3\",group-id=\"i1\"\r\n"},"seq":321}
1: (3707) ->=thread-created,id="3",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3707) <-1017-thread-info 3\r\n"},"seq":323}
1: (3707) <-1017-thread-info 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3708) ->~\"[New Thread 12080.0x37d4]\\n\"\r\n"},"seq":325}
1: (3708) ->~"[New Thread 12080.0x37d4]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 12080.0x37d4]\n"},"seq":327}
[New Thread 12080.0x37d4]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3714) ->=thread-created,id=\"4\",group-id=\"i1\"\r\n"},"seq":329}
1: (3714) ->=thread-created,id="4",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3715) <-1018-thread-info 4\r\n"},"seq":331}
1: (3715) <-1018-thread-info 4
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3715) ->~\"[New Thread 12080.0x3084]\\n\"\r\n"},"seq":333}
1: (3715) ->~"[New Thread 12080.0x3084]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 12080.0x3084]\n"},"seq":335}
[New Thread 12080.0x3084]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3732) ->=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=\"0x00007ff989141000\",to=\"0x00007ff98932f528\"}]\r\n"},"seq":337}
1: (3732) ->=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="0x00007ff989141000",to="0x00007ff98932f528"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3733) ->=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=\"0x00007ff987a01000\",to=\"0x00007ff987ab124c\"}]\r\n"},"seq":339}
1: (3733) ->=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="0x00007ff987a01000",to="0x00007ff987ab124c"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3736) ->=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=\"0x00007ff9864b1000\",to=\"0x00007ff9867537e4\"}]\r\n"},"seq":341}
1: (3736) ->=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="0x00007ff9864b1000",to="0x00007ff9867537e4"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3738) ->=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=\"0x00007ff987881000\",to=\"0x00007ff98791d4a4\"}]\r\n"},"seq":343}
1: (3738) ->=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="0x00007ff987881000",to="0x00007ff98791d4a4"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3741) ->=library-loaded,id=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\opt\\\\bin\\\\libgcc_s_seh-1.dll\",target-name=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\opt\\\\bin\\\\libgcc_s_seh-1.dll\",host-name=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\opt\\\\bin\\\\libgcc_s_seh-1.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x0000000061441000\",to=\"0x000000006145a064\"}]\r\n"},"seq":345}
1: (3741) ->=library-loaded,id="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\opt\\bin\\libgcc_s_seh-1.dll",target-name="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\opt\\bin\\libgcc_s_seh-1.dll",host-name="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\opt\\bin\\libgcc_s_seh-1.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x0000000061441000",to="0x000000006145a064"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3743) ->=library-loaded,id=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\bin\\\\libstdc++-6.dll\",target-name=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\bin\\\\libstdc++-6.dll\",host-name=\"E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\bin\\\\libstdc++-6.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x000000006fc41000\",to=\"0x000000006fda3c8c\"}]\r\n"},"seq":347}
1: (3743) ->=library-loaded,id="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\libstdc++-6.dll",target-name="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\libstdc++-6.dll",host-name="E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x000000006fc41000",to="0x000000006fda3c8c"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3743) ->=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=\"0x00007ff988161000\",to=\"0x00007ff9882f3414\"}]\r\n"},"seq":349}
1: (3743) ->=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="0x00007ff988161000",to="0x00007ff9882f3414"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3745) ->=library-loaded,id=\"C:\\\\WINDOWS\\\\System32\\\\win32u.dll\",target-name=\"C:\\\\WINDOWS\\\\System32\\\\win32u.dll\",host-name=\"C:\\\\WINDOWS\\\\System32\\\\win32u.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ff986421000\",to=\"0x00007ff986440014\"}]\r\n"},"seq":351}
1: (3745) ->=library-loaded,id="C:\\WINDOWS\\System32\\win32u.dll",target-name="C:\\WINDOWS\\System32\\win32u.dll",host-name="C:\\WINDOWS\\System32\\win32u.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ff986421000",to="0x00007ff986440014"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3746) ->=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=\"0x00007ff988a51000\",to=\"0x00007ff988a75540\"}]\r\n"},"seq":353}
1: (3746) ->=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="0x00007ff988a51000",to="0x00007ff988a75540"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3749) ->=library-loaded,id=\"C:\\\\WINDOWS\\\\System32\\\\gdi32full.dll\",target-name=\"C:\\\\WINDOWS\\\\System32\\\\gdi32full.dll\",host-name=\"C:\\\\WINDOWS\\\\System32\\\\gdi32full.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ff986281000\",to=\"0x00007ff986415cac\"}]\r\n"},"seq":355}
1: (3749) ->=library-loaded,id="C:\\WINDOWS\\System32\\gdi32full.dll",target-name="C:\\WINDOWS\\System32\\gdi32full.dll",host-name="C:\\WINDOWS\\System32\\gdi32full.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ff986281000",to="0x00007ff986415cac"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3750) ->=library-loaded,id=\"C:\\\\WINDOWS\\\\System32\\\\msvcp_win.dll\",target-name=\"C:\\\\WINDOWS\\\\System32\\\\msvcp_win.dll\",host-name=\"C:\\\\WINDOWS\\\\System32\\\\msvcp_win.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ff9860c1000\",to=\"0x00007ff98615d7e0\"}]\r\n"},"seq":357}
1: (3750) ->=library-loaded,id="C:\\WINDOWS\\System32\\msvcp_win.dll",target-name="C:\\WINDOWS\\System32\\msvcp_win.dll",host-name="C:\\WINDOWS\\System32\\msvcp_win.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ff9860c1000",to="0x00007ff98615d7e0"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (3751) ->=library-loaded,id=\"C:\\\\WINDOWS\\\\System32\\\\ucrtbase.dll\",target-name=\"C:\\\\WINDOWS\\\\System32\\\\ucrtbase.dll\",host-name=\"C:\\\\WINDOWS\\\\System32\\\\ucrtbase.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ff986181000\",to=\"0x00007ff986279a94\"}]\r\n"},"seq":359}
1: (3751) ->=library-loaded,id="C:\\WINDOWS\\System32\\ucrtbase.dll",target-name="C:\\WINDOWS\\System32\\ucrtbase.dll",host-name="C:\\WINDOWS\\System32\\ucrtbase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ff986181000",to="0x00007ff986279a94"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4111) ->1014^running\r\n"},"seq":361}
1: (4111) ->1014^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4111) 1014: elapsed time 466\r\n"},"seq":363}
1: (4111) 1014: elapsed time 466
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4111) ->*running,thread-id=\"all\"\r\n"},"seq":365}
1: (4111) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4112) ->(gdb)\r\n"},"seq":367}
1: (4112) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4126) ->=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=\"0x00007ff987271000\",to=\"0x00007ff98729d0d8\"}]\r\n"},"seq":369}
1: (4126) ->=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="0x00007ff987271000",to="0x00007ff98729d0d8"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4133) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000000401563\",func=\"main()\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\",thread-groups=[\"i1\"],times=\"1\",original-location=\"main\"}\r\n"},"seq":371}
1: (4133) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000401563",func="main()",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5",thread-groups=["i1"],times="1",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4135) ->~\"\\n\"\r\n"},"seq":373}
1: (4135) ->~"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4137) ->~\"Thread 1 hit Breakpoint 1, main () at c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp:5\\n\"\r\n"},"seq":375}
1: (4137) ->~"Thread 1 hit Breakpoint 1, main () at c:\\Users\\limin\\Desktop\\C++Code\\1.cpp:5\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4138) ->~\"5\\t    string s = \\\"aaa\\\";\\n\"\r\n"},"seq":377}
1: (4138) ->~"5\t    string s = \"aaa\";\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4139) ->*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"1\",frame={addr=\"0x0000000000401563\",func=\"main\",args=[],file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\"},thread-id=\"1\",stopped-threads=\"all\"\r\n"},"seq":379}
1: (4139) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0000000000401563",func="main",args=[],file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5"},thread-id="1",stopped-threads="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4143) ->(gdb)\r\n"},"seq":381}
1: (4143) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"\n"},"seq":383}

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4146) ->&\"\\n\"\r\n"},"seq":385}
1: (4146) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Thread 1 hit Breakpoint 1, main () at c:\\Users\\limin\\Desktop\\C++Code\\1.cpp:5\n"},"seq":387}
Thread 1 hit Breakpoint 1, main () at c:\Users\limin\Desktop\C++Code\1.cpp:5
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"5\t    string s = \"aaa\";\n"},"seq":389}
5       string s = "aaa";
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4152) ->^done\r\n"},"seq":391}
1: (4152) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4155) ->(gdb)\r\n"},"seq":393}
1: (4155) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4157) ->1015^done,threads=[{id=\"1\",target-id=\"Thread 12080.0x4c04\",frame={level=\"0\",addr=\"0x0000000000401563\",func=\"main\",args=[],file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\"},state=\"stopped\"}]\r\n"},"seq":395}
1: (4157) ->1015^done,threads=[{id="1",target-id="Thread 12080.0x4c04",frame={level="0",addr="0x0000000000401563",func="main",args=[],file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4159) ->(gdb)\r\n"},"seq":397}
1: (4159) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4160) ->&\"\\n\"\r\n"},"seq":399}
1: (4160) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4160) ->^done\r\n"},"seq":401}
1: (4160) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4160) ->(gdb)\r\n"},"seq":403}
1: (4160) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4161) ->1016^done,threads=[{id=\"2\",target-id=\"Thread 12080.0x1470\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"}]\r\n"},"seq":405}
1: (4161) ->1016^done,threads=[{id="2",target-id="Thread 12080.0x1470",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4161) ->(gdb)\r\n"},"seq":407}
1: (4161) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4162) ->&\"\\n\"\r\n"},"seq":409}
1: (4162) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4162) ->^done\r\n"},"seq":411}
1: (4162) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4163) ->(gdb)\r\n"},"seq":413}
1: (4163) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4164) ->1017^done,threads=[{id=\"3\",target-id=\"Thread 12080.0x37d4\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"}]\r\n"},"seq":415}
1: (4164) ->1017^done,threads=[{id="3",target-id="Thread 12080.0x37d4",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4164) ->(gdb)\r\n"},"seq":417}
1: (4164) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4164) ->&\"\\n\"\r\n"},"seq":419}
1: (4164) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4165) ->^done\r\n"},"seq":421}
1: (4165) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4165) ->(gdb)\r\n"},"seq":423}
1: (4165) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4165) ->1018^done,threads=[{id=\"4\",target-id=\"Thread 12080.0x3084\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"}]\r\n"},"seq":425}
1: (4165) ->1018^done,threads=[{id="4",target-id="Thread 12080.0x3084",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4165) ->(gdb)\r\n"},"seq":427}
1: (4165) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4167) ->&\"\\n\"\r\n"},"seq":429}
1: (4167) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4168) ->^done\r\n"},"seq":431}
1: (4168) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4168) ->(gdb)\r\n"},"seq":433}
1: (4168) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4197) <-1019-thread-info\r\n"},"seq":435}
1: (4197) <-1019-thread-info
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4201) ->1019^done,threads=[{id=\"1\",target-id=\"Thread 12080.0x4c04\",frame={level=\"0\",addr=\"0x0000000000401563\",func=\"main\",args=[],file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\"},state=\"stopped\"},{id=\"2\",target-id=\"Thread 12080.0x1470\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"3\",target-id=\"Thread 12080.0x37d4\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"},{id=\"4\",target-id=\"Thread 12080.0x3084\",frame={level=\"0\",addr=\"0x00007ff9891dfa04\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\"},state=\"stopped\"}],current-thread-id=\"1\"\r\n"},"seq":437}
1: (4201) ->1019^done,threads=[{id="1",target-id="Thread 12080.0x4c04",frame={level="0",addr="0x0000000000401563",func="main",args=[],file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5"},state="stopped"},{id="2",target-id="Thread 12080.0x1470",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"},{id="3",target-id="Thread 12080.0x37d4",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"},{id="4",target-id="Thread 12080.0x3084",frame={level="0",addr="0x00007ff9891dfa04",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="C:\\WINDOWS\\SYSTEM32\\ntdll.dll"},state="stopped"}],current-thread-id="1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4202) ->(gdb)\r\n"},"seq":439}
1: (4202) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4203) ->&\"\\n\"\r\n"},"seq":441}
1: (4203) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4204) ->^done\r\n"},"seq":443}
1: (4204) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4204) ->(gdb)\r\n"},"seq":445}
1: (4204) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4205) 1015: elapsed time 536\r\n"},"seq":447}
1: (4205) 1015: elapsed time 536
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4210) Send Event AD7ProcessInfoUpdatedEvent\r\n"},"seq":449}
1: (4210) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4210) Send Event AD7ThreadCreateEvent\r\n"},"seq":451}
1: (4210) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":1},"seq":453}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4228) 1016: elapsed time 529\r\n"},"seq":455}
1: (4228) 1016: elapsed time 529
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4228) Send Event AD7ThreadCreateEvent\r\n"},"seq":457}
1: (4228) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":2},"seq":459}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4229) 1017: elapsed time 521\r\n"},"seq":461}
1: (4229) 1017: elapsed time 521
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4229) Send Event AD7ThreadCreateEvent\r\n"},"seq":463}
1: (4229) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":3},"seq":465}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4230) 1018: elapsed time 514\r\n"},"seq":467}
1: (4230) 1018: elapsed time 514
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4230) Send Event AD7ThreadCreateEvent\r\n"},"seq":469}
1: (4230) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":4},"seq":471}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4230) 1019: elapsed time 33\r\n"},"seq":473}
1: (4230) 1019: elapsed time 33
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4251) <-1020-interpreter-exec console \"info sharedlibrary\"\r\n"},"seq":475}
1: (4251) <-1020-interpreter-exec console "info sharedlibrary"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4265) ->~\"From                To                  Syms Read   Shared Object Library\\n\"\r\n"},"seq":477}
1: (4265) ->~"From                To                  Syms Read   Shared Object Library\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4265) ->~\"0x00007ff989141000  0x00007ff98932f528  Yes         C:\\\\WINDOWS\\\\SYSTEM32\\\\ntdll.dll\\n\"\r\n"},"seq":479}
1: (4265) ->~"0x00007ff989141000  0x00007ff98932f528  Yes         C:\\WINDOWS\\SYSTEM32\\ntdll.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4266) ->~\"0x00007ff987a01000  0x00007ff987ab124c  Yes         C:\\\\WINDOWS\\\\System32\\\\kernel32.dll\\n\"\r\n"},"seq":481}
1: (4266) ->~"0x00007ff987a01000  0x00007ff987ab124c  Yes         C:\\WINDOWS\\System32\\kernel32.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4266) ->~\"0x00007ff9864b1000  0x00007ff9867537e4  Yes         C:\\\\WINDOWS\\\\System32\\\\KernelBase.dll\\n\"\r\n"},"seq":483}
1: (4266) ->~"0x00007ff9864b1000  0x00007ff9867537e4  Yes         C:\\WINDOWS\\System32\\KernelBase.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4267) ->~\"0x00007ff987881000  0x00007ff98791d4a4  Yes         C:\\\\WINDOWS\\\\System32\\\\msvcrt.dll\\n\"\r\n"},"seq":485}
1: (4267) ->~"0x00007ff987881000  0x00007ff98791d4a4  Yes         C:\\WINDOWS\\System32\\msvcrt.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4267) ->~\"0x0000000061441000  0x000000006145a064  Yes         E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\opt\\\\bin\\\\libgcc_s_seh-1.dll\\n\"\r\n"},"seq":487}
1: (4267) ->~"0x0000000061441000  0x000000006145a064  Yes         E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\opt\\bin\\libgcc_s_seh-1.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4267) ->~\"0x000000006fc41000  0x000000006fda3c8c  Yes         E:\\\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\\\mingw64\\\\bin\\\\libstdc++-6.dll\\n\"\r\n"},"seq":489}
1: (4267) ->~"0x000000006fc41000  0x000000006fda3c8c  Yes         E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\libstdc++-6.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4268) ->~\"0x00007ff988161000  0x00007ff9882f3414  Yes         C:\\\\WINDOWS\\\\System32\\\\user32.dll\\n\"\r\n"},"seq":491}
1: (4268) ->~"0x00007ff988161000  0x00007ff9882f3414  Yes         C:\\WINDOWS\\System32\\user32.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4268) ->~\"0x00007ff986421000  0x00007ff986440014  Yes         C:\\\\WINDOWS\\\\System32\\\\win32u.dll\\n\"\r\n"},"seq":493}
1: (4268) ->~"0x00007ff986421000  0x00007ff986440014  Yes         C:\\WINDOWS\\System32\\win32u.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4270) ->~\"0x00007ff988a51000  0x00007ff988a75540  Yes         C:\\\\WINDOWS\\\\System32\\\\gdi32.dll\\n\"\r\n"},"seq":495}
1: (4270) ->~"0x00007ff988a51000  0x00007ff988a75540  Yes         C:\\WINDOWS\\System32\\gdi32.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4271) ->~\"0x00007ff986281000  0x00007ff986415cac  Yes         C:\\\\WINDOWS\\\\System32\\\\gdi32full.dll\\n\"\r\n"},"seq":497}
1: (4271) ->~"0x00007ff986281000  0x00007ff986415cac  Yes         C:\\WINDOWS\\System32\\gdi32full.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4271) ->~\"0x00007ff9860c1000  0x00007ff98615d7e0  Yes         C:\\\\WINDOWS\\\\System32\\\\msvcp_win.dll\\n\"\r\n"},"seq":499}
1: (4271) ->~"0x00007ff9860c1000  0x00007ff98615d7e0  Yes         C:\\WINDOWS\\System32\\msvcp_win.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4272) ->~\"0x00007ff986181000  0x00007ff986279a94  Yes         C:\\\\WINDOWS\\\\System32\\\\ucrtbase.dll\\n\"\r\n"},"seq":501}
1: (4272) ->~"0x00007ff986181000  0x00007ff986279a94  Yes         C:\\WINDOWS\\System32\\ucrtbase.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4273) ->~\"0x00007ff987271000  0x00007ff98729d0d8  Yes         C:\\\\WINDOWS\\\\System32\\\\imm32.dll\\n\"\r\n"},"seq":503}
1: (4273) ->~"0x00007ff987271000  0x00007ff98729d0d8  Yes         C:\\WINDOWS\\System32\\imm32.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4273) ->1020^done\r\n"},"seq":505}
1: (4273) ->1020^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4273) 1020: elapsed time 22\r\n"},"seq":507}
1: (4273) 1020: elapsed time 22
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4274) ->(gdb)\r\n"},"seq":509}
1: (4274) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4275) ->&\"\\n\"\r\n"},"seq":511}
1: (4275) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4275) ->^done\r\n"},"seq":513}
1: (4275) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4276) ->(gdb)\r\n"},"seq":515}
1: (4276) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4279) Send Event AD7ModuleLoadEvent\r\n"},"seq":517}
1: (4279) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\SYSTEM32\\ntdll.dll'. Symbols loaded.\r\n"},"seq":519}
Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4282) Send Event AD7ModuleLoadEvent\r\n"},"seq":521}
1: (4282) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\kernel32.dll'. Symbols loaded.\r\n"},"seq":523}
Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4282) Send Event AD7ModuleLoadEvent\r\n"},"seq":525}
1: (4282) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\KernelBase.dll'. Symbols loaded.\r\n"},"seq":527}
Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4283) Send Event AD7ModuleLoadEvent\r\n"},"seq":529}
1: (4283) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\msvcrt.dll'. Symbols loaded.\r\n"},"seq":531}
Loaded 'C:\WINDOWS\System32\msvcrt.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4283) Send Event AD7ModuleLoadEvent\r\n"},"seq":533}
1: (4283) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\opt\\bin\\libgcc_s_seh-1.dll'. Symbols loaded.\r\n"},"seq":535}
Loaded 'E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\opt\bin\libgcc_s_seh-1.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4283) Send Event AD7ModuleLoadEvent\r\n"},"seq":537}
1: (4283) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'E:\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\libstdc++-6.dll'. Symbols loaded.\r\n"},"seq":539}
Loaded 'E:\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\libstdc++-6.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4284) Send Event AD7ModuleLoadEvent\r\n"},"seq":541}
1: (4284) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\user32.dll'. Symbols loaded.\r\n"},"seq":543}
Loaded 'C:\WINDOWS\System32\user32.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4284) Send Event AD7ModuleLoadEvent\r\n"},"seq":545}
1: (4284) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\win32u.dll'. Symbols loaded.\r\n"},"seq":547}
Loaded 'C:\WINDOWS\System32\win32u.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4284) Send Event AD7ModuleLoadEvent\r\n"},"seq":549}
1: (4284) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\gdi32.dll'. Symbols loaded.\r\n"},"seq":551}
Loaded 'C:\WINDOWS\System32\gdi32.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4285) Send Event AD7ModuleLoadEvent\r\n"},"seq":553}
1: (4285) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\gdi32full.dll'. Symbols loaded.\r\n"},"seq":555}
Loaded 'C:\WINDOWS\System32\gdi32full.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4295) Send Event AD7ModuleLoadEvent\r\n"},"seq":557}
1: (4295) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\msvcp_win.dll'. Symbols loaded.\r\n"},"seq":559}
Loaded 'C:\WINDOWS\System32\msvcp_win.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4295) Send Event AD7ModuleLoadEvent\r\n"},"seq":561}
1: (4295) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\ucrtbase.dll'. Symbols loaded.\r\n"},"seq":563}
Loaded 'C:\WINDOWS\System32\ucrtbase.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4296) Send Event AD7ModuleLoadEvent\r\n"},"seq":565}
1: (4296) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\WINDOWS\\System32\\imm32.dll'. Symbols loaded.\r\n"},"seq":567}
Loaded 'C:\WINDOWS\System32\imm32.dll'. Symbols loaded.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4314) <-1021-stack-list-frames 0 1000\r\n"},"seq":569}
1: (4314) <-1021-stack-list-frames 0 1000
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4322) ->1021^done,stack=[frame={level=\"0\",addr=\"0x0000000000401563\",func=\"main\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"5\"}]\r\n"},"seq":571}
1: (4322) ->1021^done,stack=[frame={level="0",addr="0x0000000000401563",func="main",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="5"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4322) ->(gdb)\r\n"},"seq":573}
1: (4322) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4323) 1021: elapsed time 9\r\n"},"seq":575}
1: (4323) 1021: elapsed time 9
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4323) ->&\"\\n\"\r\n"},"seq":577}
1: (4323) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4323) ->^done\r\n"},"seq":579}
1: (4323) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4324) ->(gdb)\r\n"},"seq":581}
1: (4324) ->(gdb)
<--   C (threads-8): {"command":"threads","type":"request","seq":8}
--> R (threads-8): {"type":"response","request_seq":8,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"},{"id":3,"name":"Thread #3"},{"id":4,"name":"Thread #4"}]},"seq":584}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4348) <-1022-break-delete 1\r\n"},"seq":586}
1: (4348) <-1022-break-delete 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4354) ->1022^done\r\n"},"seq":588}
1: (4354) ->1022^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4355) 1022: elapsed time 7\r\n"},"seq":590}
1: (4355) 1022: elapsed time 7
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4357) Send Event AD7EntryPointEvent\r\n"},"seq":592}
1: (4357) Send Event AD7EntryPointEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4360) ->(gdb)\r\n"},"seq":594}
1: (4360) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4365) <--exec-continue\r\n"},"seq":596}
1: (4365) <--exec-continue
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4365) ->&\"\\n\"\r\n"},"seq":598}
1: (4365) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4368) ->^done\r\n"},"seq":600}
1: (4368) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4368) ->(gdb)\r\n"},"seq":602}
1: (4368) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4371) ->^running\r\n"},"seq":604}
1: (4371) ->^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4373) ->*running,thread-id=\"all\"\r\n"},"seq":606}
1: (4373) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4373) ->(gdb)\r\n"},"seq":608}
1: (4373) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4374) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000000004015bf\",func=\"main()\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"8\",thread-groups=[\"i1\"],times=\"1\",original-location=\"1.cpp:8\"}\r\n"},"seq":610}
1: (4374) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004015bf",func="main()",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="8",thread-groups=["i1"],times="1",original-location="1.cpp:8"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4376) ->~\"\\n\"\r\n"},"seq":612}
1: (4376) ->~"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4376) ->~\"Thread 1 hit Breakpoint 2, main () at c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp:8\\n\"\r\n"},"seq":614}
1: (4376) ->~"Thread 1 hit Breakpoint 2, main () at c:\\Users\\limin\\Desktop\\C++Code\\1.cpp:8\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4377) ->~\"8\\t        cout<<s[i]<<endl;\\n\"\r\n"},"seq":616}
1: (4377) ->~"8\t        cout<<s[i]<<endl;\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4379) <-1023-symbol-list-lines c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\r\n"},"seq":618}
1: (4379) <-1023-symbol-list-lines c:\\Users\\limin\\Desktop\\C++Code\\1.cpp
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4383) ->*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"2\",frame={addr=\"0x00000000004015bf\",func=\"main\",args=[],file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"8\"},thread-id=\"1\",stopped-threads=\"all\"\r\n"},"seq":620}
1: (4383) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x00000000004015bf",func="main",args=[],file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="8"},thread-id="1",stopped-threads="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4384) ->(gdb)\r\n"},"seq":622}
1: (4384) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"\n"},"seq":624}

--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Thread 1 hit Breakpoint 2, main () at c:\\Users\\limin\\Desktop\\C++Code\\1.cpp:8\n"},"seq":626}
Thread 1 hit Breakpoint 2, main () at c:\Users\limin\Desktop\C++Code\1.cpp:8
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"8\t        cout<<s[i]<<endl;\n"},"seq":628}
8           cout<<s[i]<<endl;
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4387) ->&\"\\n\"\r\n"},"seq":630}
1: (4387) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4389) ->^done\r\n"},"seq":632}
1: (4389) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4390) ->(gdb)\r\n"},"seq":634}
1: (4390) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4390) ->1023^done,lines=[{pc=\"0x0000000000401550\",line=\"4\"},{pc=\"0x000000000040155e\",line=\"4\"},{pc=\"0x0000000000401563\",line=\"5\"},{pc=\"0x0000000000401595\",line=\"6\"},{pc=\"0x000000000040159c\",line=\"7\"},{pc=\"0x00000000004015bf\",line=\"8\"},{pc=\"0x00000000004015f4\",line=\"7\"},{pc=\"0x00000000004015fa\",line=\"10\"},{pc=\"0x00000000004015ff\",line=\"5\"},{pc=\"0x0000000000401643\",line=\"11\"},{pc=\"0x000000000040164a\",line=\"0\"},{pc=\"0x0000000000401665\",line=\"11\"},{pc=\"0x0000000000401673\",line=\"11\"},{pc=\"0x0000000000401682\",line=\"0\"},{pc=\"0x000000000040169a\",line=\"11\"},{pc=\"0x00000000004016a1\",line=\"11\"},{pc=\"0x00000000004016a9\",line=\"11\"},{pc=\"0x00000000004016bf\",line=\"0\"}]\r\n"},"seq":636}
1: (4390) ->1023^done,lines=[{pc="0x0000000000401550",line="4"},{pc="0x000000000040155e",line="4"},{pc="0x0000000000401563",line="5"},{pc="0x0000000000401595",line="6"},{pc="0x000000000040159c",line="7"},{pc="0x00000000004015bf",line="8"},{pc="0x00000000004015f4",line="7"},{pc="0x00000000004015fa",line="10"},{pc="0x00000000004015ff",line="5"},{pc="0x0000000000401643",line="11"},{pc="0x000000000040164a",line="0"},{pc="0x0000000000401665",line="11"},{pc="0x0000000000401673",line="11"},{pc="0x0000000000401682",line="0"},{pc="0x000000000040169a",line="11"},{pc="0x00000000004016a1",line="11"},{pc="0x00000000004016a9",line="11"},{pc="0x00000000004016bf",line="0"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4391) 1023: elapsed time 11\r\n"},"seq":638}
1: (4391) 1023: elapsed time 11
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4391) ->(gdb)\r\n"},"seq":640}
1: (4391) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4391) <-1024-stack-list-frames 0 1000\r\n"},"seq":642}
1: (4391) <-1024-stack-list-frames 0 1000
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4391) ->&\"\\n\"\r\n"},"seq":644}
1: (4391) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4392) ->^done\r\n"},"seq":646}
1: (4392) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4392) ->(gdb)\r\n"},"seq":648}
1: (4392) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4401) ->1024^done,stack=[frame={level=\"0\",addr=\"0x00000000004015bf\",func=\"main\",file=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",fullname=\"c:\\\\Users\\\\limin\\\\Desktop\\\\C++Code\\\\1.cpp\",line=\"8\"}]\r\n"},"seq":650}
1: (4401) ->1024^done,stack=[frame={level="0",addr="0x00000000004015bf",func="main",file="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",fullname="c:\\Users\\limin\\Desktop\\C++Code\\1.cpp",line="8"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4401) 1024: elapsed time 9\r\n"},"seq":652}
1: (4401) 1024: elapsed time 9
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4402) ->(gdb)\r\n"},"seq":654}
1: (4402) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4402) ->&\"\\n\"\r\n"},"seq":656}
1: (4402) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4402) ->^done\r\n"},"seq":658}
1: (4402) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4402) ->(gdb)\r\n"},"seq":660}
1: (4402) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4408) Send Event AD7BreakpointEvent\r\n"},"seq":662}
1: (4408) Send Event AD7BreakpointEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Execute debugger commands using \"-exec <command>\", for example \"-exec info registers\" will list registers in use (when GDB is the debugger)\r\n"},"seq":664}
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
--> E (stopped): {"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":1,"allThreadsStopped":true,"source":{"name":"1.cpp","path":"c:\\Users\\limin\\Desktop\\C++Code\\1.cpp","sources":[],"checksums":[]},"line":8,"column":1},"seq":666}
<--   C (threads-9): {"command":"threads","type":"request","seq":9}
--> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"},{"id":3,"name":"Thread #3"},{"id":4,"name":"Thread #4"}]},"seq":669}
<--   C (stackTrace-10): {"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request","seq":10}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4588) <-1025-stack-list-arguments 0 0 0\r\n"},"seq":672}
1: (4588) <-1025-stack-list-arguments 0 0 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4592) ->1025^done,stack-args=[frame={level=\"0\",args=[]}]\r\n"},"seq":674}
1: (4592) ->1025^done,stack-args=[frame={level="0",args=[]}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4592) 1025: elapsed time 3\r\n"},"seq":676}
1: (4592) 1025: elapsed time 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4593) ->(gdb)\r\n"},"seq":678}
1: (4593) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4596) ->&\"\\n\"\r\n"},"seq":681}
1: (4596) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4597) ->^done\r\n"},"seq":683}
1: (4597) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4598) ->(gdb)\r\n"},"seq":685}
1: (4598) ->(gdb)
--> R (stackTrace-10): {"type":"response","request_seq":10,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"main()","source":{"name":"1.cpp","path":"c:\\Users\\limin\\Desktop\\C++Code\\1.cpp","sources":[],"checksums":[]},"line":8,"column":1}],"totalFrames":1},"seq":680}
<--   C (evaluate-11): {"command":"evaluate","arguments":{"expression":"s[1]","frameId":1000,"context":"watch"},"type":"request","seq":11}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (4810) <-1026-var-create - * \"s[1]\"\r\n"},"seq":689}
1: (4810) <-1026-var-create - * "s[1]"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7843) Shell exited, stop debugging\r\n"},"seq":691}
1: (7843) Shell exited, stop debugging
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/DebuggerAborted","data":{"VS.Diagnostics.Debugger.MIEngine.DebuggerName":"GDB","VS.Diagnostics.Debugger.MIEngine.LastSentCommandName":"-var-create"}},"seq":693}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7859) Send Event AD7MessageEvent\r\n"},"seq":695}
1: (7859) Send Event AD7MessageEvent
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: GDB exited unexpectedly. Debugging will now abort.\r\n"},"seq":698}
ERROR: GDB exited unexpectedly. Debugging will now abort.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7862) Send Event AD7ProgramDestroyEvent\r\n"},"seq":700}
1: (7862) Send Event AD7ProgramDestroyEvent
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Evaluate","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"16.5.10630.1","VS.Diagnostics.Debugger.HostVersion":"16.5.10630.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Evaluate.Duration":3095.0,"VS.Diagnostics.Debugger.Evaluate.IsError":true}},"seq":697}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program 'c:\\Users\\limin\\Desktop\\C++Code\\1.exe' has exited with code -1 (0xffffffff).\r\n\r\n"},"seq":702}
The program 'c:\Users\limin\Desktop\C++Code\1.exe' has exited with code -1 (0xffffffff).
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"16.5.10630.1","VS.Diagnostics.Debugger.HostVersion":"16.5.10630.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":1}},"seq":705}
--> R (evaluate-11): {"type":"response","request_seq":11,"success":true,"command":"evaluate","body":{"result":"Error: GDB exited unexpectedly.","variablesReference":0},"seq":707}
--> E (exited): {"type":"event","event":"exited","body":{"exitCode":-1},"seq":709}
--> E (terminated): {"type":"event","event":"terminated","body":{},"seq":711}
<--   C (scopes-12): {"command":"scopes","arguments":{"frameId":1000},"type":"request","seq":12}
--> R (scopes-12): {"type":"response","request_seq":12,"success":true,"command":"scopes","body":{"scopes":[]},"seq":714}
<--   C (disconnect-13): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":13}
--> R (disconnect-13): {"type":"response","request_seq":13,"success":true,"command":"disconnect","body":{},"seq":717}
WardenGnaw commented 4 years ago

This looks like a bug with this version of gdb (8.1 for x86_64-w64-mingw32). Can you try updating the version of gdb or retrieving a different version?

justKidrauhl commented 4 years ago

I tried to debug with the GDB command line, it exited normally.

(gdb) i b
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   0x00000000004015bf in main() at c:\Users\limin\Desktop\C++Code\1.cpp:8
(gdb) r
Starting program: C:\Users\limin\Desktop\C++Code\1.exe
[New Thread 13536.0x31ac]
[New Thread 13536.0x13f4]
[New Thread 13536.0x36c0]
[New Thread 13536.0x1c74]

Thread 1 hit Breakpoint 1, main () at c:\Users\limin\Desktop\C++Code\1.cpp:8
8               cout<<s[i]<<endl;
(gdb) n
a
7           for(int i = 0; i < s.length(); ++i) {
(gdb) n

Thread 1 hit Breakpoint 1, main () at c:\Users\limin\Desktop\C++Code\1.cpp:8
8               cout<<s[i]<<endl;
(gdb) n
a
7           for(int i = 0; i < s.length(); ++i) {
(gdb) n

Thread 1 hit Breakpoint 1, main () at c:\Users\limin\Desktop\C++Code\1.cpp:8
8               cout<<s[i]<<endl;
(gdb) n
a
7           for(int i = 0; i < s.length(); ++i) {
(gdb) n
10          return 0;
(gdb) n
5           string s = "aaa";
(gdb) s
11      }(gdb) s
0x00000000004013c7 in __tmainCRTStartup ()
(gdb) s
Single stepping until exit from function __tmainCRTStartup,
which has no line number information.
[Thread 13536.0x36c0 exited with code 0]
[Thread 13536.0x13f4 exited with code 0]
[Thread 13536.0x1c74 exited with code 0]
[Inferior 1 (process 13536) exited normally]
justKidrauhl commented 4 years ago

I figure out that it's a bug with my gdb. https://stackoverflow.com/questions/62782459/gdb-exited-unexpectedly-when-debugging-with-vscode I don't know how to fix it, but I suppose it has nothing to do with vscode/cpptools. So, this issue can be closed. Thanks a lot for your reply!

WardenGnaw commented 4 years ago

@justKidrauhl Sorry, I should have clarified. The issue in GDB is the -var-create - * "s[1]" which is just evaluate s[1] in GDB CLI.

The MinGW-x64 version from this documentation should work: https://code.visualstudio.com/docs/cpp/config-mingw#_prerequisites

lzy20110519 commented 1 year ago

I also encountered this issue: when I tried to use the 'Monitor Expression' feature of VSCode, it prompted 'ERROR: GDB exited unexpectedly. Debugging will now abort.', but everything else was working properly