Skip to content

Commit 982b4b6

Browse files
authored
[lldb] Fix declaration of thread argument in CommandObjectThreadStepWithTypeAndScope (#95146)
`thread step-in` (and other step commands) take a `<thread-index>`, not a `<thread-id>`.
1 parent 163d036 commit 982b4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Commands/CommandObjectThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class CommandObjectThreadStepWithTypeAndScope : public CommandObjectParsed {
383383
eCommandProcessMustBePaused),
384384
m_step_type(step_type), m_step_scope(step_scope),
385385
m_class_options("scripted step") {
386-
AddSimpleArgumentList(eArgTypeThreadID, eArgRepeatOptional);
386+
AddSimpleArgumentList(eArgTypeThreadIndex, eArgRepeatOptional);
387387

388388
if (step_type == eStepTypeScripted) {
389389
m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2,

0 commit comments

Comments
 (0)