@@ -110,7 +110,7 @@ class CommandObjectCommandsSource : public CommandObjectParsed {
110110 OptionValueBoolean m_cmd_relative_to_command_file;
111111 };
112112
113- void DoExecute (Args &command, CommandReturnObject &result) override {
113+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
114114 if (command.GetArgumentCount () != 1 ) {
115115 result.AppendErrorWithFormat (
116116 " '%s' takes exactly one executable filename argument.\n " ,
@@ -370,7 +370,7 @@ other command as far as there is only one alias command match.");
370370 ~CommandObjectCommandsAlias () override = default ;
371371
372372protected:
373- void DoExecute (llvm::StringRef raw_command_line,
373+ void DoExecute (llvm::StringRef raw_command_line, std::optional< uint16_t > offset_in_command,
374374 CommandReturnObject &result) override {
375375 if (raw_command_line.empty ()) {
376376 result.AppendError (" 'command alias' requires at least two arguments" );
@@ -625,7 +625,7 @@ class CommandObjectCommandsUnalias : public CommandObjectParsed {
625625 }
626626
627627protected:
628- void DoExecute (Args &args, CommandReturnObject &result) override {
628+ void DoExecute (Args &args, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
629629 CommandObject::CommandMap::iterator pos;
630630 CommandObject *cmd_obj;
631631
@@ -701,7 +701,7 @@ class CommandObjectCommandsDelete : public CommandObjectParsed {
701701 }
702702
703703protected:
704- void DoExecute (Args &args, CommandReturnObject &result) override {
704+ void DoExecute (Args &args, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
705705 CommandObject::CommandMap::iterator pos;
706706
707707 if (args.empty ()) {
@@ -825,7 +825,7 @@ a number follows 'f':"
825825 }
826826 }
827827
828- void DoExecute (Args &command, CommandReturnObject &result) override {
828+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
829829 const size_t argc = command.GetArgumentCount ();
830830 if (argc == 0 ) {
831831 result.AppendError (" usage: 'command regex <command-name> "
@@ -1082,7 +1082,7 @@ class CommandObjectPythonFunction : public CommandObjectRaw {
10821082 bool WantsCompletion () override { return true ; }
10831083
10841084protected:
1085- void DoExecute (llvm::StringRef raw_command_line,
1085+ void DoExecute (llvm::StringRef raw_command_line, std::optional< uint16_t > offset_in_command,
10861086 CommandReturnObject &result) override {
10871087 ScriptInterpreter *scripter = GetDebugger ().GetScriptInterpreter ();
10881088
@@ -1190,7 +1190,7 @@ class CommandObjectScriptingObjectRaw : public CommandObjectRaw {
11901190 }
11911191
11921192protected:
1193- void DoExecute (llvm::StringRef raw_command_line,
1193+ void DoExecute (llvm::StringRef raw_command_line, std::optional< uint16_t > offset_in_command,
11941194 CommandReturnObject &result) override {
11951195 ScriptInterpreter *scripter = GetDebugger ().GetScriptInterpreter ();
11961196
@@ -1931,7 +1931,7 @@ class CommandObjectScriptingObjectParsed : public CommandObjectParsed {
19311931 }
19321932
19331933protected:
1934- void DoExecute (Args &args,
1934+ void DoExecute (Args &args, std::optional< uint16_t > offset_in_command,
19351935 CommandReturnObject &result) override {
19361936 ScriptInterpreter *scripter = GetDebugger ().GetScriptInterpreter ();
19371937
@@ -2023,7 +2023,7 @@ class CommandObjectCommandsScriptImport : public CommandObjectParsed {
20232023 bool silent = false ;
20242024 };
20252025
2026- void DoExecute (Args &command, CommandReturnObject &result) override {
2026+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
20272027 if (command.empty ()) {
20282028 result.AppendError (" command script import needs one or more arguments" );
20292029 return ;
@@ -2250,7 +2250,7 @@ class CommandObjectCommandsScriptAdd : public CommandObjectParsed,
22502250 io_handler.SetIsDone (true );
22512251 }
22522252
2253- void DoExecute (Args &command, CommandReturnObject &result) override {
2253+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
22542254 if (GetDebugger ().GetScriptLanguage () != lldb::eScriptLanguagePython) {
22552255 result.AppendError (" only scripting language supported for scripted "
22562256 " commands is currently Python" );
@@ -2373,7 +2373,7 @@ class CommandObjectCommandsScriptList : public CommandObjectParsed {
23732373
23742374 ~CommandObjectCommandsScriptList () override = default ;
23752375
2376- void DoExecute (Args &command, CommandReturnObject &result) override {
2376+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
23772377 m_interpreter.GetHelp (result, CommandInterpreter::eCommandTypesUserDef);
23782378
23792379 result.SetStatus (eReturnStatusSuccessFinishResult);
@@ -2391,7 +2391,7 @@ class CommandObjectCommandsScriptClear : public CommandObjectParsed {
23912391 ~CommandObjectCommandsScriptClear () override = default ;
23922392
23932393protected:
2394- void DoExecute (Args &command, CommandReturnObject &result) override {
2394+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
23952395 m_interpreter.RemoveAllUser ();
23962396
23972397 result.SetStatus (eReturnStatusSuccessFinishResult);
@@ -2420,7 +2420,7 @@ class CommandObjectCommandsScriptDelete : public CommandObjectParsed {
24202420 }
24212421
24222422protected:
2423- void DoExecute (Args &command, CommandReturnObject &result) override {
2423+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
24242424
24252425 llvm::StringRef root_cmd = command[0 ].ref ();
24262426 size_t num_args = command.GetArgumentCount ();
@@ -2604,7 +2604,7 @@ class CommandObjectCommandsContainerAdd : public CommandObjectParsed {
26042604 std::string m_long_help;
26052605 bool m_overwrite = false ;
26062606 };
2607- void DoExecute (Args &command, CommandReturnObject &result) override {
2607+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
26082608 size_t num_args = command.GetArgumentCount ();
26092609
26102610 if (num_args == 0 ) {
@@ -2684,7 +2684,7 @@ class CommandObjectCommandsContainerDelete : public CommandObjectParsed {
26842684 }
26852685
26862686protected:
2687- void DoExecute (Args &command, CommandReturnObject &result) override {
2687+ void DoExecute (Args &command, std::optional< uint16_t > offset_in_command, CommandReturnObject &result) override {
26882688 size_t num_args = command.GetArgumentCount ();
26892689
26902690 if (num_args == 0 ) {
0 commit comments