Skip to content

Commit 212a401

Browse files
Switched rich annotations CLI flag from -R (--rich) to -v (--variable)
1 parent 7069b6a commit 212a401

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lldb/source/Commands/CommandObjectDisassemble.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Status CommandObjectDisassemble::CommandOptions::SetOptionValue(
154154
}
155155
} break;
156156

157-
case 'R': //< --rich
157+
case 'v': //< --rich variable annotations
158158
enable_rich_annotations = true;
159159
break;
160160

lldb/source/Commands/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ let Command = "disassemble" in {
361361
Desc<"Disassemble function containing this address.">;
362362
def disassemble_options_force : Option<"force", "\\x01">, Groups<[2,3,4,5,7]>,
363363
Desc<"Force disassembly of large functions.">;
364-
def disassemble_options_rich : Option<"rich", "R">,
364+
def disassemble_options_rich : Option<"variable", "v">,
365365
Desc<"Enable rich disassembly annotations for this invocation.">;
366366
}
367367

lldb/test/API/functionalities/rich-disassembler/TestRichDisassembler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_d_original_example_O1(self):
2424
self.assertEqual(process.GetState(), lldb.eStateStopped)
2525

2626
# Run the CLI command and read output from self.res
27-
self.runCmd("disassemble --rich -f", check=True)
27+
self.runCmd("disassemble --variable -f", check=True)
2828
out = self.res.GetOutput()
2929
print(out)
3030

0 commit comments

Comments
 (0)