From e3d495e1b9e358038e5e66d871347d59d7c1ba0f Mon Sep 17 00:00:00 2001 From: Harry Liebel Date: Thu, 18 Jul 2013 21:32:43 +0000 Subject: ArmPlatformPkg/Ds5: Added Aarch64 support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14491 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py') diff --git a/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py b/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py index 4867af1938..b6108d6a19 100644 --- a/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py +++ b/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py @@ -66,7 +66,15 @@ def load_symbol_from_file(ec, filename, address, verbose = False): ec.getImageService().addSymbols(filename, address) except: print "Warning: not possible to load symbols from %s at 0x%x" % (filename, address) - pass + +def is_aarch64(ec): + success = True + try: + # Try to access a Aarch64 specific register + ec.getRegisterService().getValue('X0') + except: + success = False + return success class ArmPlatform: def __init__(self, sysmembase=None, sysmemsize=None, fvs={}): @@ -189,8 +197,11 @@ class ArmPlatformDebugger: if (pc >= debug_info[0]) and (pc < debug_info[0] + debug_info[1]): found = True if found == False: - info = self.debug_info_table.load_symbols_at(pc) - debug_infos.append(info) + try: + info = self.debug_info_table.load_symbols_at(pc) + debug_infos.append(info) + except: + pass #self.debug_info_table.load_symbols_at(pc) else: @@ -218,4 +229,3 @@ class ArmPlatformDebugger: except: # Debugger exception could be excepted if DRAM has not been initialized or if we have not started to run from DRAM yet print "Note: no symbols have been found in System Memory (possible cause: the UEFI permanent memory has been installed yet)" - pass -- cgit v1.2.3