| 1638 | return "\n".join(msg) |
| 1639 | |
| 1640 | def _str_pointers(self) -> str: |
| 1641 | fwd = self.data_address |
| 1642 | bkw = self.data_address + gef.arch.ptrsize |
| 1643 | |
| 1644 | msg = [] |
| 1645 | try: |
| 1646 | msg.append(f"Forward pointer: {self.fd:#x}") |
| 1647 | except gdb.MemoryError: |
| 1648 | msg.append(f"Forward pointer: {fwd:#x} (corrupted?)") |
| 1649 | |
| 1650 | try: |
| 1651 | msg.append(f"Backward pointer: {self.bk:#x}") |
| 1652 | except gdb.MemoryError: |
| 1653 | msg.append(f"Backward pointer: {bkw:#x} (corrupted?)") |
| 1654 | |
| 1655 | return "\n".join(msg) |
| 1656 | |
| 1657 | def __str__(self) -> str: |
| 1658 | return (f"{Color.colorify('Chunk', 'yellow bold underline')}(addr={self.data_address:#x}, " |