llvm-c166/lldb/test/API/functionalities/scripted_frame_provider
Med Ismail Bennani e9548835fd
[lldb] Fix assert when target frame-provider register succeeds (#208232)
`CommandObjectTargetFrameProviderRegister::DoExecute` never called
`CommandReturnObject::SetStatus()` on its success path.
`CommandObject.cpp` has a `DoExecuteStatusCheck` RAII guard that resets
the result's status to `eReturnStatusInvalid` before `DoExecute` runs,
and asserts on exit that `DoExecute` changed it.
`AppendMessage()`/`AppendMessageWithFormatv()` don't touch status
(unlike AppendError()/SetError(), which call
`SetStatus(eReturnStatusFailed)`), so on the success path the status
stayed eReturnStatusInvalid, tripping the assert.

This went unnoticed because every existing `scripted_frame_provider`
test uses `SBTarget::RegisterScriptedFrameProvider` directly, bypassing
the `target frame-provider register` command entirely. Add a regression
test that exercises the command instead.

Assisted-by: Claude

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2026-07-08 15:25:53 +00:00
..
circular_dependency [lldb] Fix TestFrameProviderCircularDependency.py on Arm (#207804) 2026-07-06 15:44:49 -03:00
pass_through_prefix [lldb] Fix tests on Linux on Arm (32-bit) after #181071 (#191861) 2026-04-13 16:36:10 -03:00
register_command_status [lldb] Fix assert when target frame-provider register succeeds (#208232) 2026-07-08 15:25:53 +00:00
runlock_reentrant_deadlock [lldb] Make ProcessRunLock recursive on the read side per-thread (#201685) 2026-06-11 10:06:37 -07:00
thread_filter [lldb][test] Skip tests for features unsupported on WebAssembly (#207102) 2026-07-02 10:58:30 -07:00
was_hit_deadlock [lldb] Fix deadlock when scripted frame providers load on private state thread (#191913) 2026-04-14 17:33:57 -07:00
main.cpp
Makefile
python_helper.py
test_frame_providers.py [lldb] Treat synthetic variables as locals (#204431) 2026-06-29 18:36:44 +02:00
TestScriptedFrameProvider.py [lldb][test] Skip tests for features unsupported on WebAssembly (#207102) 2026-07-02 10:58:30 -07:00