Skip to content

Commit 7c832fc

Browse files
authored
[lldb] Fix command line of target frame-provider register (#167803)
So far, the syntax was `target frame-provider register <cmd-options> [<run-args>]`. Note the optional `run-args` at the end. They are completely ignored by the actual command, but the command line parser still accepts them. This commit removes them. This was probably a copy-paste error from `CommandObjectProcessLaunch` which was probably used as a blue-print for `target frame-provider register`.
1 parent a5e8e77 commit 7c832fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5420,8 +5420,6 @@ class CommandObjectTargetFrameProviderRegister : public CommandObjectParsed {
54205420
m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2,
54215421
LLDB_OPT_SET_ALL);
54225422
m_all_options.Finalize();
5423-
5424-
AddSimpleArgumentList(eArgTypeRunArgs, eArgRepeatOptional);
54255423
}
54265424

54275425
~CommandObjectTargetFrameProviderRegister() override = default;
@@ -5434,7 +5432,7 @@ class CommandObjectTargetFrameProviderRegister : public CommandObjectParsed {
54345432
}
54355433

54365434
protected:
5437-
void DoExecute(Args &launch_args, CommandReturnObject &result) override {
5435+
void DoExecute(Args &command, CommandReturnObject &result) override {
54385436
ScriptedMetadataSP metadata_sp = std::make_shared<ScriptedMetadata>(
54395437
m_class_options.GetName(), m_class_options.GetStructuredData());
54405438

0 commit comments

Comments
 (0)