mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 02:38:07 +08:00
[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`.
This commit is contained in:
committed by
GitHub
parent
a5e8e77f7c
commit
7c832fca53
@@ -5420,8 +5420,6 @@ public:
|
||||
m_all_options.Append(&m_class_options, LLDB_OPT_SET_1 | LLDB_OPT_SET_2,
|
||||
LLDB_OPT_SET_ALL);
|
||||
m_all_options.Finalize();
|
||||
|
||||
AddSimpleArgumentList(eArgTypeRunArgs, eArgRepeatOptional);
|
||||
}
|
||||
|
||||
~CommandObjectTargetFrameProviderRegister() override = default;
|
||||
@@ -5434,7 +5432,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void DoExecute(Args &launch_args, CommandReturnObject &result) override {
|
||||
void DoExecute(Args &command, CommandReturnObject &result) override {
|
||||
ScriptedMetadataSP metadata_sp = std::make_shared<ScriptedMetadata>(
|
||||
m_class_options.GetName(), m_class_options.GetStructuredData());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user