[Lldb-commits] [lldb] [llvm] [lldb] Bring Debuginfod's StreamedHTTPResponseHandler to SymbolLocatorSymStore (PR #187687)

Stefan Gränitz via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 20 05:16:03 PDT 2026


================
@@ -140,6 +140,17 @@ def test_local_dir(self):
             self.runCmd(f"settings set plugin.symbol-locator.symstore.urls {dir}")
             self.try_breakpoint(exe, should_have_loc=True)
 
+    def test_http_not_found(self):
+        """
+        Check that a 404 response from an HTTP SymStore is handled gracefully.
+        """
+        exe, sym = self.build_inferior()
+        with MockedSymStore(self, exe, sym) as symstore_dir:
+            os.makedirs(f"{symstore_dir}_empty", exist_ok=False)
+            with HTTPServer(f"{symstore_dir}_empty") as url:
+                self.runCmd(f"settings set plugin.symbol-locator.symstore.urls {url}")
+                self.try_breakpoint(exe, should_have_loc=False)
----------------
weliveindetail wrote:

Is there a good way to check that we don't produce a warning?

https://github.com/llvm/llvm-project/pull/187687


More information about the lldb-commits mailing list