Skip to content

Commit a84c26a

Browse files
committed
[lldb][lldb-dap] remove + prefix
1 parent e413cc9 commit a84c26a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/source/Commands/CommandObjectThread.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,11 +1649,15 @@ class CommandObjectThreadJump : public CommandObjectParsed {
16491649
return Status::FromErrorStringWithFormat("invalid line number: '%s'.",
16501650
option_arg.str().c_str());
16511651
break;
1652-
case 'b':
1652+
case 'b': {
1653+
if (option_arg.starts_with('+'))
1654+
option_arg.consume_front("+");
1655+
16531656
if (option_arg.getAsInteger(0, m_line_offset))
16541657
return Status::FromErrorStringWithFormat("invalid line offset: '%s'.",
16551658
option_arg.str().c_str());
16561659
break;
1660+
}
16571661
case 'a':
16581662
m_load_addr = OptionArgParser::ToAddress(execution_context, option_arg,
16591663
LLDB_INVALID_ADDRESS, &error);

0 commit comments

Comments
 (0)