... | ... | @@ -366,10 +366,10 @@ of your program. |
|
|
As GHC's allocation of registers will vary depending on what architecture
|
|
|
you're building for, you'll need to modify some values in your gdbinit to
|
|
|
make things work for you. In particular, you need to know what values
|
|
|
BaseReg and Sp are. You can find them out by looking at
|
|
|
`BaseReg` and `Sp` are. You can find them out by looking at
|
|
|
`includes/stg/MachRegs.h` (as well as all of the other registers.)
|
|
|
In particular, on x86-32, BaseReg is in ebx and Sp is in ebp, while on
|
|
|
x84-64, BaseReg is in r13 and Sp is in rbp.
|
|
|
In particular, on x86-32, `BaseReg` is in `ebx` and `Sp` is in `ebp`, while on
|
|
|
x84-64, `BaseReg` is in `r13` and `Sp` is in `rbp`.
|
|
|
|
|
|
## When you've found & fixed it
|
|
|
|
... | ... | |