Displaying 1 result from an estimated 1 matches for "f_ret".
Did you mean:
__ret
2019 Oct 09
3
[RFC] Adopt Dexter and use it to run debuginfo-tests
...n f(s, 0);
return 0;
}
// DEBUGGER: r
// DEBUGGER: p s
// CHECK: a =
// DEBUGGER: p s.a[0]
// CHECK: = 0
// DEBUGGER: p s.a[1]
// CHECK: = 1
// DEBUGGER: p s.a[7]
```
Dexter: ```
struct S { int a[8]; };
int f(struct S s, unsigned i) {
return s.a[i]; // DexLabel('f_ret')
}
int main(int argc, const char **argv) {
struct S s = {{0, 1, 2, 3, 4, 5, 6, 7}};
if (f(s, 4) == 4)
return f(s, 0);
return 0;
}
// DexExpectWatchValue('s.a[0]', '0', on_line='f_ret')
// DexExpectWatchValue('s.a[1]', '1', o...