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

Unified Diff: tools/cygprofile/symbol_extractor.py

Issue 902633002: Fix a bunch of issues blocking 64-bit orderfile generation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: tools/cygprofile/symbol_extractor.py
diff --git a/tools/cygprofile/symbol_extractor.py b/tools/cygprofile/symbol_extractor.py
index 5fd67a1d65bd25aae696fb6674e717f5e096e4d3..f0046d2eedb412e1fa5d02e6b5672abaa0105e2b 100755
--- a/tools/cygprofile/symbol_extractor.py
+++ b/tools/cygprofile/symbol_extractor.py
@@ -17,15 +17,18 @@ sys.path.insert(
'scripts'))
import symbol
-
-# TODO(lizeb): Change symbol.ARCH to the proper value when "arm" is no longer
-# the only possible value.
_OBJDUMP_BINARY = symbol.ToolPath('objdump')
SymbolInfo = collections.namedtuple('SymbolInfo', ('name', 'offset', 'size',
'section'))
+def SetArchitecture(arch):
+ """Set the architecture for binaries to be symbolized."""
+ symbol.ARCH = arch
+ global _OBJDUMP_BINARY
+ _OBJDUMP_BINARY = symbol.ToolPath('objdump')
+
def _FromObjdumpLine(line):
"""Create a SymbolInfo by parsing a properly formatted objdump output line.
« tools/cygprofile/cygprofile_unittest.cc ('K') | « tools/cygprofile/patch_orderfile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698