aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-strings/llvm-strings.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15llvm-strings: support the `-n` optionSaleem Abdulrasool1-3/+13
Permit specifying the match length (the `-n` or `--bytes` option). The deprecated `-[length]` form is not supported as an option. This allows the strings tool to display only the specified length strings rather than the hardcoded default length of >= 4. llvm-svn: 286914
2016-11-14Revert "Revert "llvm-strings: support printing the filename""Saleem Abdulrasool1-4/+17
Change the dynamic files to static in the hope that it will actually fix the transient errors that Ive been unable to reproduce. llvm-svn: 286891
2016-11-14Revert "llvm-strings: support printing the filename"Renato Golin1-17/+4
Also, Revert "test: remove the archive before modifying it" Revert "test: explicitly use gnu format" This reverts commits r286778, r286729 and r286767, as they are randomly failing on many bots (AArch64, x86_64). llvm-svn: 286820
2016-11-13llvm-strings: support printing the filenameSaleem Abdulrasool1-4/+17
This adds support for the `-f` or `--print-file-name` option for strings. llvm-svn: 286767
2016-11-12llvm-strings: trivialise logic until we support more optionsSaleem Abdulrasool1-66/+10
Until we have handling for ignoring unloaded sections, simplify the logic to the point of triviality. This fixes the scanning of archives, particularly when embedded in archives. llvm-svn: 286727
2016-11-12llvm-strings: ensure that the last string is correctly printedSaleem Abdulrasool1-2/+4
We would ignore the last string that appeared if the file ended with a printable character. Ensure that we get the last string. llvm-svn: 286706
2016-11-11Fix build failure, update llvm-strings for the new Error APIMehdi Amini1-1/+1
llvm-svn: 286563
2016-11-11llvm-strings: explicitly include cctypeSaleem Abdulrasool1-1/+2
Include the cctype header to try to fix windows bots. llvm-svn: 286558
2016-11-11llvm-strings: introduce basic strings toolSaleem Abdulrasool1-0/+120
This is a replacement to binutils' string tool. It prints strings found in a binary (object file, executable, or archive library). It is rather bare and not functionally equivalent, however, it lays the groundwork necessary for the strings tool, enabling iterative development of features to reach feature parity. llvm-svn: 286556