https://bugs.llvm.org/show_bug.cgi?id=45981
Bug ID: 45981
Summary: StringRef::getAsInteger doesn't support "+1"
Product: lldb
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: jing...@apple.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org
(lldb) set set interpreter.expand-regex-aliases 1
(lldb) jump +1
thread jump --by +1
error: invalid line offset: '+1'.
And indeed:
(lldb) thread jump --by +1
error: invalid line offset: '+1'.
The option parser calls:
option_arg.getAsInteger(0, m_line_offset);
where m_line_offset it the storage for the integer read in. Either
StringRef::getAsInteger should support this, or we should strip off the leading
+.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev