Skip to content

Commit 4300fa0

Browse files
committed
[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]
1 parent 3e0d4ca commit 4300fa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/JsDbg.Gdb/GdbDebugger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@ public async Task<uint[]> GetCurrentProcessThreads() {
531531
string response = await this.QueryDebuggerPython("GetCurrentProcessThreads()");
532532
return ParsePythonArrayToIntegers(response).ToArray();
533533
}
534-
public async Task<ulong> TebAddress() { return 0; }
534+
535+
public Task<ulong> TebAddress() { return Task.FromResult(0UL); }
536+
535537
public uint TargetProcess {
536538
get {
537539
return this.targetProcess;

0 commit comments

Comments
 (0)