gdb hangs for multiple minutes on startup. It looks like due to debuginfod.ubuntu.com being down. Eventually the attempt to connect times out and gdb starts. But it takes multiple minutes.
I can't figure out a way to bypass loading those symbols in 1.32.
Versions of vscode-cpptools 1.29 and below start up fine.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (84) LaunchOptions{\"name\":\"Run Program\",\"type\":\"cppdbg\",\"request\":\"launch\",\"program\":\"/workspaces/TemplateBasicProject/program.exe\",\"cwd\":\"/workspaces/TemplateBasicProject\",\"preLaunchTask\":\"make program.exe\",\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"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}],\"MIMode\":\"gdb\",\"__configurationTarget\":6,\"configSource\":\"workspaceFolder\",\"debugType\":\"debug\",\"__sessionId\":\"1cc91bf4-efe1-4f29-b9a0-32f469328cfe\"}\n"},"seq":2}
1: (84) LaunchOptions{"name":"Run Program","type":"cppdbg","request":"launch","program":"/workspaces/TemplateBasicProject/program.exe","cwd":"/workspaces/TemplateBasicProject","preLaunchTask":"make program.exe","logging":{"engineLogging":true,"trace":true,"traceResponse":true},"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}],"MIMode":"gdb","__configurationTarget":6,"configSource":"workspaceFolder","debugType":"debug","__sessionId":"1cc91bf4-efe1-4f29-b9a0-32f469328cfe"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (126) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv ; cd \"/workspaces/TemplateBasicProject\" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm \"/tmp/Microsoft-MIEngine-In-xm51yzjm.h5j\" \"/tmp/Microsoft-MIEngine-Out-mnktdmki.q4c\" \"/tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv\" \"/tmp/Microsoft-MIEngine-Cmd-lwesujc5.vzf\"' EXIT ; \"/usr/bin/gdb\" --interpreter=mi --tty=$DbgTerm < \"/tmp/Microsoft-MIEngine-In-xm51yzjm.h5j\" > \"/tmp/Microsoft-MIEngine-Out-mnktdmki.q4c\" & clear; pid=$! ; echo $pid > \"/tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv\" ; wait $pid; \n"},"seq":4}
1: (126) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv ; cd "/workspaces/TemplateBasicProject" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm "/tmp/Microsoft-MIEngine-In-xm51yzjm.h5j" "/tmp/Microsoft-MIEngine-Out-mnktdmki.q4c" "/tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv" "/tmp/Microsoft-MIEngine-Cmd-lwesujc5.vzf"' EXIT ; "/usr/bin/gdb" --interpreter=mi --tty=$DbgTerm < "/tmp/Microsoft-MIEngine-In-xm51yzjm.h5j" > "/tmp/Microsoft-MIEngine-Out-mnktdmki.q4c" & clear; pid=$! ; echo $pid > "/tmp/Microsoft-MIEngine-Pid-eauhtjuo.uwv" ; wait $pid;
--> C (runInTerminal-6): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: program.exe","cwd":"","args":["/bin/sh","/tmp/Microsoft-MIEngine-Cmd-lwesujc5.vzf"],"env":{}},"seq":6}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (142) Wait for connection completion.\n"},"seq":8}
1: (142) Wait for connection completion.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (243) ->=thread-group-added,id=\"i1\"\n"},"seq":10}
1: (243) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (248) ->~\"GNU gdb (Ubuntu 16.2-8ubuntu1) 16.2\\n\"\n"},"seq":12}
1: (248) ->~"GNU gdb (Ubuntu 16.2-8ubuntu1) 16.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (248) ->~\"Copyright (C) 2024 Free Software Foundation, Inc.\\n\"\n"},"seq":14}
1: (248) ->~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (249) ->~\"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: (249) ->~"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: (249) ->~\"\\nType \\\"\"\n"},"seq":18}
1: (249) ->~"\nType \""
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (249) ->~\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\n"},"seq":20}
1: (249) ->~"show copying\" and \"show warranty\" for details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (249) ->~\"This GDB was configured as \\\"x86_64-linux-gnu\\\".\\n\"\n"},"seq":22}
1: (249) ->~"This GDB was configured as \"x86_64-linux-gnu\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (250) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\n"},"seq":24}
1: (250) ->~"Type \"show configuration\" for configuration details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (250) ->~\"For bug reporting instructions, please see:\\n\"\n"},"seq":26}
1: (250) ->~"For bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (250) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\n"},"seq":28}
1: (250) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (252) ->~\"Find the GDB manual and other documentation resources online at:\\n <\"\n"},"seq":30}
1: (252) ->~"Find the GDB manual and other documentation resources online at:\n <"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (252) ->~\"http://www.gnu.org/software/gdb/documentation/>.\\n\\n\"\n"},"seq":32}
1: (252) ->~"http://www.gnu.org/software/gdb/documentation/>.\n\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (252) ->~\"For help, type \\\"help\\\".\\n\"\n"},"seq":34}
1: (252) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (252) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\n"},"seq":36}
1: (252) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (252) ->(gdb)\n"},"seq":38}
1: (252) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (257) <-1001-gdb-set mi-async on\n"},"seq":40}
1: (257) <-1001-gdb-set mi-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (258) ->1001^done\n"},"seq":42}
1: (258) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (258) ->(gdb)\n"},"seq":44}
1: (258) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (261) 1001: elapsed time 5\n"},"seq":46}
1: (261) 1001: elapsed time 5
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (270) <-1002-enable-pretty-printing\n"},"seq":48}
1: (270) <-1002-enable-pretty-printing
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (271) ->1002^done\n"},"seq":50}
1: (271) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (271) ->(gdb)\n"},"seq":52}
1: (271) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (272) 1002: elapsed time 1\n"},"seq":54}
1: (272) 1002: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (272) <-1003-gdb-set disassembly-flavor intel\n"},"seq":56}
1: (272) <-1003-gdb-set disassembly-flavor intel
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (272) ->1003^done\n"},"seq":58}
1: (272) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (272) ->(gdb)\n"},"seq":60}
1: (272) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (273) 1003: elapsed time 1\n"},"seq":62}
1: (273) 1003: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (274) <-1004-interpreter-exec console \"set pagination off\"\n"},"seq":64}
1: (274) <-1004-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (276) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":66}
1: (276) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (276) ->1004^done\n"},"seq":68}
1: (276) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (276) ->(gdb)\n"},"seq":70}
1: (276) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (277) 1004: elapsed time 2\n"},"seq":72}
1: (277) 1004: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (279) <-1005-interpreter-exec console \"set debuginfod enabled on\"\n"},"seq":74}
1: (279) <-1005-interpreter-exec console "set debuginfod enabled on"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (280) ->=cmd-param-changed,param=\"debuginfod enabled\",value=\"on\"\n"},"seq":76}
1: (280) ->=cmd-param-changed,param="debuginfod enabled",value="on"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (281) ->1005^done\n"},"seq":78}
1: (281) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (281) ->(gdb)\n"},"seq":80}
1: (281) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (281) 1005: elapsed time 2\n"},"seq":82}
1: (281) 1005: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (282) <-1006-gdb-set auto-solib-add on\n"},"seq":84}
1: (282) <-1006-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (282) ->1006^done\n"},"seq":86}
1: (282) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (283) ->(gdb)\n"},"seq":88}
1: (283) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (283) 1006: elapsed time 0\n"},"seq":90}
1: (283) 1006: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (283) <-1007-gdb-set solib-search-path /workspaces/TemplateBasicProject:\n"},"seq":92}
1: (283) <-1007-gdb-set solib-search-path /workspaces/TemplateBasicProject:
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (284) ->1007^done\n"},"seq":94}
1: (284) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (284) ->(gdb)\n"},"seq":96}
1: (284) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (284) 1007: elapsed time 0\n"},"seq":98}
1: (284) 1007: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (284) <-1008-gdb-set stop-on-solib-events 1\n"},"seq":100}
1: (284) <-1008-gdb-set stop-on-solib-events 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (284) ->1008^done\n"},"seq":102}
1: (284) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (285) ->(gdb)\n"},"seq":104}
1: (285) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (285) 1008: elapsed time 0\n"},"seq":106}
1: (285) 1008: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (285) <-1009-environment-cd /workspaces/TemplateBasicProject\n"},"seq":108}
1: (285) <-1009-environment-cd /workspaces/TemplateBasicProject
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (285) ->1009^done\n"},"seq":110}
1: (285) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (286) ->(gdb)\n"},"seq":112}
1: (286) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (286) 1009: elapsed time 0\n"},"seq":114}
1: (286) 1009: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (286) <-1010-file-exec-and-symbols /workspaces/TemplateBasicProject/program.exe\n"},"seq":116}
1: (286) <-1010-file-exec-and-symbols /workspaces/TemplateBasicProject/program.exe
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (296) ->1010^done\n"},"seq":118}
1: (296) ->1010^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (296) ->(gdb)\n"},"seq":120}
1: (296) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (296) 1010: elapsed time 10\n"},"seq":122}
1: (296) 1010: elapsed time 10
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (297) <-1011-interpreter-exec console \"show architecture\"\n"},"seq":124}
1: (297) <-1011-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (298) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\n"},"seq":126}
1: (298) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (299) ->1011^done\n"},"seq":128}
1: (299) ->1011^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (299) ->(gdb)\n"},"seq":130}
1: (299) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (299) 1011: elapsed time 2\n"},"seq":132}
1: (299) 1011: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (300) <-1012-break-insert -f main\n"},"seq":134}
1: (300) <-1012-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (302) ->1012^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000000000158a\",func=\"main()\",file=\"main.cpp\",fullname=\"/workspaces/TemplateBasicProject/main.cpp\",line=\"53\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":136}
1: (302) ->1012^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000158a",func="main()",file="main.cpp",fullname="/workspaces/TemplateBasicProject/main.cpp",line="53",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (303) ->(gdb)\n"},"seq":138}
1: (303) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (310) 1012: elapsed time 9\n"},"seq":140}
1: (310) 1012: elapsed time 9
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (319) Send Event AD7EngineCreateEvent\n"},"seq":142}
1: (319) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (322) Send Event AD7ProgramCreateEvent\n"},"seq":144}
1: (322) 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.40402.1","VS.Diagnostics.Debugger.HostVersion":"17.12.40402.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":251,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"8.0.2526.11203"}},"seq":146}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":148}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":150}
<-- R (runInTerminal-6) [214 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":2286}}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (374) ShellPid=8824\n"},"seq":153}
1: (374) ShellPid=8824
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (381) DebuggerPid=8826\n"},"seq":155}
1: (381) DebuggerPid=8826
<-- C (setBreakpoints-4): {"command":"setBreakpoints","arguments":{"source":{"name":"main.cpp","path":"/workspaces/TemplateBasicProject/main.cpp"},"lines":[8],"breakpoints":[{"line":8}],"sourceModified":false},"type":"request","seq":4}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (403) <-1013-break-insert -f main.cpp:8\n"},"seq":158}
1: (403) <-1013-break-insert -f main.cpp:8
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (403) ->1013^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000000001219\",func=\"biff(unsigned long)\",file=\"main.cpp\",fullname=\"/workspaces/TemplateBasicProject/main.cpp\",line=\"8\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main.cpp:8\"}\n"},"seq":160}
1: (403) ->1013^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000001219",func="biff(unsigned long)",file="main.cpp",fullname="/workspaces/TemplateBasicProject/main.cpp",line="8",thread-groups=["i1"],times="0",original-location="main.cpp:8"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (403) ->(gdb)\n"},"seq":162}
1: (403) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (405) 1013: elapsed time 2\n"},"seq":164}
1: (405) 1013: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (414) <-1014-symbol-list-lines /workspaces/TemplateBasicProject/main.cpp\n"},"seq":166}
1: (414) <-1014-symbol-list-lines /workspaces/TemplateBasicProject/main.cpp
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (415) ->1014^done,lines=[{pc=\"0x0000000000001209\",line=\"7\"},{pc=\"0x0000000000001219\",line=\"8\"},{pc=\"0x000000000000121d\",line=\"8\"},{pc=\"0x000000000000123c\",line=\"9\"},{pc=\"0x0000000000001244\",line=\"9\"},{pc=\"0x0000000000001246\",line=\"8\"},{pc=\"0x000000000000124b\",line=\"10\"},{pc=\"0x0000000000001256\",line=\"10\"},{pc=\"0x0000000000001269\",line=\"10\"},{pc=\"0x000000000000126d\",line=\"9\"},{pc=\"0x000000000000127c\",line=\"12\"},{pc=\"0x00000000000012b9\",line=\"13\"},{pc=\"0x00000000000012d2\",line=\"14\"},{pc=\"0x00000000000012da\",line=\"14\"},{pc=\"0x00000000000012dc\",line=\"15\"},{pc=\"0x00000000000012ef\",line=\"15\"},{pc=\"0x0000000000001317\",line=\"14\"},{pc=\"0x0000000000001326\",line=\"17\"},{pc=\"0x0000000000001342\",line=\"18\"},{pc=\"0x0000000000001346\",line=\"19\"},{pc=\"0x0000000000001348\",line=\"22\"},{pc=\"0x0000000000001354\",line=\"23\"},{pc=\"0x00000000000013a4\",line=\"24\"},{pc=\"0x00000000000013e1\",line=\"25\"},{pc=\"0x00000000000013fa\",line=\"26\"},{pc=\"0x0000000000001402\",line=\"26\"},{pc=\"0x0000000000001404\",line=\"27\"},{pc=\"0x0000000000001417\",line=\"27\"},{pc=\"0x000000000000143f\",line=\"26\"},{pc=\"0x000000000000144b\",line=\"29\"},{pc=\"0x0000000000001467\",line=\"30\"},{pc=\"0x000000000000146a\",line=\"33\"},{pc=\"0x0000000000001476\",line=\"34\"},{pc=\"0x0000000000001484\",line=\"35\"},{pc=\"0x00000000000014af\",line=\"36\"},{pc=\"0x00000000000014c8\",line=\"37\"},{pc=\"0x00000000000014d0\",line=\"37\"},{pc=\"0x00000000000014d2\",line=\"38\"},{pc=\"0x00000000000014e5\",line=\"38\"},{pc=\"0x000000000000150d\",line=\"37\"},{pc=\"0x0000000000001519\",line=\"40\"},{pc=\"0x0000000000001535\",line=\"41\"},{pc=\"0x0000000000001548\",line=\"42\"},{pc=\"0x000000000000154b\",line=\"45\"},{pc=\"0x0000000000001557\",line=\"46\"},{pc=\"0x0000000000001565\",line=\"47\"},{pc=\"0x0000000000001578\",line=\"48\"},{pc=\"0x000000000000157c\",line=\"49\"},{pc=\"0x000000000000157e\",line=\"52\"},{pc=\"0x000000000000158a\",line=\"53\"},{pc=\"0x00000000000015b5\",line=\"54\"},{pc=\"0x00000000000015d1\",line=\"56\"},{pc=\"0x00000000000015d6\",line=\"57\"},{pc=\"0x00000000000015f2\",line=\"59\"},{pc=\"0x00000000000015f7\",line=\"60\"},{pc=\"0x0000000000001613\",line=\"62\"},{pc=\"0x000000000000161c\",line=\"63\"},{pc=\"0x0000000000001647\",line=\"64\"},{pc=\"0x0000000000001660\",line=\"65\"},{pc=\"0x0000000000001668\",line=\"65\"},{pc=\"0x000000000000166a\",line=\"66\"},{pc=\"0x000000000000167d\",line=\"66\"},{pc=\"0x00000000000016a5\",line=\"65\"},{pc=\"0x00000000000016b1\",line=\"68\"},{pc=\"0x00000000000016df\",line=\"70\"},{pc=\"0x00000000000016ed\",line=\"71\"},{pc=\"0x0000000000001718\",line=\"72\"},{pc=\"0x0000000000001731\",line=\"73\"},{pc=\"0x0000000000001739\",line=\"73\"},{pc=\"0x000000000000173b\",line=\"74\"},{pc=\"0x000000000000174e\",line=\"74\"},{pc=\"0x0000000000001776\",line=\"73\"},{pc=\"0x0000000000001782\",line=\"76\"},{pc=\"0x000000000000179e\",line=\"77\"},{pc=\"0x00000000000017a5\",line=\"0\"}]\n"},"seq":168}
1: (415) ->1014^done,lines=[{pc="0x0000000000001209",line="7"},{pc="0x0000000000001219",line="8"},{pc="0x000000000000121d",line="8"},{pc="0x000000000000123c",line="9"},{pc="0x0000000000001244",line="9"},{pc="0x0000000000001246",line="8"},{pc="0x000000000000124b",line="10"},{pc="0x0000000000001256",line="10"},{pc="0x0000000000001269",line="10"},{pc="0x000000000000126d",line="9"},{pc="0x000000000000127c",line="12"},{pc="0x00000000000012b9",line="13"},{pc="0x00000000000012d2",line="14"},{pc="0x00000000000012da",line="14"},{pc="0x00000000000012dc",line="15"},{pc="0x00000000000012ef",line="15"},{pc="0x0000000000001317",line="14"},{pc="0x0000000000001326",line="17"},{pc="0x0000000000001342",line="18"},{pc="0x0000000000001346",line="19"},{pc="0x0000000000001348",line="22"},{pc="0x0000000000001354",line="23"},{pc="0x00000000000013a4",line="24"},{pc="0x00000000000013e1",line="25"},{pc="0x00000000000013fa",line="26"},{pc="0x0000000000001402",line="26"},{pc="0x0000000000001404",line="27"},{pc="0x0000000000001417",line="27"},{pc="0x000000000000143f",line="26"},{pc="0x000000000000144b",line="29"},{pc="0x0000000000001467",line="30"},{pc="0x000000000000146a",line="33"},{pc="0x0000000000001476",line="34"},{pc="0x0000000000001484",line="35"},{pc="0x00000000000014af",line="36"},{pc="0x00000000000014c8",line="37"},{pc="0x00000000000014d0",line="37"},{pc="0x00000000000014d2",line="38"},{pc="0x00000000000014e5",line="38"},{pc="0x000000000000150d",line="37"},{pc="0x0000000000001519",line="40"},{pc="0x0000000000001535",line="41"},{pc="0x0000000000001548",line="42"},{pc="0x000000000000154b",line="45"},{pc="0x0000000000001557",line="46"},{pc="0x0000000000001565",line="47"},{pc="0x0000000000001578",line="48"},{pc="0x000000000000157c",line="49"},{pc="0x000000000000157e",line="52"},{pc="0x000000000000158a",line="53"},{pc="0x00000000000015b5",line="54"},{pc="0x00000000000015d1",line="56"},{pc="0x00000000000015d6",line="57"},{pc="0x00000000000015f2",line="59"},{pc="0x00000000000015f7",line="60"},{pc="0x0000000000001613",line="62"},{pc="0x000000000000161c",line="63"},{pc="0x0000000000001647",line="64"},{pc="0x0000000000001660",line="65"},{pc="0x0000000000001668",line="65"},{pc="0x000000000000166a",line="66"},{pc="0x000000000000167d",line="66"},{pc="0x00000000000016a5",line="65"},{pc="0x00000000000016b1",line="68"},{pc="0x00000000000016df",line="70"},{pc="0x00000000000016ed",line="71"},{pc="0x0000000000001718",line="72"},{pc="0x0000000000001731",line="73"},{pc="0x0000000000001739",line="73"},{pc="0x000000000000173b",line="74"},{pc="0x000000000000174e",line="74"},{pc="0x0000000000001776",line="73"},{pc="0x0000000000001782",line="76"},{pc="0x000000000000179e",line="77"},{pc="0x00000000000017a5",line="0"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (428) ->(gdb)\n"},"seq":170}
1: (428) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (429) 1014: elapsed time 15\n"},"seq":172}
1: (429) 1014: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (437) Send Event AD7BreakpointBoundEvent\n"},"seq":174}
1: (437) Send Event AD7BreakpointBoundEvent
--> R (setBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":8,"BoundBreakpoints":[]}]},"seq":176}
--> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":true,"line":8,"BoundBreakpoints":[]}},"seq":178}
<-- 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":181}
<-- 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":184}
<-- 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":187}
<-- C (setDataBreakpoints-8): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":8}
--> R (setDataBreakpoints-8): {"type":"response","request_seq":8,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":190}
<-- C (configurationDone-9): {"command":"configurationDone","type":"request","seq":9}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (510) Send Event AD7LoadCompleteEvent\n"},"seq":194}
1: (510) Send Event AD7LoadCompleteEvent
--> R (configurationDone-9): {"type":"response","request_seq":9,"success":true,"command":"configurationDone","body":{},"seq":193}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (Ubuntu 16.2-8ubuntu1) 16.2\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"},"seq":197}
=thread-group-added,id="i1"
GNU gdb (Ubuntu 16.2-8ubuntu1) 16.2
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"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (518) <-1015-exec-run\n"},"seq":199}
1: (518) <-1015-exec-run
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (518) ->&\"warning: Error disabling address space randomization: Operation not permitted\\n\"\n"},"seq":201}
1: (518) ->&"warning: Error disabling address space randomization: Operation not permitted\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) ->=thread-group-started,id=\"i1\",pid=\"8839\"\n"},"seq":203}
1: (1326) ->=thread-group-started,id="i1",pid="8839"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) ->=thread-created,id=\"1\",group-id=\"i1\"\n"},"seq":205}
1: (1326) ->=thread-created,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1326) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00006289c74c358a\",func=\"main()\",file=\"main.cpp\",fullname=\"/workspaces/TemplateBasicProject/main.cpp\",line=\"53\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":207}
1: (1326) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00006289c74c358a",func="main()",file="main.cpp",fullname="/workspaces/TemplateBasicProject/main.cpp",line="53",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1327) ->=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00006289c74c3219\",func=\"biff(unsigned long)\",file=\"main.cpp\",fullname=\"/workspaces/TemplateBasicProject/main.cpp\",line=\"8\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main.cpp:8\"}\n"},"seq":209}
1: (1327) ->=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00006289c74c3219",func="biff(unsigned long)",file="main.cpp",fullname="/workspaces/TemplateBasicProject/main.cpp",line="8",thread-groups=["i1"],times="0",original-location="main.cpp:8"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1327) ->=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=\"0x00007eca3c02d000\",to=\"0x00007eca3c05a235\"}]\n"},"seq":211}
1: (1327) ->=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="0x00007eca3c02d000",to="0x00007eca3c05a235"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1331) <-1016-thread-info 1\n"},"seq":213}
1: (1331) <-1016-thread-info 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (1335) <-1017-symbol-list-lines /workspaces/TemplateBasicProject/main.cpp\n"},"seq":215}
1: (1335) <-1017-symbol-list-lines /workspaces/TemplateBasicProject/main.cpp
<-- C (threads-10): {"command":"threads","type":"request","seq":10}
--> R (threads-10): {"type":"response","request_seq":10,"success":true,"command":"threads","body":{"threads":[]},"seq":218}
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
gdb hangs for multiple minutes on startup. It looks like due to
debuginfod.ubuntu.combeing down. Eventually the attempt to connect times out and gdb starts. But it takes multiple minutes.I can't figure out a way to bypass loading those symbols in 1.32.
Versions of vscode-cpptools 1.29 and below start up fine.
Related closed issue on vscode here:
microsoft/vscode#316682 (comment)
Steps to reproduce:
I've tried:
set debuginfod enabled offin /etc/gdb/gdbinitAnd
In the launch.json
The Debug Console shows:
GDB startup shows: =cmd-param-changed,param="debuginfod enabled",value="off"on startup but still hangs.
Rolling back to vscode-cpptools 1.29 allows the debugger to start
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
No response