[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:23:42 UTC 2024



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


Commits:
c9058139 by Rodrigo Mesquita at 2024-03-25T11:23:33+00:00
Improve debug message

- - - - -


1 changed file:

- compiler/GHC/ByteCode/Linker.hs


Changes:

=====================================
compiler/GHC/ByteCode/Linker.hs
=====================================
@@ -180,7 +180,7 @@ 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 [] = panic $ "lookupHsSymbol: symbol " ++ show (ppr nm) ++ " not found in the loaded_dlls associated with this pkg_id (" ++ show (ppr pkgs_loaded) ++ ")"
 
   go loaded_dlls
 



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c905813968a4be3d5b96cb07e43a3754d073409a
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/5a479a34/attachment.html>


More information about the ghc-commits mailing list