mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-26 16:40:56 +00:00
`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> |
||
|---|---|---|
| .. | ||
| circular_dependency | ||
| pass_through_prefix | ||
| register_command_status | ||
| runlock_reentrant_deadlock | ||
| thread_filter | ||
| was_hit_deadlock | ||
| main.cpp | ||
| Makefile | ||
| python_helper.py | ||
| test_frame_providers.py | ||
| TestScriptedFrameProvider.py | ||