diff --git a/appveyor.yml b/appveyor.yml index 4609eff7..6b78ceb2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 0.21.{build} +version: 0.22.{build} pull_requests: do_not_increment_build_number: true diff --git a/source/nanoFramework.Tools.DebugLibrary.Net/nanoFramework.Tools.DebugLibrary.Net.csproj b/source/nanoFramework.Tools.DebugLibrary.Net/nanoFramework.Tools.DebugLibrary.Net.csproj index 634981e5..65cde349 100644 --- a/source/nanoFramework.Tools.DebugLibrary.Net/nanoFramework.Tools.DebugLibrary.Net.csproj +++ b/source/nanoFramework.Tools.DebugLibrary.Net/nanoFramework.Tools.DebugLibrary.Net.csproj @@ -16,7 +16,7 @@ nanoFramework.Tools.Debugger.Net - 0.4.0-preview021 + 0.4.0-preview02 This .NET library provides a debug client for nanoFramework devices using USB or Serial connection to a board. nanoFramework project contributors nanoFramework debug library for .NET diff --git a/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs b/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs index 1817a0c2..9335ff37 100644 --- a/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs +++ b/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs @@ -1230,25 +1230,25 @@ public async Task ResumeThreadAsync(uint pid) return IncomingMessage.IsPositiveAcknowledge(await PerformRequestAsync(Commands.c_Debugging_Thread_Resume, 0, cmd)); } - public async Task GetThreadException(uint pid) + public Task GetThreadExceptionAsync(uint pid) { Commands.Debugging_Thread_GetException cmd = new Commands.Debugging_Thread_GetException(); cmd.m_pid = pid; - return await GetRuntimeValueAsync(Commands.c_Debugging_Thread_GetException, cmd); + return GetRuntimeValueAsync(Commands.c_Debugging_Thread_GetException, cmd); } - public async Task GetThreadAsync(uint pid) + public Task GetThreadAsync(uint pid) { Commands.Debugging_Thread_Get cmd = new Commands.Debugging_Thread_Get(); cmd.m_pid = pid; - return await GetRuntimeValueAsync(Commands.c_Debugging_Thread_Get, cmd); + return GetRuntimeValueAsync(Commands.c_Debugging_Thread_Get, cmd); } - public async Task UnwindThreadAsync(uint pid, uint depth) + public Task UnwindThreadAsync(uint pid, uint depth) { Commands.Debugging_Thread_Unwind cmd = new Commands.Debugging_Thread_Unwind(); @@ -1547,23 +1547,23 @@ internal async Task SetArrayElementAsync(uint heapblock, uint index, byte[ return IncomingMessage.IsPositiveAcknowledge(await PerformRequestAsync(Commands.c_Debugging_Value_SetArray, 0, cmd)); } - public async Task GetScratchPadValue(int index) + public Task GetScratchPadValueAsync(int index) { Commands.Debugging_Value_GetScratchPad cmd = new Commands.Debugging_Value_GetScratchPad(); cmd.m_index = index; - return await GetRuntimeValueAsync(Commands.c_Debugging_Value_GetScratchPad, cmd); + return GetRuntimeValueAsync(Commands.c_Debugging_Value_GetScratchPad, cmd); } - public async Task AllocateObjectAsync(int scratchPadLocation, uint td) + public Task AllocateObjectAsync(int scratchPadLocation, uint td) { Commands.Debugging_Value_AllocateObject cmd = new Commands.Debugging_Value_AllocateObject(); cmd.m_index = scratchPadLocation; cmd.m_td = td; - return await GetRuntimeValueAsync(Commands.c_Debugging_Value_AllocateObject, cmd); + return GetRuntimeValueAsync(Commands.c_Debugging_Value_AllocateObject, cmd); } public async Task AllocateStringAsync(int scratchPadLocation, string val) @@ -1583,7 +1583,7 @@ public async Task AllocateStringAsync(int scratchPadLocation, stri return rtv; } - public async Task AllocateArrayAsync(int scratchPadLocation, uint td, int depth, int numOfElements) + public Task AllocateArrayAsync(int scratchPadLocation, uint td, int depth, int numOfElements) { Commands.Debugging_Value_AllocateArray cmd = new Commands.Debugging_Value_AllocateArray(); @@ -1592,7 +1592,7 @@ public async Task AllocateArrayAsync(int scratchPadLocation, uint cmd.m_depth = (uint)depth; cmd.m_numOfElements = (uint)numOfElements; - return await GetRuntimeValueAsync(Commands.c_Debugging_Value_AllocateArray, cmd); + return GetRuntimeValueAsync(Commands.c_Debugging_Value_AllocateArray, cmd); } public async Task ResolveTypeAsync(uint td) @@ -1628,7 +1628,6 @@ public async Task AllocateArrayAsync(int scratchPadLocation, uint public async Task ResolveMethodAsync(uint md) { Commands.Debugging_Resolve_Method.Result result = (Commands.Debugging_Resolve_Method.Result)m_typeSysLookup.Lookup(TypeSysLookup.Type.Method, md); - ; if (result == null) { @@ -1660,7 +1659,6 @@ public async Task AllocateArrayAsync(int scratchPadLocation, uint public async Task ResolveFieldAsync(uint fd) { Commands.Debugging_Resolve_Field.Result result = (Commands.Debugging_Resolve_Field.Result)m_typeSysLookup.Lookup(TypeSysLookup.Type.Field, fd); - ; if (result == null) { @@ -1952,14 +1950,14 @@ public async Task GetVirtualMethodAsync(uint md, RuntimeValue obj) // //return bmp; //} - public async Task InjectButtonsAsync(uint pressed, uint released) + public Task InjectButtonsAsync(uint pressed, uint released) { Commands.Debugging_Button_Inject cmd = new Commands.Debugging_Button_Inject(); cmd.m_pressed = pressed; cmd.m_released = released; - await PerformRequestAsync(Commands.c_Debugging_Button_Inject, 0, cmd); + return PerformRequestAsync(Commands.c_Debugging_Button_Inject, 0, cmd); } public async Task> GetThreadsAsync() @@ -2037,7 +2035,7 @@ public async Task> GetThreadsAsync() return cmdReply; } - public async Task Info_SetJMCAsyn(bool fJMC, ReflectionDefinition.Kind kind, uint index) + public async Task Info_SetJMCAsync(bool fJMC, ReflectionDefinition.Kind kind, uint index) { Commands.Debugging_Info_SetJMC cmd = new Commands.Debugging_Info_SetJMC(); diff --git a/source/nanoFramework.Tools.DebugLibrary.UWP/nanoFramework.Tools.DebugLibrary.UWP.csproj b/source/nanoFramework.Tools.DebugLibrary.UWP/nanoFramework.Tools.DebugLibrary.UWP.csproj index 43ac0bbe..f6434076 100644 --- a/source/nanoFramework.Tools.DebugLibrary.UWP/nanoFramework.Tools.DebugLibrary.UWP.csproj +++ b/source/nanoFramework.Tools.DebugLibrary.UWP/nanoFramework.Tools.DebugLibrary.UWP.csproj @@ -17,7 +17,7 @@ 512 {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} nanoFramework.Tools.Debugger.UWP - 0.4.0-preview021 + 0.4.0-preview022 This UWP library provides a debug client for nanoFramework devices using USB or Serial connection to a board. nanoFramework project contributors nanoFramework debug library for UWP