[lldb] Allow to register frame recognizers applied beyond the first instruction
authorRoman Podoliaka <roman.podoliaka@gmail.com>
Sun, 29 Aug 2021 15:26:15 +0000 (17:26 +0200)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sun, 29 Aug 2021 15:28:46 +0000 (17:28 +0200)
commit54c496dad6f28f1ab663f1b30401fe460709d50d
tree9f6d36c62398faac4ac5a09270573d911f3e9194
parentb28c3b9d9f4292d7779a0e2661d308f1230c6ecd
[lldb] Allow to register frame recognizers applied beyond the first instruction

It is currently possible to register a frame recognizer, but it will be applied if and only if the frame's PC points to the very first instruction of the specified function, which limits usability of this feature.

The implementation already supports changing this behaviour by passing an additional flag, but it's not possible to set it via the command interface. Fix that.

Reviewed By: jingham

Differential Revision: https://reviews.llvm.org/D108510
lldb/source/Commands/CommandObjectFrame.cpp
lldb/source/Commands/Options.td
lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py