summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-symbolizer/Inputs
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-symbolizer] Flush output on bad inputJames Henderson2019-06-041-0/+24
| | | | | | | | | | | | | | | | | | | | One way of using llvm-symbolizer is to interactively within a process write a line from a parent process to llvm-symbolizer's stdin, and then read the output, then write the next line, read, etc. This worked as long as all the lines were good. However, this didn't work prior to this patch if any of the inputs were bad inputs, because the output is not flushed after a bad input, meaning the parent process is sat waiting for output, whilst llvm-symbolizer is sat waiting for input. This patch flushes the output after every invocation of symbolizeInput when reading from stdin. It also removes unnecessary flushing when llvm-symbolizer is not reading addresses from stdin, which should give a slight performance boost in these situations. Reviewed by: ikudrin Differential Revision: https://reviews.llvm.org/D62371 llvm-svn: 362511
* llvm-symbolizer: Extract individual test cases now that it's easier to use ↵David Blaikie2019-01-2417-0/+97
| | | | | | | | | | directly (without a piped input file) Pulling out the split-dwarf tests by way of example of how I think llvm-symbolizer should be tested going forward. Open to debate/discussion, though. llvm-svn: 352004
* llvm-symbolizer/print_context.c test: Make debug info path independentDavid Blaikie2017-07-301-0/+0
| | | | llvm-svn: 309518
* llvm-symbolizer: Make test portable using an explicit object file rather ↵David Blaikie2017-07-301-0/+0
| | | | | | than the host compiler llvm-svn: 309517
* Add GNU_discriminator support for inline callsites in llvm-symbolizer.Dehao Chen2017-04-173-8/+14
| | | | | | | | | | | | | | Summary: LLVM symbolize cannot recognize GNU_discriminator for inline callsites. This patch adds support for it. Reviewers: dblaikie Reviewed By: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32134 llvm-svn: 300486
* Add missing test cases from r293697/D29094David Blaikie2017-02-013-0/+13
| | | | | | Differential Revision: https://reviews.llvm.org/D29368 llvm-svn: 293785
* [llvm-symbolizer] Print out non-address lines verbatim.Mike Aizatsky2016-01-071-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D15876 llvm-svn: 257115
* [Symbolizer]: Add -pretty-print optionHemant Kulkarni2015-11-111-0/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D13671 llvm-svn: 252798
* Reverting r252760Colin LeMahieu2015-11-111-0/+0
| | | | llvm-svn: 252770
* [Symbolizer]: Add -pretty-print optionHemant Kulkarni2015-11-111-0/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D13671 llvm-svn: 252760
* [llvm-symbolizer] Use the export table if no symbols are presentReid Kleckner2015-10-163-1/+21
| | | | | | | | This lets us make guesses about symbols in third party DLLs without debug info, like MSVCR120.dll or kernel32.dll. dbghelp does the same thing. llvm-svn: 250582
* [llvm-symbolizer] Add -print-address optionHemant Kulkarni2015-10-122-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D13518 llvm-svn: 250086
* [llvm-symbolizer] Reverting r250067Colin LeMahieu2015-10-121-1/+0
| | | | llvm-svn: 250072
* [llvm-symbolizer] Add -print-address optionHemant Kulkarni2015-10-121-0/+1
| | | | | | Differential Revision http://reviews.llvm.org/D13518 llvm-svn: 250067
* Address review comments, remove error case and return 0 instead as required ↵Reid Kleckner2015-10-091-2/+0
| | | | | | by tests llvm-svn: 249785
* [llvm-symbolizer] Make --relative-address work with DWARF contextsReid Kleckner2015-10-093-0/+21
| | | | | | | | | | | | | | | | Summary: Previously the relative address flag only affected PDB debug info. Now both DIContext implementations always expect to be passed virtual addresses. llvm-symbolizer is now responsible for adding ImageBase to module offsets when --relative-offset is passed. Reviewers: zturner Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12883 llvm-svn: 249784
* [Object] Search for architecures by name in ↵Frederic Riss2015-06-222-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | MachOUniversalBinary::getObjectForArch() The reason we need to search by name rather than by Triple::ArchType is to handle subarchitecture correclty. There is no different ArchType for the x86_64h architecture (it identifies itself as x86_64), or for the various ARM subarches. The only way to get to the subarch slice in an universal binary is to search by name. This issue led to hard to debug and transient symbolication failures in Asan tests (it mostly works, because the files are very similar). This also affects the Profiling infrastucture as it is the other user of that API. Reviewers: samsonov, bogner Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10604 llvm-svn: 240339
* llvm-symbolizer: teach it about PowerPC64 ELF function descriptorsJay Foad2014-11-071-0/+0
| | | | | | | | | | | | | | | | | Summary: Teach llvm-symbolizer about PowerPC64 ELF function descriptors. Symbols in the .opd section point to function descriptors, the first word of which is a pointer to the real function. For the purposes of symbolizing we pretend that the symbol points directly to the function. This is enough to get decent function names in stack traces for unoptimized binaries, which fixes the sanitizer print-stack-trace test on PowerPC64 Linux. Reviewers: kcc, willschm, samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6110 llvm-svn: 221514
* [llvm-symbolizer] Introduce the -dsym-hint option.Alexander Potapenko2014-10-177-0/+48
llvm-symbolizer will consult one of the .dSYM paths passed via -dsym-hint if it fails to find the .dSYM bundle at the default location. llvm-svn: 220004
OpenPOWER on IntegriCloud