Assume we have a framepointer if we find 4 consecutive links
(self, slot, address)
| 2420 | print("") |
| 2421 | |
| 2422 | def TryInferFramePointer(self, slot, address): |
| 2423 | """ Assume we have a framepointer if we find 4 consecutive links """ |
| 2424 | for i in range(0, 4): |
| 2425 | if not self.reader.IsExceptionStackAddress(address): |
| 2426 | return 0 |
| 2427 | next_address = self.reader.ReadUIntPtr(address) |
| 2428 | if next_address == address: |
| 2429 | return 0 |
| 2430 | address = next_address |
| 2431 | return slot |
| 2432 | |
| 2433 | def TryInferContext(self, address): |
| 2434 | if self.context: |
no test coverage detected