Changeset 101742 in vbox for trunk/src/VBox
- Timestamp:
- Nov 3, 2023 3:16:50 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllInstPython.py
r101732 r101742 3331 3331 3332 3332 @staticmethod 3333 def isInBlockForArch(aoCppCondStack, sArch ):3333 def isInBlockForArch(aoCppCondStack, sArch, iLine): 3334 3334 """ Checks if sArch is included in the current conditional block. """ 3335 _ = iLine; 3336 #print('debug: isInBlockForArch(%s,%s); line %s' % (len(aoCppCondStack), sArch, iLine), file = sys.stderr); 3335 3337 for oCond in aoCppCondStack: 3336 3338 if oCond.isArchIncludedInPrimaryBlock(sArch): 3337 3339 if oCond.aoElif or oCond.fInElse: 3340 #print('debug: isInBlockForArch -> False #1', file = sys.stderr); 3338 3341 return False; 3342 #print('debug: isInBlockForArch(%s,%s): in IF-block' % (len(aoCppCondStack), sArch), file = sys.stderr); 3339 3343 else: 3344 fFine = False; 3340 3345 for oElifCond in oCond.aoElif: 3341 3346 if oElifCond.isArchIncludedInPrimaryBlock(sArch): 3342 3347 if oElifCond is not oCond.aoElif[-1] or oCond.fInElse: 3348 #print('debug: isInBlockForArch -> False #3', file = sys.stderr); 3343 3349 return False; 3344 3350 fFine = True; 3351 if not fFine and not oCond.fInElse: 3352 #print('debug: isInBlockForArch -> False #4', file = sys.stderr); 3353 return False; 3354 #print('debug: isInBlockForArch -> True', file = sys.stderr); 3345 3355 return True; 3346 3356 … … 5029 5039 if ( not self.aoCppCondStack 5030 5040 or not self.sHostArch 5031 or self.PreprocessorConditional.isInBlockForArch(self.aoCppCondStack, self.sHostArch )):5041 or self.PreprocessorConditional.isInBlockForArch(self.aoCppCondStack, self.sHostArch, self.iLine)): 5032 5042 g_aoMcBlocks.append(self.oCurMcBlock); 5033 5043 self.cTotalMcBlocks += 1;
Note:
See TracChangeset
for help on using the changeset viewer.