bgamari / ghc-debug

Moved to Haskell.org GitLab.
https://gitlab.haskell.org/ghc/ghc-debug
62 stars 10 forks source link

Respect TNTC in stub.cpp #6

Open mpickering opened 5 years ago

mpickering commented 5 years ago

There is a hardcoded -1 in stub.cpp. I need to call some function from the RTS to tell me what the correct offset from the info table pointer to the start of the info table struct is.

get_itbl is not appropriate as it works on a closure rather than directly on the misaligned pointer.