SBFrame should be a thin wrapper around the core functionality in StackFrame. Currently FindVariable() core functionality is implemented in SBFrame and this will move that into StackFrame.
This is step two in enabling stepping into std::function.
Differential D52247
Refactor FindVariable() core functionality into StackFrame out of SBFrame shafik on Sep 18 2018, 2:01 PM. Authored by
Details SBFrame should be a thin wrapper around the core functionality in StackFrame. Currently FindVariable() core functionality is implemented in SBFrame and this will move that into StackFrame. This is step two in enabling stepping into std::function.
Diff Detail Event TimelineComment Actions LGTM modulo minor.
Comment Actions I agree with Greg, this is the sort of function that we'd pass a ConstString to on the lldb_private side. We haven't documented all the API's we should. This one is pretty self-explanatory, but still we should try to document all the new functions we add, Davide's right there. Other than those nits, this seems fine. Comment Actions Addressing comments: - Adding documentation to FindVariable() - Using ConstString instead of const char * Comment Actions Just a documentation suggestion, but looks good.
|
Make this a "ConstString name" since we need that for lookup anyway? We couldn't do that in SBFrame cause we don't expose our constant strings outside the API, but internally we can use ConstString