Skip to content

Commit

Permalink
mi: Add file-exec-and-symbols
Browse files Browse the repository at this point in the history
Required for MI clients
  • Loading branch information
dd86k committed Aug 28, 2024
1 parent e72b507 commit 5a02aef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/adapters/mi.d
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ class MIAdapter : Adapter
reply(AdapterError(format("Invalid target type: %s", targetType)));
}
goto Lread;
// (gdb, lldb) Set target path and symbols as the same
// file-exec-and-symbols PATH
case "file-exec-and-symbols":
if (args.length < 2)
{
reply(AdapterError("Need target executable path"));
goto Lread;
}

exec = args[1].dup;
goto Lread;
case "-exec-arguments":
// If arguments given, set, otherwise, clear.
execArguments = args.length >= 1 ? args[1..$].dup : null;
Expand Down

0 comments on commit 5a02aef

Please sign in to comment.