[llvm] Fix crash due to un-checked error in LVReaderHandler::handleArchive method (PR #118951)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 09:32:35 PST 2024
CarlosAlbertoEnciso wrote:
This is the directory for the `llvm-debuginfo-analyzer` [tests](https://github.com/llvm/llvm-project/tree/main/llvm/test/tools/llvm-debuginfo-analyzer). They are divided into `DWARF`, `COFF` and `WebAssembly`.
You can check the tests for `llvm-dwarfdump` [archive](https://github.com/llvm/llvm-project/blob/main/llvm/test/tools/llvm-dwarfdump/X86/archive.test). There is already an input file.
The test file can be in the `DWARF` directory.
The command line for the test file would include some lines like:
```
; RUN: llvm-debuginfo-analyzer --attribute=format \
; RUN: --print=scopes \
; RUN: %S/../../dsymutil/Inputs/libfat-test.a 2>&1 | \
; RUN: FileCheck --strict-whitespace %s
; CHECK: Logical View:
; CHECK-NEXT: [000] {File} 'libfat-test.a' -> Mach-O 64-bit x86-64
; CHECK-EMPTY:
; CHECK-NEXT: [001] {CompileUnit} 'fat-test.c'
more lines ...
```
Additional information: [filecheck](https://llvm.org/docs/CommandGuide/FileCheck.html), [llvm testing](https://llvm.org/docs/TestingGuide.html).
Any question, please do let me know. Happy to help.
https://github.com/llvm/llvm-project/pull/118951
More information about the llvm-commits
mailing list