diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2025-07-31 18:00:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-31 18:00:55 -0700 |
commit | 03bb10bea6edeb6b1cbcb3fc6b590e585ae43ad6 (patch) | |
tree | 36cfdb29837c0467e5433daa1c7c6e5373971f6c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4e596fc2852eddc23fc0cd287eb5cd8e4664855b (diff) | |
download | llvm-03bb10bea6edeb6b1cbcb3fc6b590e585ae43ad6.zip llvm-03bb10bea6edeb6b1cbcb3fc6b590e585ae43ad6.tar.gz llvm-03bb10bea6edeb6b1cbcb3fc6b590e585ae43ad6.tar.bz2 |
[lldb] Clear Frames when changing `disable-language-runtime-unwindplans` (#151208)
This patch uses the "setting changed" callback to clear previously
cached stack frames when
`target.process.disable-language-runtime-unwindplans` is changed. This
is necessary so that changing the setting followed by a `backtrace`
command produces an accurate backtrace.
With this, a user can create a custom command like below in order to
quickly inspect a backtrace created without language plugins.
```
debugger.HandleCommand("settings set target.process.disable-language-runtime-unwindplans true")
debugger.HandleCommand("bt " + command)
debugger.HandleCommand("settings set target.process.disable-language-runtime-unwindplans false")
```
In the future, we may consider implementing this as an option to
`backtrace`. Currently, this process setting is the only way of
affecting the unwinder, and changing the process setting as part of the
backtrace implementation doesn't feel right.
There are no upstream users of this flag, so we cannot write a test for
it here.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions