Fix a couple of bugs in the way info tables are generated for 64-bit platforms
authorSimon Marlow <marlowsd@gmail.com>
Tue, 4 Nov 2014 15:51:56 +0000 (15:51 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 5 Nov 2014 18:13:50 +0000 (18:13 +0000)
commit83cf31e42e87e93eda3e576bc5935509959c2f49
treef8d00873158f2ecb1b1906930f314ed2dbc5b470
parent32237f0d9024b2e1ab7cc637a79584bb07a10268
Fix a couple of bugs in the way info tables are generated for 64-bit platforms

1. The offset was a full word, but it should actually be a 32-bit
offset on 64-bit platforms.
2. The con_desc string was allocated separately, which meant that it
might be out of range for a 32-bit offset.

These bugs meant that +RTS -Di (interpreter debugging) would sometimes
crash on 64-bit.
compiler/ghci/ByteCodeItbls.hs
compiler/ghci/DebuggerUtils.hs