diff --git a/projects/rocprofiler/plugin/att/stitch.py b/projects/rocprofiler/plugin/att/stitch.py index 20845ac040..9a8509bf8a 100644 --- a/projects/rocprofiler/plugin/att/stitch.py +++ b/projects/rocprofiler/plugin/att/stitch.py @@ -146,7 +146,10 @@ class RegisterWatchList: # Matches tokens in reverse order def try_match_swapped(self, i, line, increment): - return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1] + try: + return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1] + except: + return False # Translates PC values to instructions, for auto captured ISA class PCTranslator: