Search for a given word in available memory regions. The given word is expanded to full pointer size and searched at aligned as well as un-aligned memory locations. Use 'sa' to search aligned locations only.
(self, word)
| 4044 | return self.do_search(word) |
| 4045 | |
| 4046 | def do_search(self, word): |
| 4047 | """ |
| 4048 | Search for a given word in available memory regions. |
| 4049 | |
| 4050 | The given word is expanded to full pointer size and searched at aligned |
| 4051 | as well as un-aligned memory locations. Use 'sa' to search aligned locations |
| 4052 | only. |
| 4053 | """ |
| 4054 | try: |
| 4055 | word = self.ParseAddressExpr(word) |
| 4056 | except ValueError: |
| 4057 | print("Malformed word, prefix with '0x' to use hexadecimal format.") |
| 4058 | return |
| 4059 | print( |
| 4060 | "Searching for word %d/0x%s:" % (word, self.reader.FormatIntPtr(word))) |
| 4061 | self.reader.FindWord(word) |
| 4062 | |
| 4063 | def do_sh(self, none): |
| 4064 | """ |
no test coverage detected