Skip to content

Commit

Permalink
[gdb] Fix the last remaining compiler warning
Browse files Browse the repository at this point in the history
GdbDebugger.cs(534,34): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [.../JsDbg/server/JsDbg.Gdb/JsDbg.Gdb.csproj]
  • Loading branch information
cbiesinger committed May 3, 2019
1 parent 3e0d4ca commit 4300fa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/JsDbg.Gdb/GdbDebugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ public async Task<uint[]> GetCurrentProcessThreads() {
string response = await this.QueryDebuggerPython("GetCurrentProcessThreads()");
return ParsePythonArrayToIntegers(response).ToArray();
}
public async Task<ulong> TebAddress() { return 0; }

public Task<ulong> TebAddress() { return Task.FromResult(0UL); }

public uint TargetProcess {
get {
return this.targetProcess;
Expand Down

0 comments on commit 4300fa0

Please sign in to comment.