[Lldb-commits] [Bug 11628] New: lldb and gdb compute different values for pointer expression
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 20 11:53:01 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11628
Bug #: 11628
Summary: lldb and gdb compute different values for pointer
expression
Product: lldb
Version: unspecified
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: lldb-commits at cs.uiuc.edu
ReportedBy: nathanhowell at hotmail.com
Classification: Unclassified
Created attachment 7780
--> http://llvm.org/bugs/attachment.cgi?id=7780
Repro app compiled with GHC 7.2.1 x86_64
The expression '(((StgThunk*)Main_lastException_info)-1)' returns:
gdb: 0x100001c20
lldb: 0x100001c18
It would also be nice if the function cast was not required.
(lldb) bt
* thread #1: tid = 0x2c03, 0x00007fff84fbd0b6 libSystem.B.dylib`__kill + 10,
stop reason = signal SIGABRT
frame #0: 0x00007fff84fbd0b6 libSystem.B.dylib`__kill + 10
frame #1: 0x0000000100001a04 sig`r2bl_info + 28
(lldb) print (((StgThunk*)(void (*)())Main_lastException_info))
(StgThunk *) $23 = 0x0000000100001c30
(lldb) print (((StgThunk*)(void (*)())Main_lastException_info)-1)
(StgThunk *) $24 = 0x0000000100001c18
(lldb) print (((StgThunk*)Main_lastException_info))
error: function 'Main_lastException_info' with unknown type must be given a
function type <-- this is annoying
error: 1 errors parsing expression
(gdb) bt
#0 0x00007fff84fbd0b6 in __kill ()
#1 0x0000000100001a04 in r2bl_info ()
(gdb) print (((StgThunk*)Main_lastException_info))
$14 = (StgThunk *) 0x100001c30
(gdb) print (((StgThunk*)Main_lastException_info)-1)
$15 = (StgThunk *) 0x100001c20
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the lldb-commits
mailing list