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) |
+ |
def do_dd(self, address): |
""" |
Interpret memory at the given address (if available) as a sequence |