mirror of
https://github.com/dobin/avred
synced 2026-06-08 13:54:13 +00:00
fix: better vba code matching
This commit is contained in:
@@ -60,10 +60,9 @@ def augmentFileWord(fileOffice: FileOffice, matches: List[Match]):
|
||||
sectionName = ac.getSectionsForAddr(m.start(), m.size)
|
||||
detail = ''
|
||||
|
||||
itemSet = results.at(m.fileOffset)
|
||||
itemSet = results.overlap(m.fileOffset, m.fileOffset+m.size)
|
||||
details = []
|
||||
for item in iter(itemSet):
|
||||
item = next(iter(itemSet))
|
||||
detail = {}
|
||||
detail['part'] = True
|
||||
detail['textHtml'] = "{} {} {}: ".format(item.data.lineNr, item.data.begin, item.data.end) + "\n" + item.data.text
|
||||
|
||||
@@ -33,7 +33,7 @@ class DisasmMakroTest(unittest.TestCase):
|
||||
self.assertEqual(ac.physicalAddressFor("VBA/ThisDocument", 1024+1), 7168+1)
|
||||
|
||||
self.assertEqual(ac.physicalAddressFor("VBA/ThisDocument", 4093), 10237)
|
||||
self.assertEqual(ac.physicalAddressFor("VBA/ThisDocument", 4125), 1565) # not: smaller address
|
||||
self.assertEqual(ac.physicalAddressFor("VBA/ThisDocument", 4125), 10269)
|
||||
|
||||
|
||||
def test_AddressConverterGetSection(self):
|
||||
|
||||
Reference in New Issue
Block a user