Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename the 'Attributes' class to 'Attribute'. It's going to represent a ↵ | Bill Wendling | 2012-12-19 | 2 | -14/+14 | |
| | | | | | | single attribute in the future. llvm-svn: 170502 | |||||
* | Sort includes for all of the .h files under the 'lib' tree. These were | Chandler Carruth | 2012-12-04 | 1 | -1/+1 | |
| | | | | | | | | | | missed in the first pass because the script didn't yet handle include guards. Note that the script is now able to handle all of these headers without manual edits. =] llvm-svn: 169224 | |||||
* | The section is .debug_line. | Eric Christopher | 2012-11-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 168666 | |||||
* | Add some basic support for the fission addr forms to DebugInfo. | Eric Christopher | 2012-11-16 | 1 | -0/+10 | |
| | | | | llvm-svn: 168223 | |||||
* | [DebugInfo] Generate address ranges for compile units even if .debug_aranges ↵ | Alexey Samsonov | 2012-11-16 | 3 | -24/+39 | |
| | | | | | | 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. llvm-svn: 168144 | |||||
* | Rewrite DIContext interface to take an object. Update all callers. | Eric Christopher | 2012-11-12 | 4 | -59/+105 | |
| | | | | llvm-svn: 167757 | |||||
* | Fixup for r167558: Store raw pointer (instead of reference) to RelocMap in ↵ | Alexey Samsonov | 2012-11-12 | 3 | -20/+28 | |
| | | | | | | DIContext. This is needed to prevent crashes because of dangling reference if the clients don't provide RelocMap to DIContext constructor. llvm-svn: 167728 | |||||
* | Add a relocation visitor to lib object. This works via caching relocated | Eric Christopher | 2012-11-07 | 3 | -9/+32 | |
| | | | | | | | values in a map that can be passed to consumers. Add a testcase that ensures this works for llvm-dwarfdump. llvm-svn: 167558 | |||||
* | Reformat and 80-column this. It's not strictly conforming | Eric Christopher | 2012-10-30 | 1 | -21/+29 | |
| | | | | | | yet, but it's better. llvm-svn: 167053 | |||||
* | Use a typedef to reduce some typing and reformat code accordingly. | Eric Christopher | 2012-10-16 | 1 | -12/+17 | |
| | | | | llvm-svn: 166077 | |||||
* | Variable name cleanup. | Eric Christopher | 2012-10-16 | 1 | -4/+4 | |
| | | | | llvm-svn: 166076 | |||||
* | Mark unimplemented copy constructors and copy assignment operators as ↵ | Craig Topper | 2012-09-18 | 1 | -2/+2 | |
| | | | | | | LLVM_DELETED_FUNCTION. llvm-svn: 164090 | |||||
* | Stop casting away const qualifier needlessly. | Roman Divacky | 2012-09-05 | 2 | -2/+2 | |
| | | | | llvm-svn: 163258 | |||||
* | Remove unused typedefs gcc4.8 warns about. | Roman Divacky | 2012-09-05 | 1 | -1/+0 | |
| | | | | llvm-svn: 163225 | |||||
* | Add support for fetching inlining context (stack of source code locations) | Alexey Samsonov | 2012-09-04 | 8 | -79/+279 | |
| | | | | | | | | | | | 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). llvm-svn: 163128 | |||||
* | Refactor fetching file/line info from DWARFContext to simplify the | Alexey Samsonov | 2012-08-30 | 4 | -63/+127 | |
| | | | | | | | | code and allow better code reuse. Make the code a bit more conforming to LLVM code style. No functionality change. llvm-svn: 162895 | |||||
* | Fix compile error when building with C++11 - clang thinks that PRIx64 is a ↵ | Marshall Clow | 2012-08-27 | 1 | -2/+2 | |
| | | | | | | user-defined suffix or something llvm-svn: 162704 | |||||
* | DWARFDebugRangeList.cpp: Use PRIx64 for uint64_t as format string. | NAKAMURA Takumi | 2012-08-27 | 1 | -2/+3 | |
| | | | | llvm-svn: 162665 | |||||
* | [DebugInfo] fixup for r162657: update CMakeLists.txt | Alexey Samsonov | 2012-08-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 162659 | |||||
* | Add basic support for .debug_ranges section to LLVM's DebugInfo library. | Alexey Samsonov | 2012-08-27 | 5 | -5/+136 | |
| | | | | | | | | | | | 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. llvm-svn: 162657 | |||||
* | Add support for some missing DW_FORM_*. | Eric Christopher | 2012-08-24 | 2 | -0/+77 | |
| | | | | | TODO: Fix code duplication and coding style. llvm-svn: 162525 | |||||
* | Formatting. | Eric Christopher | 2012-08-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 162524 | |||||
* | Formatting cleanup. | Eric Christopher | 2012-08-23 | 1 | -7/+7 | |
| | | | | llvm-svn: 162499 | |||||
* | Add an assert here in case parsing gave us a NULL compile unit. | Eric Christopher | 2012-08-23 | 1 | -1/+3 | |
| | | | | llvm-svn: 162498 | |||||
* | 80-col. | Eric Christopher | 2012-08-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 162422 | |||||
* | Tidy. | Eric Christopher | 2012-08-23 | 1 | -3/+3 | |
| | | | | llvm-svn: 162421 | |||||
* | Fix the representation of debug line table in DebugInfo LLVM library, | Alexey Samsonov | 2012-08-07 | 3 | -48/+134 | |
| | | | | | | | | | | | | | 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. llvm-svn: 161414 | |||||
* | DebugInfo library: add support for fetching absolute paths to source files | Alexey Samsonov | 2012-07-19 | 4 | -7/+39 | |
| | | | | | | | | (instead of basenames) from DWARF. Use this behavior in llvm-dwarfdump tool. Reviewed by Benjamin Kramer. llvm-svn: 160496 | |||||
* | Improve behavior of DebugInfoEntryMinimal::getSubprogramName() introduced in ↵ | Alexey Samsonov | 2012-07-17 | 3 | -28/+35 | |
| | | | | | | | | | | | 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. llvm-svn: 160365 | |||||
* | Fix a bug in DebugInfo lib, extend a comment for one of the methods | Alexey Samsonov | 2012-07-04 | 2 | -3/+3 | |
| | | | | llvm-svn: 159707 | |||||
* | This patch extends the libLLVMDebugInfo which contains a minimalistic DWARF ↵ | Alexey Samsonov | 2012-07-02 | 7 | -25/+108 | |
| | | | | | | | | | | 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 llvm-svn: 159512 | |||||
* | Fix a C++11 UDL conflict. | Benjamin Kramer | 2012-04-04 | 1 | -1/+1 | |
| | | | | | | Still not fixed in the standard ;) llvm-svn: 154044 | |||||
* | More dead code removal (using -Wunreachable-code) | David Blaikie | 2012-01-20 | 1 | -2/+0 | |
| | | | | llvm-svn: 148578 | |||||
* | Unweaken vtables as per ↵ | David Blaikie | 2011-12-20 | 2 | -0/+3 | |
| | | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960 | |||||
* | LLVMBuild: Remove trailing newline, which irked me. | Daniel Dunbar | 2011-12-12 | 1 | -1/+0 | |
| | | | | llvm-svn: 146409 | |||||
* | build/CMake: Finish removal of add_llvm_library_dependencies. | Daniel Dunbar | 2011-11-29 | 1 | -4/+0 | |
| | | | | llvm-svn: 145420 | |||||
* | Audited all the format strings in libDebugInfo and fixed those that didn't ↵ | Benjamin Kramer | 2011-11-05 | 4 | -13/+14 | |
| | | | | | | match the types. llvm-svn: 143814 | |||||
* | Reduce the offsets in DwarfDebugInfoEntry to 32 bit, they're printed with %x and | Benjamin Kramer | 2011-11-05 | 2 | -3/+3 | |
| | | | | | | | | that breaks on big-endian machines. I have to clean up the 32/64 bit confusion in libDebugInfo some day. llvm-svn: 143812 | |||||
* | Add more PRI.64 macros for MSVC and use them throughout the codebase. | Benjamin Kramer | 2011-11-05 | 4 | -9/+11 | |
| | | | | llvm-svn: 143799 | |||||
* | build: Add initial cut at LLVMBuild.txt files. | Daniel Dunbar | 2011-11-03 | 1 | -0/+23 | |
| | | | | llvm-svn: 143634 | |||||
* | lib/DebugInfo/DWARFDebugLine.cpp: De-Unicode-ify. | NAKAMURA Takumi | 2011-10-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 141484 | |||||
* | Whitespace | NAKAMURA Takumi | 2011-10-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 141483 | |||||
* | DWARF: avoid unnecessary map lookups. | Benjamin Kramer | 2011-09-21 | 1 | -6/+5 | |
| | | | | llvm-svn: 140260 | |||||
* | Namespacify. | Benjamin Kramer | 2011-09-16 | 1 | -8/+10 | |
| | | | | llvm-svn: 139892 | |||||
* | DWARF: Reset the state after parsing a line table prologue and remove an ↵ | Benjamin Kramer | 2011-09-15 | 3 | -5/+5 | |
| | | | | | | unnecessary lookup. llvm-svn: 139859 | |||||
* | DWARF: Don't crash when looking up an invalid address. | Benjamin Kramer | 2011-09-15 | 1 | -0/+6 | |
| | | | | llvm-svn: 139846 | |||||
* | DWARF: Put all the pieces we have together and provide a single accessor to ↵ | Benjamin Kramer | 2011-09-15 | 3 | -1/+57 | |
| | | | | | | DIContext that provides line information when given an address. llvm-svn: 139836 | |||||
* | DWARF: Remove accessors that parse the whole line table section in one go, ↵ | Benjamin Kramer | 2011-09-15 | 4 | -58/+39 | |
| | | | | | | | | 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. llvm-svn: 139835 | |||||
* | DWARF: Print line tables per compile unit, so they get the right address size. | Benjamin Kramer | 2011-09-15 | 3 | -5/+23 | |
| | | | | llvm-svn: 139808 | |||||
* | DWARF: wire up .debug_str dumping. | Benjamin Kramer | 2011-09-15 | 4 | -17/+25 | |
| | | | | llvm-svn: 139799 |