[all-commits] [llvm/llvm-project] 179285: [symbolizer] Change reaction on invalid input
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Wed Aug 30 03:55:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1792852f86dc75efa1f44d46b1a0daf386d64afa
https://github.com/llvm/llvm-project/commit/1792852f86dc75efa1f44d46b1a0daf386d64afa
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2023-08-30 (Wed, 30 Aug 2023)
Changed paths:
M llvm/docs/CommandGuide/llvm-symbolizer.rst
M llvm/docs/ReleaseNotes.rst
M llvm/include/llvm/DebugInfo/Symbolize/DIPrinter.h
M llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
M llvm/test/Support/interrupts.test
M llvm/test/tools/llvm-symbolizer/debuginfod.test
M llvm/test/tools/llvm-symbolizer/file-prefix.test
M llvm/test/tools/llvm-symbolizer/flag-grouping.test
M llvm/test/tools/llvm-symbolizer/flush-output.s
M llvm/test/tools/llvm-symbolizer/functions.s
A llvm/test/tools/llvm-symbolizer/get-input-file.test
M llvm/test/tools/llvm-symbolizer/input-base.test
M llvm/test/tools/llvm-symbolizer/invalid-input-address.test
M llvm/test/tools/llvm-symbolizer/options-from-env.test
M llvm/test/tools/llvm-symbolizer/output-style-empty-line.test
M llvm/test/tools/llvm-symbolizer/output-style-json-code.test
M llvm/test/tools/llvm-symbolizer/output-style-json-data.test
M llvm/test/tools/llvm-symbolizer/output-style-json-frame.ll
M llvm/test/tools/llvm-symbolizer/sym-verbose.test
M llvm/test/tools/llvm-symbolizer/sym.test
M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
Log Message:
-----------
[symbolizer] Change reaction on invalid input
If llvm-symbolizer finds a malformed command, it echoes it to the
standard output. New versions of binutils (starting from 2.39) allow to
specify an address by a symbols. Implementation of this feature in
llvm-symbolizer makes the current reaction on invalid input
inappropriate. Almost any invalid command may be treated as a symbol
name, so the right reaction should be "symbol not found" in such case.
The exception are commands that are recognized but have incorrect
syntax, like "FILE:FILE:". The utility must produce descriptive
diagnostic for such input and route it to the stderr.
This change implements the new reaction on invalid input and is a
prerequisite for implementation of symbol lookup in llvm-symbolizer.
Differential Revision: https://reviews.llvm.org/D157210
More information about the All-commits
mailing list