Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (139) LaunchOptions{\"name\":\"Simple C program\",\"type\":\"cppdbg\",\"request\":\"launch\",\"cwd\":\"/home/hakon/opm\",\"program\":\"/home/hakon/opm/my_test\",\"args\":[],\"stopAtEntry\":true,\"MIMode\":\"gdb\",\"miDebuggerPath\":\"/usr/bin/gdb\",\"launchCompleteCommand\":\"None\",\"logging\":{\"trace\":true,\"traceResponse\":true,\"engineLogging\":true},\"__configurationTarget\":6,\"__sessionId\":\"3dc4587e-c73a-4a8f-9be2-b7e8cf8eef5e\"}\n"},"seq":2}
- 1: (139) LaunchOptions{"name":"Simple C program","type":"cppdbg","request":"launch","cwd":"/home/hakon/opm","program":"/home/hakon/opm/my_test","args":[],"stopAtEntry":true,"MIMode":"gdb","miDebuggerPath":"/usr/bin/gdb","launchCompleteCommand":"None","logging":{"trace":true,"traceResponse":true,"engineLogging":true},"__configurationTarget":6,"__sessionId":"3dc4587e-c73a-4a8f-9be2-b7e8cf8eef5e"}
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (196) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq ; cd \"/home/hakon/opm\" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm \"/tmp/Microsoft-MIEngine-In-k0uppmus.4bi\" \"/tmp/Microsoft-MIEngine-Out-nhuthlod.evb\" \"/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq\" \"/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0\"' EXIT ; \"/usr/bin/gdb\" --interpreter=mi --tty=$DbgTerm < \"/tmp/Microsoft-MIEngine-In-k0uppmus.4bi\" > \"/tmp/Microsoft-MIEngine-Out-nhuthlod.evb\" & clear; pid=$! ; echo $pid > \"/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq\" ; wait $pid; \n"},"seq":4}
- 1: (196) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq ; cd "/home/hakon/opm" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm "/tmp/Microsoft-MIEngine-In-k0uppmus.4bi" "/tmp/Microsoft-MIEngine-Out-nhuthlod.evb" "/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq" "/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0"' EXIT ; "/usr/bin/gdb" --interpreter=mi --tty=$DbgTerm < "/tmp/Microsoft-MIEngine-In-k0uppmus.4bi" > "/tmp/Microsoft-MIEngine-Out-nhuthlod.evb" & clear; pid=$! ; echo $pid > "/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq" ; wait $pid;
- --> C (runInTerminal-6): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: my_test","cwd":"","args":["/bin/sh","/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0"],"env":{}},"seq":6}
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (211) Wait for connection completion.\n"},"seq":8}
- 1: (211) Wait for connection completion.
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (458) ->=thread-group-added,id=\"i1\"\n"},"seq":10}
- 1: (458) ->=thread-group-added,id="i1"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\\n\"\n"},"seq":12}
- 1: (460) ->~"GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"Copyright (C) 2021 Free Software Foundation, Inc.\\n\"\n"},"seq":14}
- 1: (460) ->~"Copyright (C) 2021 Free Software Foundation, Inc.\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"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: (460) ->~"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: (460) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\n"},"seq":18}
- 1: (460) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"This GDB was configured as \\\"x86_64-linux-gnu\\\".\\n\"\n"},"seq":20}
- 1: (461) ->~"This GDB was configured as \"x86_64-linux-gnu\".\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\n"},"seq":22}
- 1: (461) ->~"Type \"show configuration\" for configuration details.\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"For bug reporting instructions, please see:\\n\"\n"},"seq":24}
- 1: (461) ->~"For bug reporting instructions, please see:\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\n"},"seq":26}
- 1: (471) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"Find the GDB manual and other documentation resources online at:\\n <http://www.gnu.org/software/gdb/documentation/>.\"\n"},"seq":28}
- 1: (471) ->~"Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>."
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"\\n\\n\"\n"},"seq":30}
- 1: (471) ->~"\n\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"For help, type \\\"help\\\".\\n\"\n"},"seq":32}
- 1: (471) ->~"For help, type \"help\".\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\n"},"seq":34}
- 1: (471) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->(gdb)\n"},"seq":36}
- 1: (471) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) <-1001-gdb-set mi-async on\n"},"seq":38}
- 1: (478) <-1001-gdb-set mi-async on
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) ->1001^done\n"},"seq":40}
- 1: (478) ->1001^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) ->(gdb)\n"},"seq":42}
- 1: (478) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (481) 1001: elapsed time 5\n"},"seq":44}
- 1: (481) 1001: elapsed time 5
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (495) <-1002-interpreter-exec console \"set pagination off\"\n"},"seq":46}
- 1: (495) <-1002-interpreter-exec console "set pagination off"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (495) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":48}
- 1: (495) ->=cmd-param-changed,param="pagination",value="off"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->1002^done\n"},"seq":50}
- 1: (496) ->1002^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->(gdb)\n"},"seq":52}
- 1: (496) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) 1002: elapsed time 0\n"},"seq":54}
- 1: (496) 1002: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) <-1003-gdb-set auto-solib-add on\n"},"seq":56}
- 1: (496) <-1003-gdb-set auto-solib-add on
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->1003^done\n"},"seq":58}
- 1: (496) ->1003^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->(gdb)\n"},"seq":60}
- 1: (496) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) 1003: elapsed time 0\n"},"seq":62}
- 1: (496) 1003: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) <-1004-gdb-set solib-search-path /home/hakon/opm:\n"},"seq":64}
- 1: (496) <-1004-gdb-set solib-search-path /home/hakon/opm:
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) ->1004^done\n"},"seq":66}
- 1: (497) ->1004^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) ->(gdb)\n"},"seq":68}
- 1: (497) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) 1004: elapsed time 0\n"},"seq":70}
- 1: (497) 1004: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) <-1005-gdb-set stop-on-solib-events 1\n"},"seq":72}
- 1: (498) <-1005-gdb-set stop-on-solib-events 1
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) ->1005^done\n"},"seq":74}
- 1: (498) ->1005^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) ->(gdb)\n"},"seq":76}
- 1: (498) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) 1005: elapsed time 0\n"},"seq":78}
- 1: (498) 1005: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) <-1006-environment-cd /home/hakon/opm\n"},"seq":80}
- 1: (499) <-1006-environment-cd /home/hakon/opm
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) ->1006^done\n"},"seq":82}
- 1: (499) ->1006^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) ->(gdb)\n"},"seq":84}
- 1: (499) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) 1006: elapsed time 0\n"},"seq":86}
- 1: (499) 1006: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) <-1007-file-exec-and-symbols /home/hakon/opm/my_test\n"},"seq":88}
- 1: (499) <-1007-file-exec-and-symbols /home/hakon/opm/my_test
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) ->1007^done\n"},"seq":90}
- 1: (504) ->1007^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) ->(gdb)\n"},"seq":92}
- 1: (504) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) 1007: elapsed time 4\n"},"seq":94}
- 1: (504) 1007: elapsed time 4
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) <-1008-interpreter-exec console \"show architecture\"\n"},"seq":96}
- 1: (506) <-1008-interpreter-exec console "show architecture"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\n"},"seq":98}
- 1: (506) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->1008^done\n"},"seq":100}
- 1: (506) ->1008^done
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->(gdb)\n"},"seq":102}
- 1: (506) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) 1008: elapsed time 0\n"},"seq":104}
- 1: (506) 1008: elapsed time 0
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (508) <-1009-break-insert -f main\n"},"seq":106}
- 1: (508) <-1009-break-insert -f main
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (509) ->1009^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000000000113d\",func=\"main\",file=\"test.c\",fullname=\"/home/hakon/opm/test.c\",line=\"4\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":108}
- 1: (509) ->1009^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000113d",func="main",file="test.c",fullname="/home/hakon/opm/test.c",line="4",thread-groups=["i1"],times="0",original-location="main"}
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (509) ->(gdb)\n"},"seq":110}
- 1: (509) ->(gdb)
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (516) 1009: elapsed time 8\n"},"seq":112}
- 1: (516) 1009: elapsed time 8
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (524) Send Event AD7EngineCreateEvent\n"},"seq":114}
- 1: (524) Send Event AD7EngineCreateEvent
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) Send Event AD7ProgramCreateEvent\n"},"seq":116}
- 1: (526) 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.4.30710.1","VS.Diagnostics.Debugger.HostVersion":"17.4.30710.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":406,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"6.0.1923.31806"}},"seq":118}
- --> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":120}
- --> E (initialized): {"type":"event","event":"initialized","body":{},"seq":122}
- <-- R (runInTerminal-6) [344 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":1938174}}
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (564) ShellPid=2194356\n"},"seq":125}
- 1: (564) ShellPid=2194356
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (565) DebuggerPid=2194358\n"},"seq":127}
- 1: (565) DebuggerPid=2194358
- <-- 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":130}
- <-- C (setDataBreakpoints-5): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
- --> R (setDataBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":133}
- <-- C (setInstructionBreakpoints-6): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
- --> R (setInstructionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":136}
- <-- C (setExceptionBreakpoints-7): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":7}
- --> R (setExceptionBreakpoints-7): {"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints","body":{"breakpoints":[]},"seq":139}
- <-- C (configurationDone-8): {"command":"configurationDone","type":"request","seq":8}
- --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (782) Send Event AD7LoadCompleteEvent\n"},"seq":143}
- 1: (782) Send Event AD7LoadCompleteEvent
- --> R (configurationDone-8): {"type":"response","request_seq":8,"success":true,"command":"configurationDone","body":{},"seq":142}
- --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\nCopyright (C) 2021 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"},"seq":145}
- =thread-group-added,id="i1"
- GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
- Copyright (C) 2021 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"
- <-- C (threads-9): {"command":"threads","type":"request","seq":9}
- --> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[]},"seq":149}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement