Fix the hang scenario by handling the extended GDB resume command introduced by the Ampere patch.
Add handling for the same hang scenario on x64 architecture (it was missed to be handled when x64 arch. was recently implemented).
Refactor the code around the handling of the hang scenario, so GDB client does not send a gratuitous break/interrupt request, and rather interrupt the thread waiting, since the break stop reply response was already handled by the interrupt command.
_Refactor the reading memory commands based on GDB types.
This PR includes the following fixes: