[Git][ghc/ghc][wip/romes/rts-linker-direct-symbol-lookup] Improve debug message

Rodrigo Mesquita (@alt-romes) gitlab at gitlab.haskell.org
Mon Mar 25 11:44:55 UTC 2024



Rodrigo Mesquita pushed to branch wip/romes/rts-linker-direct-symbol-lookup at Glasgow Haskell Compiler / GHC


Commits:
36ccd99d by Rodrigo Mesquita at 2024-03-25T11:44:44+00:00
Improve debug message

- - - - -


1 changed file:

- compiler/GHC/ByteCode/Linker.hs


Changes:

=====================================
compiler/GHC/ByteCode/Linker.hs
=====================================
@@ -180,7 +180,11 @@ lookupHsSymbol interp pkgs_loaded nm sym_suffix = do
         case mb_ptr of
           Just ptr -> pure (Just ptr)
           Nothing -> go dlls
-      go [] = panic "lookupHsSymbol: symbol not found in the loaded_dlls associated with this pkg_id"
+      go [] = pprPanic "GHC.ByteCode.Linker.lookupHsSymbol" $
+        text "symbol"
+         <+> ppr nm
+         <+> text "not found in the loaded_dlls associated with this pkg_id"
+         <+> parens (ppr pkgs_loaded)
 
   go loaded_dlls
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/36ccd99d51a1fe1150d4ba4dc5eef992d436fa8f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/36ccd99d51a1fe1150d4ba4dc5eef992d436fa8f
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240325/07f9fd09/attachment-0001.html>


More information about the ghc-commits mailing list