]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: Fix target initialisation in cmd_load_symbols.py
authorRebecca Cran <rebecca@bsdio.com>
Mon, 11 Apr 2022 01:16:58 +0000 (19:16 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 3 May 2022 09:12:27 +0000 (09:12 +0000)
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>
ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py

index 89d2f28ba27d97b39c43d373267fbd2b8a586ad7..cb4db148dedf6bbc7805abd949d4bf6e8e8c135b 100644 (file)
@@ -85,11 +85,10 @@ else:
 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