MCPcopy Create free account
hub / github.com/nodejs/node / _FindThirdPartyObjdump

Method _FindThirdPartyObjdump

deps/v8/tools/grokdump.py:735–754  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

733 disasm.OBJDUMP_BIN = objdump_bin
734
735 def _FindThirdPartyObjdump(self):
736 # Try to find the platform specific objdump.
737 if self.arch == MD_CPU_ARCHITECTURE_ARM:
738 platform_filter = 'arm-linux'
739 elif self.arch == MD_CPU_ARCHITECTURE_ARM64:
740 platform_filter = 'aarch64'
741 else:
742 # Use default otherwise.
743 return None
744 print(("# Looking for platform specific (%s) objdump in "
745 "third_party directory.") % platform_filter)
746 third_party_dir = os.path.join(
747 os.path.dirname(os.path.dirname(__file__)), 'third_party')
748 for root, dirs, files in os.walk(third_party_dir):
749 for file in files:
750 if file.endswith("objdump") and platform_filter in file:
751 return os.path.join(root, file)
752 print("# Could not find platform specific objdump in third_party.")
753 print("# Make sure you installed the correct SDK.")
754 return None
755
756 def ContextDescriptor(self):
757 if self.arch == MD_CPU_ARCHITECTURE_X86:

Callers 1

_FindObjdumpMethod · 0.95

Calls 3

walkMethod · 0.80
printFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected