Skip to content

Commit 6e17f77

Browse files
Add comment clarifying annotation column length check in Instruction::Dump
1 parent 09c4d04 commit 6e17f77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Core/Disassembler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,8 @@ void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size,
736736
if (sc.function)
737737
func_load_addr = sc.function->GetAddress().GetLoadAddress(target_sp.get());
738738

739-
739+
// Only annotate if the current disassembly line is short enough
740+
// to keep annotations aligned past the desired annotation_column.
740741
if(ss.GetSizeOfLastLine() < annotation_column) {
741742

742743
std::vector<std::string> annotations;

0 commit comments

Comments
 (0)