MCPcopy Index your code
hub / github.com/nodejs/node / do_search

Method do_search

deps/v8/tools/grokdump.py:4046–4061  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

do_sMethod · 0.95

Calls 4

ParseAddressExprMethod · 0.95
FindWordMethod · 0.80
printFunction · 0.70
FormatIntPtrMethod · 0.45

Tested by

no test coverage detected