aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2024-06-11 13:14:59 -0700
committerGitHub <noreply@github.com>2024-06-11 13:14:59 -0700
commit982b4b6f4d5ddf04ed5e85aea7074c9b26f29673 (patch)
tree861700d8e630b6def978d2662cfe72777c009dd6 /lldb/source/Commands/CommandObjectThread.cpp
parent163d036d64609bf59183664aec244da5078dc1f1 (diff)
downloadllvm-982b4b6f4d5ddf04ed5e85aea7074c9b26f29673.zip
llvm-982b4b6f4d5ddf04ed5e85aea7074c9b26f29673.tar.gz
llvm-982b4b6f4d5ddf04ed5e85aea7074c9b26f29673.tar.bz2
[lldb] Fix declaration of thread argument in CommandObjectThreadStepWithTypeAndScope (#95146)
`thread step-in` (and other step commands) take a `<thread-index>`, not a `<thread-id>`.
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index db96ee2..bb2be56 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -383,7 +383,7 @@ public:
eCommandProcessMustBePaused),
m_step_type(step_type), m_step_scope(step_scope),
m_class_options("scripted step") {
- AddSimpleArgumentList(eArgTypeThreadID, eArgRepeatOptional);
+ AddSimpleArgumentList(eArgTypeThreadIndex, eArgRepeatOptional);
if (step_type == eStepTypeScripted) {
m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2,