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>
This commit is contained in:
Rebecca Cran 2022-04-10 19:16:58 -06:00 коммит произвёл mergify[bot]
Родитель daa6cd8763
Коммит 5299568ce6
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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)