Changes between Version 8 and Version 9 of Debugging/CompiledCode


Ignore:
Timestamp:
May 14, 2011 5:17:38 PM (3 years ago)
Author:
ezyang
Comment:

notes about gdbinit

Legend:

Unmodified
Added
Removed
Modified
  • Debugging/CompiledCode

    v8 v9  
    327327of your program. 
    328328 
     329== Setting up gdbinit == 
     330 
     331As GHC's allocation of registers will vary depending on what architecture 
     332you're building for, you'll need to modify some values in your gdbinit to 
     333make things work for you.  In particular, you need to know what values 
     334BaseReg and Sp are.  You can find them out by looking at 
     335{{{includes/stg/MachRegs.h}}} (as well as all of the other registers.) 
     336In particular, on x86-32, BaseReg is in ebx and Sp is in ebp, while on 
     337x84-64, BaseReg is in r13 and Sp is in rbp. 
     338 
    329339== When you've found & fixed it == 
    330340