(self, startAddr, endAddr, value)
| 174 | super(FindAnywhere, self).__init__("find-anywhere", gdb.COMMAND_DATA) |
| 175 | |
| 176 | def find(self, startAddr, endAddr, value): |
| 177 | try: |
| 178 | result = gdb.execute("find 0x%s, 0x%s, %s" % (startAddr, endAddr, value), |
| 179 | to_string=True) |
| 180 | if result.find("not found") == -1: |
| 181 | print(result) |
| 182 | except: |
| 183 | pass |
| 184 | |
| 185 | def invoke(self, value, from_tty): |
| 186 | for l in gdb.execute("maint info sections", to_string=True).split('\n'): |