[Symbolizer] Ignore unknown additional symbolizer markup fields
authorDaniel Thornburgh <dthorn@google.com>
Fri, 23 Jun 2023 22:24:48 +0000 (15:24 -0700)
committerDaniel Thornburgh <dthorn@google.com>
Wed, 28 Jun 2023 17:39:28 +0000 (10:39 -0700)
commit7b31a73ffe87e6302ab433da8128058fce8f54bd
tree98ce4653d8efdde84b3cf0ed6d76ede02815ebde
parent703c08362adcc7990fa5ddc444c41c5efdccbc2b
[Symbolizer] Ignore unknown additional symbolizer markup fields

The symbolizer markup syntax is structured such that fields require only
previous fields for their interpretation; this was originally intended
to make adding new fields a natural extension mechanism for existing
elements. This codifies this into the spec and makes the behavior of the
llvm-symbolizer match. Extra fields are now warned about, but ignored,
rather than ignoring the whole element.

Reviewed By: mcgrathr

Differential Revision: https://reviews.llvm.org/D153821
llvm/docs/SymbolizerMarkupFormat.rst
llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
llvm/test/DebugInfo/symbolize-filter-markup-bt.test
llvm/test/DebugInfo/symbolize-filter-markup-pc.test
llvm/test/DebugInfo/symbolize-filter-markup-reset.test