ec.getImageService().addSymbols(filename, address)\r
except:\r
print "Warning: not possible to load symbols from %s at 0x%x" % (filename, address)\r
- pass\r
+\r
+def is_aarch64(ec):\r
+ success = True\r
+ try:\r
+ # Try to access a Aarch64 specific register\r
+ ec.getRegisterService().getValue('X0')\r
+ except:\r
+ success = False\r
+ return success\r
\r
class ArmPlatform:\r
def __init__(self, sysmembase=None, sysmemsize=None, fvs={}):\r
if (pc >= debug_info[0]) and (pc < debug_info[0] + debug_info[1]):\r
found = True\r
if found == False:\r
- info = self.debug_info_table.load_symbols_at(pc)\r
- debug_infos.append(info)\r
+ try:\r
+ info = self.debug_info_table.load_symbols_at(pc)\r
+ debug_infos.append(info)\r
+ except:\r
+ pass\r
\r
#self.debug_info_table.load_symbols_at(pc)\r
else:\r
except:\r
# Debugger exception could be excepted if DRAM has not been initialized or if we have not started to run from DRAM yet\r
print "Note: no symbols have been found in System Memory (possible cause: the UEFI permanent memory has been installed yet)"\r
- pass\r