summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-symbolizer
Commit message (Collapse)AuthorAgeFilesLines
...
* [C++] Use 'nullptr'. Tools edition.Craig Topper2014-04-252-14/+14
| | | | llvm-svn: 207176
* Use unique_ptr to manage ParsedBinariesAndObjects in LLVMSymbolizerDavid Blaikie2014-04-222-8/+8
| | | | llvm-svn: 206866
* [DWARF parser] Turn DILineInfo into a struct.Alexey Samsonov2014-04-181-13/+5
| | | | | | | | | | Immutable DILineInfo doesn't bring any benefits and complicates code. Also, use std::string instead of SmallString<16> for file and function names - their length can vary significantly. No functionality change. llvm-svn: 206654
* [C++11] Introduce ObjectFile::symbols() to use range-based loops.Alexey Samsonov2014-03-172-12/+10
| | | | | | | | | | | | Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3081 llvm-svn: 204031
* [C++11] Use ObjectFile::sections() in commandline llvm toolsAlexey Samsonov2014-03-131-4/+3
| | | | llvm-svn: 203802
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-062-5/+4
| | | | | | | | | | This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
* [C++11] Replace OwningPtr::take() with OwningPtr::release().Ahmed Charles2014-03-051-2/+2
| | | | llvm-svn: 202957
* llvm-symbolizer: use dynamic symbol table if the regular one is stripped.Alexey Samsonov2014-02-262-29/+44
| | | | llvm-svn: 202265
* Change the begin and end methods in ObjectFile to match the style guide.Rafael Espindola2014-02-101-2/+2
| | | | llvm-svn: 201108
* Simplify the handling of iterators in ObjectFile.Rafael Espindola2014-01-301-6/+2
| | | | | | | | | | | | None of the object file formats reported error on iterator increment. In retrospect, that is not too surprising: no object format stores symbols or sections in a linked list or other structure that requires chasing pointers. As a consequence, all error checking can be done on begin() and end(). This reduces the text segment of bin/llvm-readobj in my machine from 521233 to 518526 bytes. llvm-svn: 200442
* llvm-symbolizer: make mangled name heuristic apply to all symbolsEd Maste2014-01-162-8/+5
| | | | | | PR: http://llvm.org/pr18431 Review: http://llvm-reviews.chandlerc.com/D2552 llvm-svn: 199404
* Return an ErrorOr<Binary *> from createBinary.Rafael Espindola2014-01-151-9/+12
| | | | | | | | I did write a version returning ErrorOr<OwningPtr<Binary> >, but it is too cumbersome to use without std::move. I will keep the patch locally and submit when we switch to c++11. llvm-svn: 199326
* Check the error code and save a call to sys::fs::exists.Rafael Espindola2014-01-151-4/+2
| | | | llvm-svn: 199293
* Re-sort #include lines again, prior to moving headers around.Chandler Carruth2014-01-131-1/+0
| | | | llvm-svn: 199080
* llvm-symbolizer: add --obj flag to specify a single object file that should ↵Alexey Samsonov2013-12-241-17/+24
| | | | | | be symbolized. llvm-svn: 197988
* [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.NAKAMURA Takumi2013-12-101-0/+1
| | | | llvm-svn: 196908
* llvm-symbolizer: don't always run demangler on global object namesAlexey Samsonov2013-10-162-1/+8
| | | | llvm-svn: 192781
* llvm-symbolizer: use real path when looking for debug binary locationAlexey Samsonov2013-08-261-2/+11
| | | | llvm-svn: 189250
* llvm-symbolizer: add support for .gnu_debuglink sectionAlexey Samsonov2013-08-141-0/+83
| | | | llvm-svn: 188386
* LLVMSymbolize.cpp: Fix build. Triple::ArchType is not a namespace.NAKAMURA Takumi2013-07-171-1/+1
| | | | llvm-svn: 186494
* llvm-symbolizer: be more careful with colons in file namesAlexey Samsonov2013-07-171-8/+7
| | | | llvm-svn: 186493
* llvm-symbolizer: Recognize a drive letter on win32. Then "REQUIRES: shell" ↵NAKAMURA Takumi2013-07-011-0/+5
| | | | | | | can be removed. FIXME: Could we use llvm::sys::Path here? llvm-svn: 185322
* llvm-symbolizer: don't leave dangling pointers after flushing ↵Alexey Samsonov2013-06-282-0/+5
| | | | | | LLVMSymbolizer. Add a destructor. llvm-svn: 185154
* llvm-symbolizer: skip leading underscore in Mach-O symbol table entriesAlexey Samsonov2013-06-281-0/+3
| | | | llvm-svn: 185151
* llvm-symbolizer: make name demangling a public static method of LLVMSymbolizerAlexey Samsonov2013-06-282-9/+11
| | | | llvm-svn: 185143
* llvm-symbolizer: add support for Mach-O universal binariesAlexey Samsonov2013-06-283-42/+101
| | | | llvm-svn: 185137
* [llvm-symbolizer] rewrite r183213 in a more clear wayAlexey Samsonov2013-06-072-7/+10
| | | | llvm-svn: 183526
* [llvm-symbolizer] Avoid calling slow getSymbolSize for Mach-O files. Assume ↵Alexey Samsonov2013-06-042-9/+20
| | | | | | that symbols with zero size are in fact large enough. llvm-svn: 183213
* Correct handling invalid filename in llvm-symbolizerAlexey Samsonov2013-06-031-2/+2
| | | | llvm-svn: 183102
* At Jim Grosbach's request detemplate Object/MachO.h.Rafael Espindola2013-04-181-1/+1
| | | | | | | We are still able to handle mixed endian objects by swapping one struct at a time. llvm-svn: 179778
* Convert MachOObjectFile to a template.Rafael Espindola2013-04-091-1/+1
| | | | | | | For now it is templated only on being 64 or 32 bits. I will add little/big endian next. llvm-svn: 179097
* llvm-symbolizer: correctly parse filenames given in quotesAlexey Samsonov2013-04-051-5/+18
| | | | llvm-svn: 178859
* Fix for r177390: map values are pointers, use DeleteContainerSeconds() ↵Alexey Samsonov2013-03-191-1/+2
| | | | | | instead of .clear() llvm-svn: 177409
* llvm-symbolizer: flush internal caches functionalityDmitry Vyukov2013-03-192-0/+5
| | | | llvm-svn: 177390
* clang-formatize llvm-symbolizer codeAlexey Samsonov2013-02-153-78/+69
| | | | llvm-svn: 175255
* llvm-symbolizer: speedup symbol lookupDmitry Vyukov2013-02-142-43/+73
| | | | llvm-svn: 175158
* Print error messages from MemoryBuffer::getFile() in llvm-symbolizerAlexey Samsonov2013-02-051-1/+2
| | | | llvm-svn: 174346
* Replace global std::string with const char[]Alexey Samsonov2013-02-042-2/+2
| | | | llvm-svn: 174332
* llvm-symbolizer: factor out bits of the tool into separate ↵Alexey Samsonov2013-01-224-288/+381
| | | | | | LLVMSymbolize.{h,cpp} files. No functionality change. llvm-svn: 173159
* llvm-symbolizer: add DATA command that allows to symbolize global variables.Dmitry Vyukov2013-01-111-34/+88
| | | | | | | | | | Example: >DATA bin/clang 0x26e8e40 <llvm::SparcSubTypeKV <40799808 416 The last line is address and size of the object. llvm-svn: 172180
* Sort the #include lines for tools/...Chandler Carruth2012-12-041-1/+0
| | | | | | | | Again, tools are trickier to pick the main module header for than library source files. I've started to follow the pattern of using LLVMContext.h when it is included as a stub for program source files. llvm-svn: 169252
* Rewrite DIContext interface to take an object. Update all callers.Eric Christopher2012-11-121-63/+3
| | | | llvm-svn: 167757
* Don't use __cxa_demangle under MSVC (which doesn't have it)Alexander Potapenko2012-11-121-1/+5
| | | | llvm-svn: 167730
* [ASan] Add llvm-symbolizer from to tools/Alexander Potapenko2012-11-123-0/+409
This is the second and last (2/2) part of a change that moves llvm-symbolizer to llvm/tools/, which will allow to build it with both cmake and configure+make. llvm-svn: 167723
OpenPOWER on IntegriCloud