The debugger in Arm Development Studio 2021.2 doesn't work with
"ec = debugger.getExecutionContext(0)" because it's subsequently unable
to access memory. Fix it by switching to
"ec = debugger.getCurrentExecutionContext()".
The documentation for waitForStop() says:
"It is not needed after a call to stop() because stop() is blocking."
So, remove the call to waitForStop.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
debugger = Debugger()\r
\r
# Initialisation commands\r
-ec = debugger.getExecutionContext(0)\r
+ec = debugger.getCurrentExecutionContext()\r
ec.getExecutionService().stop()\r
-ec.getExecutionService().waitForStop()\r
# in case the execution context reference is out of date\r
-ec = debugger.getExecutionContext(0)\r
+ec = debugger.getCurrentExecutionContext()\r
\r
try:\r
armplatform_debugger = edk2_debugger.ArmPlatformDebugger(ec, report_file, regions, verbose)\r