BaseTools: Fix regression issue by 1eb72acddd
Fix regression issue by 1eb72acddd
secRe not replace by secReGeneral
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
dd7760470f
commit
78e759910c
@ -152,7 +152,7 @@ def _parseGeneral(lines, efifilepath):
|
|||||||
status = 3
|
status = 3
|
||||||
continue
|
continue
|
||||||
if status == 1 and len(line) != 0:
|
if status == 1 and len(line) != 0:
|
||||||
m = secRe.match(line)
|
m = secReGeneral.match(line)
|
||||||
assert m is not None, "Fail to parse the section in map file , line is %s" % line
|
assert m is not None, "Fail to parse the section in map file , line is %s" % line
|
||||||
sec_no, sec_start, sec_length, sec_name, sec_class = m.groups(0)
|
sec_no, sec_start, sec_length, sec_name, sec_class = m.groups(0)
|
||||||
secs.append([int(sec_no, 16), int(sec_start, 16), int(sec_length, 16), sec_name, sec_class])
|
secs.append([int(sec_no, 16), int(sec_start, 16), int(sec_length, 16), sec_name, sec_class])
|
||||||
|
Reference in New Issue
Block a user