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

Unified Diff: tools/disasm.py

Issue 11565014: Add ARM support to tools/grokdump.py (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 12 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 | tools/grokdump.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/disasm.py
diff --git a/tools/disasm.py b/tools/disasm.py
index 681b4256dfe005058a409ea960377d6580579dd6..e8589b205bcae2ce52ef5fa529c1a40ec8bb7391 100644
--- a/tools/disasm.py
+++ b/tools/disasm.py
@@ -53,7 +53,7 @@ _ARCH_MAP = {
}
-def GetDisasmLines(filename, offset, size, arch, inplace):
+def GetDisasmLines(filename, offset, size, arch, inplace, objdump_flags=""):
tmp_name = None
if not inplace:
# Create a temporary file containing a copy of the code.
@@ -63,7 +63,8 @@ def GetDisasmLines(filename, offset, size, arch, inplace):
command = "dd if=%s of=%s bs=1 count=%d skip=%d && " \
"%s %s -D -b binary %s %s" % (
filename, tmp_name, size, offset,
- OBJDUMP_BIN, ' '.join(_COMMON_DISASM_OPTIONS), arch_flags,
+ OBJDUMP_BIN, ' '.join(_COMMON_DISASM_OPTIONS),
+ arch_flags + " " + objdump_flags,
tmp_name)
else:
command = "%s %s --start-address=%d --stop-address=%d -d %s " % (
« no previous file with comments | « no previous file | tools/grokdump.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698