summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/Scripts
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2022-04-10 19:16:58 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-05-03 09:12:27 +0000
commit5299568ce6737f0225c7cb5b7a6baef409994856 (patch)
tree4542db2f5820fa0926642cc5232aa09e13896d6e /ArmPlatformPkg/Scripts
parentdaa6cd876383ae16d17dc41e65635d8f9ac66d93 (diff)
downloadedk2-5299568ce6737f0225c7cb5b7a6baef409994856.tar.gz
edk2-5299568ce6737f0225c7cb5b7a6baef409994856.tar.bz2
edk2-5299568ce6737f0225c7cb5b7a6baef409994856.zip
ArmPlatformPkg: Fix target initialisation in cmd_load_symbols.py
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>
Diffstat (limited to 'ArmPlatformPkg/Scripts')
-rw-r--r--ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py b/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py
index 89d2f28ba2..cb4db148de 100644
--- a/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py
+++ b/ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py
@@ -85,11 +85,10 @@ else:
debugger = Debugger()
# Initialisation commands
-ec = debugger.getExecutionContext(0)
+ec = debugger.getCurrentExecutionContext()
ec.getExecutionService().stop()
-ec.getExecutionService().waitForStop()
# in case the execution context reference is out of date
-ec = debugger.getExecutionContext(0)
+ec = debugger.getCurrentExecutionContext()
try:
armplatform_debugger = edk2_debugger.ArmPlatformDebugger(ec, report_file, regions, verbose)