rts/Printer.c
Hi all, I'm looking at extending my debugger for Haskell to GHC (currently only works for Hugs, which is a pity). I have a couple of questions about printing data structures from the GHC heap. Is there a way to compile the RTS so that the names of data constructors are retained? It looks like Printer.c has some hooks for printing data structures, is it feasible to make a primitive that allows Haskell code to call into this? I'm thinking in particular of calling something like printClosure() from Haskell code. Unfortunately my understanding of the rts and the layout of data structures is fading. Cheers, Bernie. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
GHC 4.08.2 on OpenBSD 2.9, almost
Hi, I'm trying to port any recent version of ghc to OpenBSD 2.9. I have, with a little bit of work, been able to compile 4.08.2 from .hc sources. I now get the following kind of undefined symbol errors: Main.o: Undefined symbol `__init_Prelude' referenced from text segment Main.o: Undefined symbol `PrelBase_unpackCStringzh_closure' referenced from text segment Main.o: Undefined symbol `PrelIO_putStr_closure' referenced from text segment [ ... ] PrelMain__1.o: Undefined symbol `___init_Main' referenced from text segment .o::PrelMain(void): Undefined symbol `_Main_main_closure' referenced from text segment .o::PrelMain(void): Undefined symbol `_Main_main_closure' referenced from text segment My guess is that this kind of thing has happened before ... is there an area in the source I should be looking at? Thanks, Don Stewart [EMAIL PROTECTED] ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users