Skip to content

Commit

Permalink
retrieve the list of features supported by gdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Dec 22, 2020
1 parent 766b323 commit 75601e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ private async Task<List<LaunchCommand>> GetInitializeCommands()
{
commands.Add(new LaunchCommand("-interpreter-exec console \"set pagination off\""));
commands.Add(new LaunchCommand("-interpreter-exec console \"set disassembly-flavor intel\""));
commands.Add(new LaunchCommand("-list-features", successResultsHandler: res => {
Features = res.FindAllStrings("result");
Engine.Logger.WriteLine(string.Join(", ", Features));
return Task.FromResult(0);
}));
}

// When user specifies loading directives then the debugger cannot auto load symbols, the MIEngine must intervene at each solib-load event and make a determination
Expand Down Expand Up @@ -2171,6 +2176,8 @@ private Task<string> ResetConsole()

public bool IsChildProcessDebugging => _childProcessHandler != null;

public string[] Features { get; private set; }

public bool MapCurrentSrcToCompileTimeSrc(string currentSrc, out string compilerSrc)
{
if (_launchOptions.SourceMap != null)
Expand Down

0 comments on commit 75601e6

Please sign in to comment.