In responding to the question here: https://discourse.llvm.org/t/creating-nested-synthetic-children/90997/3 it became clear that getting the persistent variable/type results from the expression parser was much harder than it needed to be. I filed a couple issues for this: https://github.com/llvm/llvm-project/issues/201952 https://github.com/llvm/llvm-project/issues/201949 though after thinking about this a bit more, I decided to go with dedicated API for getting Persistent Expression variables & types. We don't allow redefinitions of persistent variables and types within the same Target, so a "FirstType" API didn't make sense, nor did one returning a list of types or values. Plus, this will be easier to discover.
5 lines
80 B
C
5 lines
80 B
C
int main() {
|
|
int test_var = 10; // Set a breakpoint here
|
|
return test_var;
|
|
}
|