History log of /external/llvm/lib/DebugInfo/DWARFContext.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/lib/DebugInfo/DWARFContext.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/DebugInfo/DWARFContext.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/lib/DebugInfo/DWARFContext.cpp
2e110c3fa62bce0182c1635964f5e09e34e3cbb5 01-Nov-2013 David Blaikie <dblaikie@gmail.com> DebugInfo: Make pubnames header printing similar to unit header printing

In a failed attempt to allow the gnu-public-names.ll test case to not
hardcode the size of the unit that the pubnames section referred to I've
at least managed to have unit headers and pubnames headers print out in
a similar style.

This failed to achieve the desired goal because the header in a unit
specifies the length of the unit without the length element of the
header whereas the length in the pubnames includes this element, so the
numbers are off by 4 bytes. I don't know of any arithmetic powers in
FileCheck so the test case can't simply say "CU_LENGTH + 4".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
c5253237f8b3b4eb888f7f85f39acd7d4d0f57cf 29-Oct-2013 Alexey Samsonov <samsonov@google.com> DebugInfo: Introduce the notion of "form classes"

Summary:
Use DWARF4 table of form classes to fetch attributes from DIE
in a more consistent way. This shouldn't change the functionality and
serves as a refactoring for upcoming change: DW_AT_high_pc has different
semantics depending on its form class.

Reviewers: dblaikie, echristo

Reviewed By: echristo

CC: echristo, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1961

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
3db24f52c5c0404529b627688106e0fd11a64400 02-Oct-2013 Alexey Samsonov <samsonov@google.com> [DebugInfo] Further simplify DWARFDebugAranges public interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
1fe49e68baf567a689312eaf5973e017b8d2fdd5 29-Sep-2013 Benjamin Kramer <benny.kra@googlemail.com> Deallocate type units when destroying a DWARFContext.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
5972df2696354b328b519bedc07d1c253648cf0e 28-Sep-2013 Eric Christopher <echristo@gmail.com> Rework conditional for printing out pub sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191571 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
7357f03e888e7d95066ca1bbb26994c278eb465c 26-Sep-2013 Eric Christopher <echristo@gmail.com> Dump the normal dwarf pubtypes section as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
c839df0e4cbc3329ae9f03ca4db5893ea9b2c7bd 26-Sep-2013 Eric Christopher <echristo@gmail.com> Unify pubsection/gnu pubsection printing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
f8809477befa3df882540a870b05a85a82d5b86c 25-Sep-2013 Eric Christopher <echristo@gmail.com> Slight formatting change for pubnames/pubtypes output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191401 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
0c5e6c673098f91fa9d90a15efaadfc767325897 24-Sep-2013 David Blaikie <dblaikie@gmail.com> llvm-dwarfdump: add missing opening quotation mark lost in r191330

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
d374c7b3bf49a62a722b52367f122ca7fd53ab08 24-Sep-2013 David Blaikie <dblaikie@gmail.com> llvm-dwarfdump: re-add field formatting for the entry kind lost in r191329

CR feedback from Eric Christopher

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191330 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
9ddf28d501144276fb47ce2e5f48f2497d9898d5 24-Sep-2013 David Blaikie <dblaikie@gmail.com> llvm-dwarfdump support for gnu_pubtypes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
56b62c0ea29d2579a982c620eddaaf432904c079 24-Sep-2013 Eric Christopher <echristo@gmail.com> Format the index entry kind string to align.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
75331656124ddfdc7829b4dd430083e140bd8549 24-Sep-2013 David Blaikie <dblaikie@gmail.com> Comments for r191234 as suggested by Eric Christopher.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191244 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
438f5391b2d502a132a4a20469e9e56305b221a4 24-Sep-2013 David Blaikie <dblaikie@gmail.com> llvm-dwarfdump/libDebugInfo support for type units

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
cd7c4980d4ee2d22d92a4907f2d029e67b52d732 24-Sep-2013 David Blaikie <dblaikie@gmail.com> Exract most of DWARFCompileUnit into a new DWARFUnit to prepare for the coming DWARFTypeUnit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191233 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
9528b0e466ace36268abe9d011fffc67d831088c 23-Sep-2013 David Blaikie <dblaikie@gmail.com> DebugInfo: Wrap section data and relocs together for dwarf dumping support

This is a small step that may enable some simplifications in producer
(DWARFContext) and consumer (DWARFCompileUnit and other places) by
making a more complete abstraction around the data and relocations for a
section. Small initial steps could include simple changes such as
passing the pair to DWARFCompileUnit's ctor rather than passing the data
and relocs separately. I don't intend to pursue any such changes
immediately, however.

The motivation for doing this now is that type unit dumping will need to
deal with these data+reloc pairs moreso than the existing dumping
support has needed to associate the data as type unit sections are named
the same (debug_types) and comdat group folded. So to implement dumping
and reloc handling we'll need a mapping of section->data+relocs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33 22-Sep-2013 David Blaikie <dblaikie@gmail.com> StringRef-ize some things

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191178 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
c87f9488b851335fc92b48e9a15ee98df29b0def 20-Sep-2013 Richard Smith <richard-llvm@metafoo.co.uk> Revert r191062; the build break was also fixed in a different (incompatible) way in r191060.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
dbf76421109b5a60f988f30f47f035bda6147c46 20-Sep-2013 Richard Smith <richard-llvm@metafoo.co.uk> Unbreak Clang build after r191050: don't pass a StringRef to snprintf.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
5cfcb3677ade67e563f2746bce67904a9c0d842b 20-Sep-2013 David Blaikie <dblaikie@gmail.com> DebugInfo: constrain gnu pubnames test further

Ensures that the pubnames entries actually refer to the intended
entities. This test could be more flexible if there was a way to do
multiline FileCheck matches with captures (in that way the test wouldn't
need to have hardcoded offset values and would thus be resilient to
changes in the layout of the DIEs in this CU).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191055 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
994c37fcb001bc5a53bf2c676009b327b882d765 20-Sep-2013 David Blaikie <dblaikie@gmail.com> DebugInfo: llvm-dwarfdump support for gnu_pubnames section

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
eb0c179b5688177c1ab5f52a8c0338459e97606e 23-Aug-2013 Alexey Samsonov <samsonov@google.com> Make DWARFCompileUnit non-copyable

Summary:
This is a part of D1164. DWARFCompileUnit is not that lightweight
to copy it around, and we want it to own corresponding .dwo compile unit
eventually.

Reviewers: echristo

Reviewed By: echristo

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1298

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
e664290ad6d988e0ae40f2461084f6adbababa47 06-Aug-2013 Alexey Samsonov <samsonov@google.com> Store compile unit corresponding to each chain of inlined debug info entries. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
3df7d2f70bb316ebeec8a8c862b3da5386fbb145 19-Jun-2013 David Blaikie <dblaikie@gmail.com> llvm-dwarfdump: Add support for dumping the .debug_loc section

This is a basic implementation - we still don't have any support (that I
know of) for dumping DWARF expressions in a meaningful way, so the
location information itself is just printed as a sequence of bytes as we
do elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
6c1202c459ffa6d693ad92fa84e43902bc780bca 05-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Handle relocations that don't point to symbols.

In ELF (as in MachO), not all relocations point to symbols. Represent this
properly by using a symbol_iterator instead of a SymbolRef. Update llvm-readobj
ELF's dumper to handle relocatios without symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
7486d92a6c949a193bb75c0ffa0170eeb2fabb80 30-May-2013 Rafael Espindola <rafael.espindola@gmail.com> Change how we iterate over relocations on ELF.

For COFF and MachO, sections semantically have relocations that apply to them.
That is not the case on ELF.

In relocatable objects (.o), a section with relocations in ELF has offsets to
another section where the relocations should be applied.

In dynamic objects and executables, relocations don't have an offset, they have
a virtual address. The section sh_info may or may not point to another section,
but that is not actually used for resolving the relocations.

This patch exposes that in the ObjectFile API. It has the following advantages:

* Most (all?) clients can handle this more efficiently. They will normally walk
all relocations, so doing an effort to iterate in a particular order doesn't
save time.

* llvm-readobj now prints relocations in the same way the native readelf does.

* probably most important, relocations that don't point to any section are now
visible. This is the case of relocations in the rela.dyn section. See the
updated relocation-executable.test for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182908 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
e305e03d6f71f70a7102f15ac5ff6fd93cf9e818 06-May-2013 Eric Christopher <echristo@gmail.com> Hoist boundary condition out of loop header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
5a0c366b1f0112de7d55346ab75e4aa7073a6a19 06-May-2013 Eric Christopher <echristo@gmail.com> Untabify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181247 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
93f3fed999e039988deca64d19cbf122d46cdd59 06-May-2013 Eric Christopher <echristo@gmail.com> Don't emit .dwo sections unless they exist.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
956ca7265c697107708468b7e1b2fd21f4185bae 25-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com> Clarify getRelocationAddress x getRelocationOffset a bit.

getRelocationAddress is for dynamic libraries and executables,
getRelocationOffset for relocatable objects.

Mark the getRelocationAddress of COFF and MachO as not implemented yet. Add a
test of ELF's. llvm-readobj -r now prints the same values as readelf -r.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
005159e92420a102516ee6e29ef2178c818da5d0 23-Apr-2013 Alexey Samsonov <samsonov@google.com> Use zlib to uncompress debug sections in DWARF parser.

This makes llvm-dwarfdump and llvm-symbolizer understand
debug info sections compressed by ld.gold linker.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180088 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
784baa6f4440beac54881673ecc7baa88f8b94dd 17-Apr-2013 Alexey Samsonov <samsonov@google.com> Use StringSwitch instead of long chain of if-else. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179682 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
e38825f490b898644089d5cd9cb90cec681bded8 12-Feb-2013 Krzysztof Parzyszek <kparzysz@codeaurora.org> Add support for the pubnames section to llvm-dwarfdump.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
60bdc5b16e2fc17be184b515a00c2e2a2eb40b89 06-Feb-2013 Eli Bendersky <eliben@google.com> Initial support for DWARF CFI parsing and dumping in LLVM


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
e27a787760ea7c2899da3287002fe8ba316df0d0 26-Jan-2013 Andrew Kaylor <andrew.kaylor@intel.com> Add DIContext::getLineInfoForAddressRange() function and test. This function allows a caller to obtain a table of line information for a function using the function's address and size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
ee7c0d2f931590ccdc53a14b1839e11bb29fc96e 25-Jan-2013 Andrew Kaylor <andrew.kaylor@intel.com> Add support for applying in-memory relocations to the .debug_line section and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
939a4e8b693820d161f362317f7dba9057e66cc7 25-Jan-2013 Eli Bendersky <eliben@google.com> Add command-line flags for DWARF dumping.

Flags for dumping specific DWARF sections added in lib/DebugInfo and
llvm-dwarfdump.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173480 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
72f7bfbf0e02bb11d3e7cca1f9598c5f9d9fa2ca 16-Jan-2013 Eric Christopher <echristo@gmail.com> Split address information for DWARF5 split dwarf proposal. This involves
using the DW_FORM_GNU_addr_index and a separate .debug_addr section which
stays in the executable and is fully linked.

Sneak in two other small changes:

a) Print out the debug_str_offsets.dwo section.
b) Change form we're expecting the entries in the debug_str_offsets.dwo
section to take from ULEB128 to U32.

Add tests for all of this in the fission-cu.ll test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
2af949ddddfaf2feb4a446c754e09d2d8c207ce4 09-Jan-2013 NAKAMURA Takumi <geek4civic@gmail.com> [Object, DebugInfo] Make DWARFContext BE-aware.

test/DebugInfo/member-pointers.ll would not fail in targetting BE any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
dd8e9f395e881972b320d947de88102a0be04b70 07-Jan-2013 Eric Christopher <echristo@gmail.com> Add support for separating strings for the split debug info DWARF5
proposal. This leaves the strings in the skeleton die as strp,
but in all dwo files they're accessed now via DW_FORM_GNU_str_index.

Add support for dumping these sections and modify the fission-cu.ll
testcase to have the correct strings and form. Fix a small bug
in the fixed form sizes routine that involved out of array accesses
for the table and add a FIXME in the extractFast routine to fix
this up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
82de10a34c9432029040ced17129079a7d80904e 03-Jan-2013 Eric Christopher <echristo@gmail.com> Extend the dumping infrastructure to deal with additional
sections for debug info. These are some of the dwo sections from the
DWARF5 split debug info proposal. Update the fission-cu.ll testcase
to show what we should be able to dump more of now.

Work in progress: Ultimately the relocations will be gone for the
dwo section and the strings will be a different form (as well as
the rest of the sections will be included).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
b66fc293a2248564ae341f40882243dacccc42f3 21-Dec-2012 Rafael Espindola <rafael.espindola@gmail.com> Don't skip __DWARF,

Now that we don't merge section and segment names, we don't need to skip the
segment name to get to the section name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
eb6363adf05b65b0ec079ad7cbcb871acdb60a8c 27-Nov-2012 Eric Christopher <echristo@gmail.com> The section is .debug_line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168666 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
63a450a313a9b0a08622e97b53f5dd83f9266143 16-Nov-2012 Alexey Samsonov <samsonov@google.com> [DebugInfo] Generate address ranges for compile units even if .debug_aranges is present: it is often the case that .debug_aranges section contains ranges only for a small subset of compile units. Test cases will be added in separate commits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
d1726a4580f3dc42e2debbfea41acb9e815c06be 12-Nov-2012 Eric Christopher <echristo@gmail.com> Rewrite DIContext interface to take an object. Update all callers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
e9403c1fd6647eda9f6c9d46a75ab9370b2354b6 17-Oct-2012 Eric Christopher <echristo@gmail.com> Use a typedef to reduce some typing and reformat code accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
b69b55f54a66d4df9549927a3cce307855d6de49 17-Oct-2012 Eric Christopher <echristo@gmail.com> Variable name cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166076 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
5eae90d727c64ca5b4b43b110521b38dcd9f0de6 04-Sep-2012 Alexey Samsonov <samsonov@google.com> Add support for fetching inlining context (stack of source code locations)
by instruction address from DWARF.

Add --inlining flag to llvm-dwarfdump to demonstrate and test this functionality,
so that "llvm-dwarfdump --inlining --address=0x..." now works much like
"addr2line -i 0x...", provided that the binary has debug info
(Clang's -gline-tables-only *is* enough).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
38a6381c0a58e013577b1957199128af9573fc20 30-Aug-2012 Alexey Samsonov <samsonov@google.com> Refactor fetching file/line info from DWARFContext to simplify the
code and allow better code reuse. Make the code a bit more conforming
to LLVM code style.
No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
eceb5b99777ba944a0ae3748a0371e9a3aa94d56 27-Aug-2012 Alexey Samsonov <samsonov@google.com> Add basic support for .debug_ranges section to LLVM's DebugInfo library.
This section (introduced in DWARF-3) is used to define instruction address
ranges for functions that are not contiguous and can't be described
by low_pc/high_pc attributes (this is the usual case for inlined subroutines).
The patch is the first step to support fetching complete inlining info from DWARF.

Reviewed by Benjamin Kramer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162657 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
351f83be64057380877615153fe5dc50308ab017 07-Aug-2012 Alexey Samsonov <samsonov@google.com> Fix the representation of debug line table in DebugInfo LLVM library,
and "instruction address -> file/line" lookup.

Instead of plain collection of rows, debug line table for compilation unit is now
treated as the number of row ranges, describing sequences (series of contiguous machine
instructions). The sequences are not always listed in the order of increasing
address, so previously used std::lower_bound() sometimes produced wrong results.
Now the instruction address lookup consists of two stages: finding the correct
sequence, and searching for address in range of rows for this sequence.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
71d94f805514f28730bf39143ee227648d521d09 19-Jul-2012 Alexey Samsonov <samsonov@google.com> DebugInfo library: add support for fetching absolute paths to source files
(instead of basenames) from DWARF. Use this behavior in llvm-dwarfdump tool.

Reviewed by Benjamin Kramer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160496 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
9d26b0ba06479d9debadebce19344169f72407dd 17-Jul-2012 Alexey Samsonov <samsonov@google.com> Improve behavior of DebugInfoEntryMinimal::getSubprogramName() introduced in r159512.
To fetch a subprogram name we should not only inspect the DIE for this subprogram, but optionally inspect
its specification, or its abstract origin (even if there is no inlining), or even specification of an abstract origin.

Reviewed by Benjamin Kramer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
3e25c4a1e3e58bc1d00d894854a29dd2e4e7e88a 02-Jul-2012 Alexey Samsonov <samsonov@google.com> This patch extends the libLLVMDebugInfo which contains a minimalistic DWARF parser:
1) DIContext is now able to return function name for a given instruction address (besides file/line info).
2) llvm-dwarfdump accepts flag --functions that prints the function name (if address is specified by --address flag).
3) test case that checks the basic functionality of llvm-dwarfdump added

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159512 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
2d24e2a396a1d211baaeedf32148a3b657240170 20-Dec-2011 David Blaikie <dblaikie@gmail.com> Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146960 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
9013db3399d2847899ba32daf58844bba1aef6dd 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Reset the state after parsing a line table prologue and remove an unnecessary lookup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139859 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
f5b0accf43a4fa22fc6050daac59441e3c9288b0 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Don't crash when looking up an invalid address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
101b1c5ff16dffd45d03746d92c024740f72ecc6 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Put all the pieces we have together and provide a single accessor to DIContext that provides line information when given an address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
c26ed9b47ff77ca6244feda9e3837b49624605db 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Remove accessors that parse the whole line table section in one go, this can't possibly work.

The address size is specified by the compile unit associated with a line table, there is no global address size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
fe80f1da404d25f93e4a2492b127554a882bd5bb 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Print line tables per compile unit, so they get the right address size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139808 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
34f864fd382156331c61fbb6b7ae4828108b9d69 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: wire up .debug_str dumping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
b848e976110a2c4f0a6a9e252115ba291c844fbe 15-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Add basic support for line tables.

The llvm-dwarfdump output isn't very verbose yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
10df80692cc1594fb06fc02cae6eba177123cfd9 14-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Generate the address lookup table from the DIE tree if .debug_aranges is not available.

Ported from LLDB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
358f4fd9ee078b3c79597fc688855fb48bc1f356 14-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> DWARF: Port support for parsing .debug_aranges section from LLDB and wire it up to llvm-dwarfdump.

This is only one half of it, the part that caches address ranges from the DIEs when .debug_aranges is
not available will be ported soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139680 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp
72c0d7fdd3d0930c7507060e96aec7d7429a8190 13-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> Sketch out a DWARF parser.

This introduces a new library to LLVM: libDebugInfo. It will provide debug information
parsing to LLVM. Much of the design and some of the code is taken from the LLDB project.

It also contains an llvm-dwarfdump tool that can dump the abbrevs and DIEs from an
object file. It can be used to write tests for DWARF input and output easily.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/DebugInfo/DWARFContext.cpp