llvm-capstone/lldb/test
Greg Clayton d4a141ef93 Switch over to using the LLVM archive parser for BSD archives.
Our LLDB parser didn't correctly handle archives of all flavors on different systems, it currently only correctly handled BSD archives, normal and thin, on macOS, but I noticed that it was getting incorrect information when decoding a variety of archives on linux. There were subtle changes to how names were encoded that we didn't handle correctly and we also didn't set the result of GetObjectSize() correctly as there was some bad math. This didn't matter when exracting .o files from .a files for LLDB because the size was always way too big, but it was big enough to at least read enough bytes for each object within the archive.

This patch does the following:
- switch over to use LLVM's archive parser and avoids previous code duplication
- remove values from ObjectContainerBSDArchive::Object that we don't use like:
  - uid
  - gid
  - mode
- fix ths ObjectContainerBSDArchive::Object::file_size value to be correct
- adds tests to test that we get the correct module specifications

Differential Revision: https://reviews.llvm.org/D159408
2023-09-05 16:54:05 -07:00
..
API Switch over to using the LLVM archive parser for BSD archives. 2023-09-05 16:54:05 -07:00
Shell [lldb] Add syntax color highlighting for disassembly 2023-09-01 14:47:45 -07:00
Unit [lldb] Make TSan errors fatal when running the test suite 2023-08-07 13:20:38 -07:00
CMakeLists.txt [lldb] Remove reproducer test suite (NFC) 2023-05-26 09:33:40 -07:00
lit.cfg.py [NFC][Py Reformat] Reformat python files in lldb 2023-05-25 12:54:09 -07:00
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00