summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-22 14:04:47 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-22 14:04:47 +0000
commit6e9ed5b80dc544de7a312fb729e3c200065e8221 (patch)
tree0459032b7de7ef308b78dec74b267c423fc6573e /ArmPlatformPkg
parenta8e812dea5567a9ec582e3c14cb90c0090d3f052 (diff)
downloadedk2-6e9ed5b80dc544de7a312fb729e3c200065e8221.tar.gz
edk2-6e9ed5b80dc544de7a312fb729e3c200065e8221.tar.bz2
edk2-6e9ed5b80dc544de7a312fb729e3c200065e8221.zip
ArmPlatformPkg/Scripts/Ds5: Updated DS-5 scripts to be used by DS-5 v5.12
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13875 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r--ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py b/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
index f922a7283e..71e5a3ccd5 100644
--- a/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
+++ b/ArmPlatformPkg/Scripts/Ds5/edk2_debugger.py
@@ -55,10 +55,15 @@ def dump_system_table(ec, mem_base, mem_size):
def load_symbol_from_file(ec, filename, address):
try:
- ec.executeDSCommand("discard-symbol-file \'%s\'" % filename)
+ ec.getImageService().addSymbols(filename, address)
except:
- pass
- ec.executeDSCommand("add-symbol-file \'%s\' 0x%X" % (filename, address))
+ try:
+ # We could get an exception if the symbols are already loaded
+ ec.getImageService().unloadSymbols(filename)
+ ec.getImageService().addSymbols(filename, address)
+ except:
+ print "Warning: not possible to load symbols from %s" % filename
+ pass
class ArmPlatform:
def __init__(self, sysmembase=None, sysmemsize=None, fvs={}):