You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved rich annotations flag into Disassembler options
This change refactors how the `--rich` flag is handled, based on code review feedback.
- Removed the `enable_rich_annotations` boolean from the API signatures of:
- Disassembler::Disassemble(...)
- Disassembler::PrintInstructions(...)
- StackFrame::Disassemble(...)
- Added a new Disassembler::Option enum value: eOptionRichAnnotations.
- The `--rich` CLI flag now sets the new option bit in CommandObjectDisassemble::DoExecute:
options |= Disassembler::eOptionRichAnnotations;
- Disassembler::PrintInstructions checks the bit to determine whether to enable rich annotations:
const bool enable_rich = (options & eOptionRichAnnotations) != 0;
The SB API remains unchanged and defaults to non-rich output.
Tested via the existing test using `disassemble --rich -f`.
0 commit comments