Add function.mangled-name key for FormatEntity to show the mangled
function names in backtraces.
rdar://54088244
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Paths
| Differential D71237
[FormatEntity] Add mangled function name support ClosedPublic Authored by mib on Dec 9 2019, 5:05 PM.
Details
Summary Add function.mangled-name key for FormatEntity to show the mangled rdar://54088244 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diff Detail
Event Timelinejasonmolenda added inline comments.
JDevlieghere added inline comments.
Comment Actions If you make the frame format such that it is easy to pull the mangled & demangled names out of the format output (e.g. #${function.mangled-name}# ???${function.name}) then you could check that the two names are different, and for extra credit you could use "lang c++ demangle" to demangle it and match it against the regular mangled name... Comment Actions No opinion on the code, but I think the test needs to be cleaned up _a lot_.
mib marked 4 inline comments as done. Comment ActionsRemove unnecessary Language FunctionNameRepresention changes.
This revision is now accepted and ready to land.Dec 11 2019, 5:05 PM Closed by commit rG7eaae939b9bb: [FormatEntity] Add mangled function name support (authored by mib). · Explain WhyDec 12 2019, 10:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 233189 lldb/docs/use/formatting.rst
lldb/include/lldb/Core/FormatEntity.h
lldb/source/Core/FormatEntity.cpp
lldb/test/Shell/Settings/Inputs/main.cpp
lldb/test/Shell/Settings/TestFrameFormatMangling.test
|
Let's be consistent with the braces. Either all single-line statements should have them, or none.