diff options
author | Ebuka Ezike <yerimyah1@gmail.com> | 2025-05-28 10:42:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-28 10:42:54 +0100 |
commit | dc6aac5e3cda76c17295bebee6808b413c1051a2 (patch) | |
tree | c78f47ad859aa5818d5f2c61937228b205e539ae /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 88f61f2c5c0ad9dad9c8df2fb86352629e7572c1 (diff) | |
download | llvm-dc6aac5e3cda76c17295bebee6808b413c1051a2.zip llvm-dc6aac5e3cda76c17295bebee6808b413c1051a2.tar.gz llvm-dc6aac5e3cda76c17295bebee6808b413c1051a2.tar.bz2 |
[Support] [lldb] Fix thread jump #45326 (#135778)
Fixes #45326
When you thread jump by calling
`j +2` or `thread jump --by +2` the offset is not recognised. This
commit fixes that.
---------
Signed-off-by: Ebuka Ezike <yerimyah1@gmail.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 224c523..57c23d5 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -1649,11 +1649,14 @@ public: return Status::FromErrorStringWithFormat("invalid line number: '%s'.", option_arg.str().c_str()); break; - case 'b': + case 'b': { + option_arg.consume_front("+"); + if (option_arg.getAsInteger(0, m_line_offset)) return Status::FromErrorStringWithFormat("invalid line offset: '%s'.", option_arg.str().c_str()); break; + } case 'a': m_load_addr = OptionArgParser::ToAddress(execution_context, option_arg, LLDB_INVALID_ADDRESS, &error); |