Reviewers: Michael Starzinger,
Description:
Extend grokdump.py with [u]nassemble command
[email protected]
BUG=
Please review this at https://chromiumcodereview.appspot.com/10910091/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M tools/grokdump.py
Index: tools/grokdump.py
diff --git a/tools/grokdump.py b/tools/grokdump.py
index
5a40bb7cf390703536cf66ee9e2f75842da05e0f..8fb98e40cf055358ea4ce5e85ec31fac4d88a9d1
100755
--- a/tools/grokdump.py
+++ b/tools/grokdump.py
@@ -1478,6 +1478,19 @@ class InspectionShell(cmd.Cmd):
self.padawan = InspectionPadawan(reader, heap)
self.prompt = "(grok) "
+ def do_u(self, args):
+ """
+ u 0x<address> 0x<size>
+ Unassemble memory in the region [address, address + size)
+ """
+ args = args.split(' ')
+ start = int(args[0], 16)
+ size = int(args[1], 16)
+ lines = self.reader.GetDisasmLines(start, size)
+ for line in lines:
+ print FormatDisasmLine(start, self.heap, line)
+ print
+
def do_dd(self, address):
"""
Interpret memory at the given address (if available) as a sequence
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev