[Lldb-commits] [lldb] [lldb][test] Add expedited-stack-memory backtrace/locals packet test (PR #205897)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 1 18:53:43 PDT 2026
jasonmolenda wrote:
This all looks reasonable to me. It's good to have a test that debugserver is expediting the stack memory needed for a simple frame-chain stack walk, without sending any packets. It's critical for performance but untested. This C-based test case for different types of local variables (combining stack and heap memory access to print summaries) is a good start. The use of a `volatile` register to try to suppress compiler optimization isn't needed - at `-O0` the compiler will generate code even when utterly unnecessary. I've written test cases that look like
```
int main() {
int c = 10;
c++;
c++;
c++
return c;
}```
https://github.com/llvm/llvm-project/pull/205897
More information about the lldb-commits
mailing list