[Lldb-commits] [PATCH] lldb incorrectly parses DWARF information from Go binary

Stephen McDonald si1428 at hotmail.com
Sat Oct 11 07:00:27 PDT 2014


> Changed name of Section::GetOffset to Section::GetMemoryOffset
> Added comment for Section::GetFileOffset to make it clear that the offset is always from the beginning of the file, not the parent section.
> Changed comment for Section::GetMemoryOffset so it's clear that the offset in memory is from the parent section if there is a parent section.
> The code change in SymbolFileDWARF::GetCachedSectionData was not changed from my earlier revision.
Gary asked me to check the JIT processing. Running lldb on a C program produced the same result both with and without my patch:
(lldb) expr -g -- (int)printf("Hello world\n")
error: Execution was halted at the first instruction of the expression function because "debug" was requested.
Use "thread return -x" to return to the state before expression evaluation.

http://reviews.llvm.org/D5568

Files:
  include/lldb/Core/Section.h
  source/Core/Section.cpp
  source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5568.14770.patch
Type: text/x-patch
Size: 3067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141011/1209a353/attachment.bin>


More information about the lldb-commits mailing list