]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Add "-" in a re to parse line in .map file
authorFeng, Bob C <bob.c.feng@intel.com>
Tue, 13 Aug 2019 01:56:37 +0000 (09:56 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 14 Aug 2019 02:24:36 +0000 (10:24 +0800)
https://bugzilla.tianocore.org/show_bug.cgi?id=2058

If there are multiple module instances with different
guid used in .dsc file, the temp path of the module will
contain 8-4-4-4-12 format guid string. So "-" need to be
added into the regular expression for parsing it correctly.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/Common/Misc.py

index 26d149c270408b7f127c52502b80f2e752ee9d76..554ec010dd68d8fb5d2d1b5e27f78f1735956df5 100644 (file)
@@ -164,7 +164,7 @@ def _parseGeneral(lines, efifilepath, varnames):
     status = 0    #0 - beginning of file; 1 - PE section definition; 2 - symbol table\r
     secs  = []    # key = section name\r
     varoffset = []\r
-    symRe = re.compile('^([\da-fA-F]+):([\da-fA-F]+) +([\.:\\\\\w\?@\$]+) +([\da-fA-F]+)', re.UNICODE)\r
+    symRe = re.compile('^([\da-fA-F]+):([\da-fA-F]+) +([\.:\\\\\w\?@\$-]+) +([\da-fA-F]+)', re.UNICODE)\r
 \r
     for line in lines:\r
         line = line.strip()\r