llvm-project/lldb/test/Shell/ObjectFile
Peter Collingbourne c314f5ede8 ObjectFileELF: Test whether reloc_header is non-null instead of asserting.
It is possible for the GetSectionHeaderByIndex lookup to fail because
the previous FindSectionContainingFileAddress lookup found a segment
instead of a section. This is possible if the binary does not have
a PLT (which means that lld will in some circumstances set DT_JMPREL
to 0, which is typically an address that is part of the ELF headers
and not in a section) and may also be possible if the section headers
have been stripped. To handle this possibility, replace the assert
with an if.

Differential Revision: https://reviews.llvm.org/D93438
2021-02-11 15:05:18 -08:00
..
Breakpad [lldb] Mark ObjectFileBreakpad test inputs as non-text 2020-02-25 08:29:41 +01:00
ELF ObjectFileELF: Test whether reloc_header is non-null instead of asserting. 2021-02-11 15:05:18 -08:00
MachO [test] Replace `yaml2obj >` with `yaml2obj -o` and remove unneeded input redirection 2020-08-20 15:01:09 -07:00
PDB [lldb][PDB] Add ObjectFile PDB plugin 2020-10-26 10:28:48 -07:00
PECOFF [test] Replace `yaml2obj >` with `yaml2obj -o` and remove unneeded input redirection 2020-08-20 15:01:09 -07:00
wasm [lldb][wasm] Parse DWO section names 2021-01-14 08:45:02 +01:00
lit.local.cfg Re-land "[test] Split LLDB tests into API, Shell & Unit" 2019-10-09 19:22:02 +00:00