Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: tools/grokdump.py

Issue 10910091: Extend grokdump.py with [u]nassemble command (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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):
Michael Starzinger 2012/09/05 16:07:39 Can we alpha-sort the do_foo methods?
+ """
+ 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698