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