From bec27bbe839a61a3e154b472e1407416ecf9d6e0 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Fri, 3 May 2019 15:01:14 -0500 Subject: [PATCH] [gdb] Fix the last remaining compiler warning 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] --- server/JsDbg.Gdb/GdbDebugger.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/JsDbg.Gdb/GdbDebugger.cs b/server/JsDbg.Gdb/GdbDebugger.cs index 493800c2..d57b5ba5 100755 --- a/server/JsDbg.Gdb/GdbDebugger.cs +++ b/server/JsDbg.Gdb/GdbDebugger.cs @@ -531,7 +531,9 @@ public async Task GetCurrentProcessThreads() { string response = await this.QueryDebuggerPython("GetCurrentProcessThreads()"); return ParsePythonArrayToIntegers(response).ToArray(); } - public async Task TebAddress() { return 0; } + + public Task TebAddress() { return Task.FromResult(0UL); } + public uint TargetProcess { get { return this.targetProcess;