diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-23 11:25:16 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-23 12:34:24 -0800 |
commit | 6672a4f5b64f6b5a17cba63b421fcf313003b5b8 (patch) | |
tree | b148cfcc95032b096392d78e27332b759fe472d5 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 1624cba7824967c15ac36d9fdd41bb9878463dbe (diff) | |
download | llvm-6672a4f5b64f6b5a17cba63b421fcf313003b5b8.zip llvm-6672a4f5b64f6b5a17cba63b421fcf313003b5b8.tar.gz llvm-6672a4f5b64f6b5a17cba63b421fcf313003b5b8.tar.bz2 |
[lldb/Commands] Fix, rename and document column number arg to breakpoint set.
We were incorrectly parsing the -C argument to breakpoint set as the
column breakpoint, even though according to the help this should be the
breakpoint command. This fixes that by renaming the option to -u, adding
it to help, and adding a test case.
Differential revision: https://reviews.llvm.org/D73284
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 7c4c50e..6913a9c 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -274,7 +274,7 @@ public: m_func_name_type_mask |= eFunctionNameTypeBase; break; - case 'C': + case 'u': if (option_arg.getAsInteger(0, m_column)) error.SetErrorStringWithFormat("invalid column number: %s", option_arg.str().c_str()); |