Improve the way the ObjC data formatters fetch a valid frame to use for running expre...
authorEnrico Granata <egranata@apple.com>
Wed, 30 Jul 2014 21:07:50 +0000 (21:07 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 30 Jul 2014 21:07:50 +0000 (21:07 +0000)
commitba8eb12046455cc9cddb99c63a17c131516a22b9
tree218eb201c0fbd5347cee61dcd12ac8892c70bde0
parentd07cf400ab587b8d5a6adc169e222d2ff48eca1f
Improve the way the ObjC data formatters fetch a valid frame to use for running expressions against

This is not bullet-proof, as you might end up running in a thread where you shouldn't, but the previous policy had the same drawback
Also, in cases where code-running formatters were being recursively applied, the previous policy caused deeper levels to fail, whereas this will at least get such scenarios to function
We might eventually want to consider disqualifying certain threads/frames for "viability", but I'd rather keep it simple until complexity is proven to be necessary

llvm-svn: 214337
lldb/include/lldb/DataFormatters/CXXFormatterFunctions.h
lldb/source/DataFormatters/CXXFormatterFunctions.cpp
lldb/source/DataFormatters/NSDictionary.cpp