summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/json
AgeCommit message (Collapse)Author
2025-10-01[lldb][RISCV] Fixed TestSymbolFileJSON for RISC-V (#161497)Georgiy Samoylov
This test failed during testing on the RISC-V target because we couldn't strip the main label from the binary. main is dynamically linked when the -fPIC flag is enabled. The RISC-V ABI requires that executables support loading at arbitrary addresses to enable shared libraries and secure loading (ASLR). In PIC mode, function addresses cannot be hardcoded in the code. Instead, code is generated to load addresses from the GOT/PLT tables, which are initialized by the dynamic loader. The reference to main thus ends up in .dynsym and is dynamically bound. We cannot strip main or any other dynamically linked functions because these functions are referenced indirectly via dynamic linking tables (.plt and .got). Removing these symbols would break the dynamic linking mechanism needed to resolve function addresses at runtime, causing the executable to fail to correctly call them.
2025-03-07Add complete ObjectFileJSON support for sections. (#129916)Greg Clayton
Sections now support specifying: - user IDs - file offset/size - alignment - flags - bool values for fake, encrypted and thread specific sections
2025-03-04Add subsection and permissions support to ObjectFileJSON. (#129801)Greg Clayton
This patch adds the ability to create subsections in a section and allows permissions to be specified.
2025-03-04[lldb] Fix ObjectFileJSON to section addresses. (#129648)Greg Clayton
ObjectFileJSON sections didn't work, they were set to zero all of the time. Fixed the bug and fixed the test to ensure it was testing real values.
2024-10-10[lldb][test] Use `xcrun -f strip` for API tests on Darwin (#111842)Vladislav Dzhidzhoev
A follow-up for https://github.com/llvm/llvm-project/pull/111816. This is to fix buildbot failure https://lab.llvm.org/staging/#/builders/195/builds/4242. TestSymbolFileJSON.py doesn't pass with llvm-strip on macOS. Apparently, llvm-strip/llvm-objcopy can't clean symbols from Mach-O nlists.
2023-05-25[NFC][Py Reformat] Reformat python files in lldbJonas Devlieghere
This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black` (23.1.0). If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run `git checkout --ours <yourfile>` and then reformat it with black. RFC: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential revision: https://reviews.llvm.org/D151460
2023-04-17[lldb] Fix TestObjectFileJSON and TestSymbolFileJSONJonas Devlieghere
- Separate the two test and only have TestSymbolFileJSON rely on strip. - Use different file names to make sure LLDB reloads the module. This should address all the post commit review from D148062.