Changes between Version 10 and Version 11 of Debugging/CompiledCode
- Timestamp:
- 06/01/11 02:15:58 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Debugging/CompiledCode
v10 v11 304 304 }}} 305 305 Also note that an empty gdb request repeats the previous command, in this case {{{si}}}. 306 * 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:306 * Sometimes you need to look and step through the compiled code of Haskell libraries. (!ToDo: the following is out of date, and refers to the old build system. We should now use `-ddump-to-file`.) I find it useful to change the lines 43 and 48 of file {{{mk/suffix.mk}}} as follows: 307 307 {{{ 308 308 43: $(HC) $(HC_OPTS) -c $< -o $@ -ohi $(basename $@).$(way_)hi -ddump-simpl -ddump-cmm -ddump-stg > $@.output … … 310 310 }}} 311 311 Now, I can use file {{{libraries/base/GHC/TopHandler.o.output}}} to make sense of what is going on in {{{TopHandler.o}}}. 312 312 313 313 314 == Mapping back to the STG code ==
