Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging application modifies arguments when passing an ISO 8601 compliant string #13241

Open
stertingen opened this issue Feb 6, 2025 · 2 comments
Labels
bug debugger help wanted Can be fixed in the public (open source) repo.

Comments

@stertingen
Copy link

Environment

  • OS and version: Windows 11 (Version 10.0.26100 Build 26100)
  • VS Code:
Version: 1.96.4 (system setup)
Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
Date: 2025-01-16T00:16:19.038Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100
  • C/C++ extension: 1.23.5
  • OS and version of remote machine (if applicable): WSL 2 with Ubuntu 24.04.1 LTS
  • GDB / LLDB version: GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git

Bug Summary and Steps to Reproduce

Bug Summary: When debugging an application, VS code modifies arguments containing ISO 8601 compliant strings passed to main().

Steps to reproduce:

  1. Create argprinter.c
#include <stdio.h>

int main(int argc, char ** argv) {
    for (int i = 0; i < argc; ++i) {
        puts(argv[i]);
    }
}
  1. Build argprinter: gcc argprinter.c -o argprinter
  2. Run argprinter with debugger as configured in launch.json
  3. Observe stdout

Debugger Configurations

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/argprinter",
            "args": [
                "2022-01-03T03:00:00+01:00",
            ],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ],
            "logging": {
                "engineLogging": true,
                "trace": true,
                "traceResponse": true
            }
        }
    ]
}

Debugger Logs

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (82) LaunchOptions{\"name\":\"(gdb) Launch\",\"type\":\"cppdbg\",\"request\":\"launch\",\"program\":\"/home/kleist/git/argprinter/argprinter\",\"args\":[\"2022-01-03T03:00:00+01:00\"],\"stopAtEntry\":false,\"cwd\":\"/home/kleist/git/argprinter/.vscode\",\"environment\":[],\"externalConsole\":false,\"MIMode\":\"gdb\",\"setupCommands\":[{\"description\":\"Enable pretty-printing for gdb\",\"text\":\"-enable-pretty-printing\",\"ignoreFailures\":true},{\"description\":\"Set Disassembly Flavor to Intel\",\"text\":\"-gdb-set disassembly-flavor intel\",\"ignoreFailures\":true}],\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"__configurationTarget\":6,\"__sessionId\":\"15ce8a4a-e141-4d6e-b5a1-b70ae1a1fdde\"}\n"},"seq":2}
1: (82) LaunchOptions{"name":"(gdb) Launch","type":"cppdbg","request":"launch","program":"/home/kleist/git/argprinter/argprinter","args":["2022-01-03T03:00:00+01:00"],"stopAtEntry":false,"cwd":"/home/kleist/git/argprinter/.vscode","environment":[],"externalConsole":false,"MIMode":"gdb","setupCommands":[{"description":"Enable pretty-printing for gdb","text":"-enable-pretty-printing","ignoreFailures":true},{"description":"Set Disassembly Flavor to Intel","text":"-gdb-set disassembly-flavor intel","ignoreFailures":true}],"logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":6,"__sessionId":"15ce8a4a-e141-4d6e-b5a1-b70ae1a1fdde"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (139) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb ; cd \"/home/kleist/git/argprinter\" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm \"/tmp/Microsoft-MIEngine-In-ipluugeg.x5s\" \"/tmp/Microsoft-MIEngine-Out-5t5xvl2m.2qy\" \"/tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb\" \"/tmp/Microsoft-MIEngine-Cmd-1k0kpsnu.v5n\"' EXIT ; \"/usr/bin/gdb\" --interpreter=mi --tty=$DbgTerm < \"/tmp/Microsoft-MIEngine-In-ipluugeg.x5s\" > \"/tmp/Microsoft-MIEngine-Out-5t5xvl2m.2qy\" & clear; pid=$! ; echo $pid > \"/tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb\" ; wait $pid; \n"},"seq":4}
1: (139) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb ; cd "/home/kleist/git/argprinter" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm "/tmp/Microsoft-MIEngine-In-ipluugeg.x5s" "/tmp/Microsoft-MIEngine-Out-5t5xvl2m.2qy" "/tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb" "/tmp/Microsoft-MIEngine-Cmd-1k0kpsnu.v5n"' EXIT ; "/usr/bin/gdb" --interpreter=mi --tty=$DbgTerm < "/tmp/Microsoft-MIEngine-In-ipluugeg.x5s" > "/tmp/Microsoft-MIEngine-Out-5t5xvl2m.2qy" & clear; pid=$! ; echo $pid > "/tmp/Microsoft-MIEngine-Pid-tb4o0lbt.lvb" ; wait $pid;
--> C (runInTerminal-6): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: argprinter","cwd":"","args":["/bin/sh","/tmp/Microsoft-MIEngine-Cmd-1k0kpsnu.v5n"],"env":{}},"seq":6}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (150) Wait for connection completion.\n"},"seq":8}
1: (150) Wait for connection completion.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (507) ->=thread-group-added,id=\"i1\"\n"},"seq":10}
1: (507) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (512) ->~\"GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git\\n\"\n"},"seq":12}
1: (512) ->~"GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (512) ->~\"Copyright (C) 2024 Free Software Foundation, Inc.\\n\"\n"},"seq":14}
1: (512) ->~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (513) ->~\"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.\"\n"},"seq":16}
1: (513) ->~"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."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (513) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\n"},"seq":18}
1: (513) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (513) ->~\"This GDB was configured as \\\"x86_64-linux-gnu\\\".\\n\"\n"},"seq":20}
1: (513) ->~"This GDB was configured as \"x86_64-linux-gnu\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (513) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\n"},"seq":22}
1: (513) ->~"Type \"show configuration\" for configuration details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (513) ->~\"For bug reporting instructions, please see:\\n\"\n"},"seq":24}
1: (513) ->~"For bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (514) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\n"},"seq":26}
1: (514) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (514) ->~\"Find the GDB manual and other documentation resources online at:\\n    <\"\n"},"seq":28}
1: (514) ->~"Find the GDB manual and other documentation resources online at:\n    <"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (514) ->~\"http://www.gnu.org/software/gdb/documentation/>.\\n\\n\"\n"},"seq":30}
1: (514) ->~"http://www.gnu.org/software/gdb/documentation/>.\n\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (514) ->~\"For help, type \\\"help\\\".\\n\"\n"},"seq":32}
1: (514) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (514) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\n"},"seq":34}
1: (514) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (515) ->(gdb)\n"},"seq":36}
1: (515) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (517) <-1001-gdb-set mi-async on\n"},"seq":38}
1: (517) <-1001-gdb-set mi-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (518) ->1001^done\n"},"seq":40}
1: (518) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (518) ->(gdb)\n"},"seq":42}
1: (518) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (520) 1001: elapsed time 3\n"},"seq":44}
1: (520) 1001: elapsed time 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) <-1002-enable-pretty-printing\n"},"seq":46}
1: (526) <-1002-enable-pretty-printing
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) ->1002^done\n"},"seq":48}
1: (526) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) ->(gdb)\n"},"seq":50}
1: (526) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) 1002: elapsed time 0\n"},"seq":52}
1: (526) 1002: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (527) <-1003-gdb-set disassembly-flavor intel\n"},"seq":54}
1: (527) <-1003-gdb-set disassembly-flavor intel
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (527) ->1003^done\n"},"seq":56}
1: (527) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (527) ->(gdb)\n"},"seq":58}
1: (527) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (527) 1003: elapsed time 0\n"},"seq":60}
1: (527) 1003: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (528) <-1004-interpreter-exec console \"set pagination off\"\n"},"seq":62}
1: (528) <-1004-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (528) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":64}
1: (528) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (528) ->1004^done\n"},"seq":66}
1: (528) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) ->(gdb)\n"},"seq":68}
1: (529) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) 1004: elapsed time 0\n"},"seq":70}
1: (529) 1004: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) <-1005-gdb-set auto-solib-add on\n"},"seq":72}
1: (529) <-1005-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) ->1005^done\n"},"seq":74}
1: (529) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) ->(gdb)\n"},"seq":76}
1: (529) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (529) 1005: elapsed time 0\n"},"seq":78}
1: (529) 1005: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (530) <-1006-gdb-set solib-search-path /home/kleist/git/argprinter:\n"},"seq":80}
1: (530) <-1006-gdb-set solib-search-path /home/kleist/git/argprinter:
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (530) ->1006^done\n"},"seq":82}
1: (530) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (531) ->(gdb)\n"},"seq":84}
1: (531) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (531) 1006: elapsed time 0\n"},"seq":86}
1: (531) 1006: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (531) <-1007-gdb-set stop-on-solib-events 1\n"},"seq":88}
1: (531) <-1007-gdb-set stop-on-solib-events 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (532) ->1007^done\n"},"seq":90}
1: (532) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (532) ->(gdb)\n"},"seq":92}
1: (532) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (532) 1007: elapsed time 0\n"},"seq":94}
1: (532) 1007: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (532) <-1008-environment-cd /home/kleist/git/argprinter/.vscode\n"},"seq":96}
1: (532) <-1008-environment-cd /home/kleist/git/argprinter/.vscode
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (532) ->1008^done\n"},"seq":98}
1: (532) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (533) ->(gdb)\n"},"seq":100}
1: (533) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (533) 1008: elapsed time 0\n"},"seq":102}
1: (533) 1008: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (533) <-1009-file-exec-and-symbols /home/kleist/git/argprinter/argprinter\n"},"seq":104}
1: (533) <-1009-file-exec-and-symbols /home/kleist/git/argprinter/argprinter
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (535) ->~\"\\nThis GDB supports auto-downloading debuginfo from the following URLs:\\n\"\n"},"seq":106}
1: (535) ->~"\nThis GDB supports auto-downloading debuginfo from the following URLs:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (535) ->~\"  <https://debuginfod.ubuntu.com>\\n\"\n"},"seq":108}
1: (535) ->~"  <https://debuginfod.ubuntu.com>\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (535) ->~\"Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]\\n\"\n"},"seq":110}
1: (535) ->~"Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (536) ->~\"Debuginfod has been disabled.\\nTo make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.\\n\"\n"},"seq":112}
1: (536) ->~"Debuginfod has been disabled.\nTo make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (536) ->1009^done\n"},"seq":114}
1: (536) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (536) ->(gdb)\n"},"seq":116}
1: (536) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (536) 1009: elapsed time 2\n"},"seq":118}
1: (536) 1009: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (537) <-1010-interpreter-exec console \"show architecture\"\n"},"seq":120}
1: (537) <-1010-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (538) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\n"},"seq":122}
1: (538) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (538) ->1010^done\n"},"seq":124}
1: (538) ->1010^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (538) ->(gdb)\n"},"seq":126}
1: (538) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (538) 1010: elapsed time 0\n"},"seq":128}
1: (538) 1010: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (540) <-1011-exec-arguments \"01/03/2022 03:00:00\"\n"},"seq":130}
1: (540) <-1011-exec-arguments "01/03/2022 03:00:00"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (540) ->1011^done\n"},"seq":132}
1: (540) ->1011^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (540) ->(gdb)\n"},"seq":134}
1: (540) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (540) 1011: elapsed time 0\n"},"seq":136}
1: (540) 1011: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (541) <-1012-break-insert -f main\n"},"seq":138}
1: (541) <-1012-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (541) ->1012^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000000001151\",at=\"<main+8>\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":140}
1: (541) ->1012^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000001151",at="<main+8>",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (541) ->(gdb)\n"},"seq":142}
1: (541) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (543) 1012: elapsed time 2\n"},"seq":144}
1: (543) 1012: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (547) Send Event AD7EngineCreateEvent\n"},"seq":146}
1: (547) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (549) Send Event AD7ProgramCreateEvent\n"},"seq":148}
1: (549) 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":"17.12.21003.1","VS.Diagnostics.Debugger.HostVersion":"17.12.21003.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":482,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"8.0.824.36612"}},"seq":150}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":152}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":154}
<--   R (runInTerminal-6) [414 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":5298}}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (568) ShellPid=7107\n"},"seq":157}
1: (568) ShellPid=7107
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (569) DebuggerPid=7109\n"},"seq":159}
1: (569) DebuggerPid=7109
<--   C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":162}
<--   C (setInstructionBreakpoints-5): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
--> R (setInstructionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":165}
<--   C (setExceptionBreakpoints-6): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":6}
--> R (setExceptionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setExceptionBreakpoints","body":{"breakpoints":[]},"seq":168}
<--   C (setDataBreakpoints-7): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":7}
--> R (setDataBreakpoints-7): {"type":"response","request_seq":7,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":171}
<--   C (configurationDone-8): {"command":"configurationDone","type":"request","seq":8}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (700) Send Event AD7LoadCompleteEvent\n"},"seq":175}
1: (700) Send Event AD7LoadCompleteEvent
--> R (configurationDone-8): {"type":"response","request_seq":8,"success":true,"command":"configurationDone","body":{},"seq":174}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git\nCopyright (C) 2024 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.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<https://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>.\n\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\nThis GDB supports auto-downloading debuginfo from the following URLs:\n  <https://debuginfod.ubuntu.com>\nEnable debuginfod for this session? (y or [n]) [answered N; input not from terminal]\nDebuginfod has been disabled.\nTo make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.\n"},"seq":178}
=thread-group-added,id="i1"
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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"

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
<--   C (threads-9): {"command":"threads","type":"request","seq":9}
--> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[]},"seq":181}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (709) <-1013-exec-run\n"},"seq":183}
1: (709) <-1013-exec-run
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (710) ->=thread-group-started,id=\"i1\",pid=\"7122\"\n"},"seq":185}
1: (710) ->=thread-group-started,id="i1",pid="7122"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (710) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":187}
1: (710) ->=thread-created,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (714) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000555555555151\",at=\"<main+8>\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":189}
1: (714) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000555555555151",at="<main+8>",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (714) <-1014-thread-info 1\n"},"seq":191}
1: (714) <-1014-thread-info 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (714) ->=library-loaded,id=\"/lib64/ld-linux-x86-64.so.2\",target-name=\"/lib64/ld-linux-x86-64.so.2\",host-name=\"/lib64/ld-linux-x86-64.so.2\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffff7fc6000\",to=\"0x00007ffff7ff0195\"}]\n"},"seq":193}
1: (714) ->=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7fc6000",to="0x00007ffff7ff0195"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (728) ->1013^running\n"},"seq":195}
1: (728) ->1013^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (728) ->*running,thread-id=\"all\"\n"},"seq":197}
1: (728) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (728) 1013: elapsed time 19\n"},"seq":199}
1: (728) 1013: elapsed time 19
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (729) ->(gdb)\n"},"seq":201}
1: (729) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (729) ->1014^done,threads=[{id=\"1\",target-id=\"process 7122\",name=\"argprinter\",state=\"running\",core=\"2\"}]\n"},"seq":203}
1: (729) ->1014^done,threads=[{id="1",target-id="process 7122",name="argprinter",state="running",core="2"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (729) ->(gdb)\n"},"seq":205}
1: (729) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (731) 1014: elapsed time 16\n"},"seq":207}
1: (731) 1014: elapsed time 16
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (733) Send Event AD7ProcessInfoUpdatedEvent\n"},"seq":209}
1: (733) Send Event AD7ProcessInfoUpdatedEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (734) ->~\"Stopped due to shared library event (no libraries added or removed)\\n\"\n"},"seq":211}
1: (734) ->~"Stopped due to shared library event (no libraries added or removed)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (734) ->*stopped,reason=\"solib-event\",thread-id=\"1\",stopped-threads=\"all\",core=\"2\"\n"},"seq":213}
1: (734) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="2"
--> E (process): {"type":"event","event":"process","body":{"startMethod":"launch","name":"/home/kleist/git/argprinter/argprinter","systemProcessId":7122,"pointerSize":64},"seq":215}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (742) Send Event AD7ThreadCreateEvent\n"},"seq":217}
1: (742) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":7122},"seq":219}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Stopped due to shared library event (no libraries added or removed)\n"},"seq":221}
Stopped due to shared library event (no libraries added or removed)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (750) <-1015-interpreter-exec console \"shell echo -e \\\\\\\\033c 1>&2\"\n"},"seq":223}
1: (750) <-1015-interpreter-exec console "shell echo -e \\\\033c 1>&2"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (752) ->1015^done\n"},"seq":225}
1: (752) ->1015^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (752) ->(gdb)\n"},"seq":227}
1: (752) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (752) 1015: elapsed time 1\n"},"seq":229}
1: (752) 1015: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (753) <-1016-gdb-set stop-on-solib-events 0\n"},"seq":231}
1: (753) <-1016-gdb-set stop-on-solib-events 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (753) ->1016^done\n"},"seq":233}
1: (753) ->1016^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (753) ->(gdb)\n"},"seq":235}
1: (753) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (753) 1016: elapsed time 0\n"},"seq":237}
1: (753) 1016: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (756) <-1017-interpreter-exec console \"info sharedlibrary\"\n"},"seq":239}
1: (756) <-1017-interpreter-exec console "info sharedlibrary"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (756) ->~\"From                To                  Syms Read   Shared Object Library\\n\"\n"},"seq":241}
1: (756) ->~"From                To                  Syms Read   Shared Object Library\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (757) ->~\"0x00007ffff7fc6000  0x00007ffff7ff0195  Yes         /lib64/ld-linux-x86-64.so.2\\n\"\n"},"seq":243}
1: (757) ->~"0x00007ffff7fc6000  0x00007ffff7ff0195  Yes         /lib64/ld-linux-x86-64.so.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (757) ->1017^done\n"},"seq":245}
1: (757) ->1017^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (757) ->(gdb)\n"},"seq":247}
1: (757) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (757) 1017: elapsed time 1\n"},"seq":249}
1: (757) 1017: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (758) Send Event AD7ModuleLoadEvent\n"},"seq":251}
1: (758) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.\n"},"seq":253}
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1,"name":"ld-linux-x86-64.so.2","path":"/lib64/ld-linux-x86-64.so.2","symbolFilePath":"/lib64/ld-linux-x86-64.so.2","vsLoadAddress":"140737353900032","vsPreferredLoadAddress":"140737353900032","vsModuleSize":172437,"vsLoadOrder":0,"vsTimestampUTC":"1723128462","vsIs64Bit":true}},"seq":255}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (786) <--exec-continue\n"},"seq":257}
1: (786) <--exec-continue
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (787) ->^running\n"},"seq":259}
1: (787) ->^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (787) ->*running,thread-id=\"all\"\n"},"seq":261}
1: (787) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (788) ->(gdb)\n"},"seq":263}
1: (788) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (788) ->=library-loaded,id=\"/lib/x86_64-linux-gnu/libc.so.6\",target-name=\"/lib/x86_64-linux-gnu/libc.so.6\",host-name=\"/lib/x86_64-linux-gnu/libc.so.6\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffff7dcb800\",to=\"0x00007ffff7f52c8d\"}]\n"},"seq":265}
1: (788) ->=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7dcb800",to="0x00007ffff7f52c8d"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (853) ->~\"[Thread debugging using libthread_db enabled]\\n\"\n"},"seq":267}
1: (853) ->~"[Thread debugging using libthread_db enabled]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (853) ->~\"Using host libthread_db library \\\"/lib/x86_64-linux-gnu/libthread_db.so.1\\\".\\n\"\n"},"seq":269}
1: (853) ->~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[Thread debugging using libthread_db enabled]\n"},"seq":271}
[Thread debugging using libthread_db enabled]
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"},"seq":273}
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
<--   C (threads-10): {"command":"threads","type":"request","seq":10}
--> R (threads-10): {"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[{"id":7122,"name":"argprinter [7122]"}]},"seq":276}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (892) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000555555555151\",at=\"<main+8>\",thread-groups=[\"i1\"],times=\"1\",original-location=\"main\"}\n"},"seq":278}
1: (892) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000555555555151",at="<main+8>",thread-groups=["i1"],times="1",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (892) ->~\"\\n\"\n"},"seq":280}
1: (892) ->~"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (903) ->~\"Breakpoint 1, 0x0000555555555151 in main ()\\n\"\n"},"seq":282}
1: (903) ->~"Breakpoint 1, 0x0000555555555151 in main ()\n"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"\n"},"seq":283}

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (903) ->*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"1\",frame={addr=\"0x0000555555555151\",func=\"main\",args=[],arch=\"i386:x86-64\"},thread-id=\"1\",stopped-threads=\"all\",core=\"2\"\n"},"seq":285}
1: (903) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0000555555555151",func="main",args=[],arch="i386:x86-64"},thread-id="1",stopped-threads="all",core="2"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"Breakpoint 1, 0x0000555555555151 in main ()\n"},"seq":287}
Breakpoint 1, 0x0000555555555151 in main ()
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (910) <-1018-thread-info\n"},"seq":290}
1: (910) <-1018-thread-info
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->1018^done,threads=[{id=\"1\",target-id=\"Thread 0x7ffff7da0740 (LWP 7122)\",name=\"argprinter\",frame={level=\"0\",addr=\"0x0000555555555151\",func=\"main\",args=[],arch=\"i386:x86-64\"},state=\"stopped\",core=\"2\"}],current-thread-id=\"1\"\n"},"seq":292}
1: (911) ->1018^done,threads=[{id="1",target-id="Thread 0x7ffff7da0740 (LWP 7122)",name="argprinter",frame={level="0",addr="0x0000555555555151",func="main",args=[],arch="i386:x86-64"},state="stopped",core="2"}],current-thread-id="1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (911) ->(gdb)\n"},"seq":294}
1: (911) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (913) 1018: elapsed time 2\n"},"seq":296}
1: (913) 1018: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (918) <-1019-interpreter-exec console \"info sharedlibrary\"\n"},"seq":298}
1: (918) <-1019-interpreter-exec console "info sharedlibrary"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (918) ->~\"From                To                  Syms Read   Shared Object Library\\n\"\n"},"seq":300}
1: (918) ->~"From                To                  Syms Read   Shared Object Library\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (918) ->~\"0x00007ffff7fc6000  0x00007ffff7ff0195  Yes         /lib64/ld-linux-x86-64.so.2\\n\"\n"},"seq":302}
1: (918) ->~"0x00007ffff7fc6000  0x00007ffff7ff0195  Yes         /lib64/ld-linux-x86-64.so.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (919) ->~\"0x00007ffff7dcb800  0x00007ffff7f52c8d  Yes         /lib/x86_64-linux-gnu/libc.so.6\\n\"\n"},"seq":304}
1: (919) ->~"0x00007ffff7dcb800  0x00007ffff7f52c8d  Yes         /lib/x86_64-linux-gnu/libc.so.6\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (919) ->1019^done\n"},"seq":306}
1: (919) ->1019^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (919) ->(gdb)\n"},"seq":308}
1: (919) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (919) 1019: elapsed time 1\n"},"seq":310}
1: (919) 1019: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (919) Send Event AD7ModuleLoadEvent\n"},"seq":312}
1: (919) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.\n"},"seq":314}
Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":2,"name":"libc.so.6","path":"/lib/x86_64-linux-gnu/libc.so.6","symbolFilePath":"/lib/x86_64-linux-gnu/libc.so.6","vsLoadAddress":"140737351825408","vsPreferredLoadAddress":"140737351825408","vsModuleSize":1602701,"vsLoadOrder":1,"vsTimestampUTC":"1723128462","vsIs64Bit":true}},"seq":316}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (923) <-1020-stack-list-frames 0 1000\n"},"seq":318}
1: (923) <-1020-stack-list-frames 0 1000
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (923) ->1020^done,stack=[frame={level=\"0\",addr=\"0x0000555555555151\",func=\"main\",arch=\"i386:x86-64\"}]\n"},"seq":320}
1: (923) ->1020^done,stack=[frame={level="0",addr="0x0000555555555151",func="main",arch="i386:x86-64"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (923) ->(gdb)\n"},"seq":322}
1: (923) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (925) 1020: elapsed time 1\n"},"seq":324}
1: (925) 1020: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (931) <-1021-break-delete 1\n"},"seq":326}
1: (931) <-1021-break-delete 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (931) ->1021^done\n"},"seq":328}
1: (931) ->1021^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (931) ->(gdb)\n"},"seq":330}
1: (931) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (932) 1021: elapsed time 1\n"},"seq":332}
1: (932) 1021: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (933) Send Event AD7EntryPointEvent\n"},"seq":334}
1: (933) Send Event AD7EntryPointEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (935) <--exec-continue\n"},"seq":336}
1: (935) <--exec-continue
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (935) ->^running\n"},"seq":338}
1: (935) ->^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (935) ->*running,thread-id=\"all\"\n"},"seq":340}
1: (935) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (936) ->(gdb)\n"},"seq":342}
1: (936) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (936) ->~\"[Inferior 1 (process 7122) exited normally]\\n\"\n"},"seq":344}
1: (936) ->~"[Inferior 1 (process 7122) exited normally]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (936) ->=thread-exited,id=\"1\",group-id=\"i1\"\n"},"seq":346}
1: (936) ->=thread-exited,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[Inferior 1 (process 7122) exited normally]\n"},"seq":347}
[Inferior 1 (process 7122) exited normally]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (936) ->=thread-group-exited,id=\"i1\",exit-code=\"0\"\n"},"seq":349}
1: (936) ->=thread-group-exited,id="i1",exit-code="0"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (936) ->*stopped,reason=\"exited-normally\"\n"},"seq":352}
1: (936) ->*stopped,reason="exited-normally"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (937) Send Event AD7ThreadDestroyEvent\n"},"seq":354}
1: (937) Send Event AD7ThreadDestroyEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"exited","threadId":7122},"seq":356}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (938) <--gdb-exit\n"},"seq":358}
1: (938) <--gdb-exit
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (938) ->^exit\n"},"seq":360}
1: (938) ->^exit
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (942) Send Event AD7ProgramDestroyEvent\n"},"seq":362}
1: (942) Send Event AD7ProgramDestroyEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program '/home/kleist/git/argprinter/argprinter' has exited with code 0 (0x00000000).\r\n\n"},"seq":364}
The program '/home/kleist/git/argprinter/argprinter' has exited with code 0 (0x00000000).
--> E (exited): {"type":"event","event":"exited","body":{"exitCode":0},"seq":366}
--> E (terminated): {"type":"event","event":"terminated","body":{},"seq":368}
--> 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":"17.12.21003.1","VS.Diagnostics.Debugger.HostVersion":"17.12.21003.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":370}
<--   C (disconnect-11): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":11}
--> R (disconnect-11): {"type":"response","request_seq":11,"success":true,"command":"disconnect","body":{},"seq":373}

Other Extensions

Issue was reproducible with just WSL and C/C++ extensions installed.

Additional Information

No response

@stertingen
Copy link
Author

Related: microsoft/vscode#238514

Copy link

Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.

@github-actions github-actions bot added the help wanted Can be fixed in the public (open source) repo. label Feb 11, 2025
gregg-miskelly pushed a commit to microsoft/MIEngine that referenced this issue Feb 24, 2025
When parsing launch options from JSON, the JSON parser's default behavior is – for whatever reason – to parse slightly datetime-ish looking strings as date objects. This PR explicitly forbids this behavior when parsing launch options.

Partially fixes #1491, microsoft/vscode-cpptools#13241 and microsoft/vscode#238514.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug debugger help wanted Can be fixed in the public (open source) repo.
Projects
None yet
Development

No branches or pull requests

2 participants