Changes between Version 10 and Version 11 of DebuggingGhcCrashes


Ignore:
Timestamp:
Nov 23, 2006 4:05:59 PM (7 years ago)
Author:
alexey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebuggingGhcCrashes

    v10 v11  
    283283}}} 
    284284   Also note that an empty gdb request repeats the previous command, in this case {{{si}}}. 
     285 * Sometimes you need to look and step through the compiled code of Haskell libraries. I find it useful to change the lines 43 and 48 of file {{{mk/suffix.mk}}} as follows: 
     286{{{ 
     28743:  $(HC) $(HC_OPTS) -c $< -o $@  -ohi $(basename $@).$(way_)hi -ddump-simpl -ddump-cmm -ddump-stg > $@.output 
     28848:  $(HC) $(HC_OPTS) -c $< -o $@  -ohi $(basename $@).$(way_)hi -ddump-simpl -ddump-cmm -ddump-stg > $@.output 
     289}}} 
     290   Now, I can use file {{{libraries/base/GHC/TopHandler.o.output}}} to make sense of what is going on in {{{TopHandler.o}}}. 
    285291 
    286292== Mapping back to the STG code ==