> On Aug 12, 2014, at 4:20 PM, Tong Shen <endlessr...@google.com> wrote:
> 
> There's this line in your dwarfdump output:
> DW_CFA_def_cfa (5 (esp), 4)
> DW_CFA_offset (8 (eip), -4)
> 
> On Ubuntu 14.04, objdump -W outputs this:
> DW_CFA_def_cfa: r4 (esp) ofs 4
> DW_CFA_offset: r8 (eip) at cfa-4
> 
> I believe this is the cause. On OSX, esp=5; on linux, esp=4


Yeah, I was starting to get that impression too.  I thought the old esp/ebp 
mixup was across all the gcc platforms - but who knows.  Feel free to fix the 
RegisterContext_x86 enum definitions for esp/ebp - on Mac OS X we'll still be 
using the debugserver-provided register definitions.  (and we don't use 
eh_frame very often on Mac OS X - we primarily use a local compact unwind 
format that I haven't written an importer for yet)

Normally this kind of thing would be defined in the processor ABI document -- 
but I've never been able to find a document like that for IA-32.
_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to