summaryrefslogtreecommitdiffstats
path: root/tools/find_runtime_symbols
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-21 08:28:14 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-21 08:28:14 +0000
commitbc6427c7309617bad39bd591fb9f37f701d3aa43 (patch)
tree71671dd69794dcfa466847f1a8a82e16ad51bb23 /tools/find_runtime_symbols
parent2d996c29935912366c2e30863c5547eae17599b1 (diff)
downloadchromium_src-bc6427c7309617bad39bd591fb9f37f701d3aa43.zip
chromium_src-bc6427c7309617bad39bd591fb9f37f701d3aa43.tar.gz
chromium_src-bc6427c7309617bad39bd591fb9f37f701d3aa43.tar.bz2
Make find_runtime_tools available for non-Chrome executables.
BUG=123750 TEST=None NOTRY=True Review URL: https://codereview.chromium.org/299753007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/find_runtime_symbols')
-rwxr-xr-xtools/find_runtime_symbols/prepare_symbol_info.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/find_runtime_symbols/prepare_symbol_info.py b/tools/find_runtime_symbols/prepare_symbol_info.py
index 9bce545..17d34de 100755
--- a/tools/find_runtime_symbols/prepare_symbol_info.py
+++ b/tools/find_runtime_symbols/prepare_symbol_info.py
@@ -154,6 +154,9 @@ def prepare_symbol_info(maps_path,
for target_path, host_path in alternative_dirs.iteritems():
if entry.name.startswith(target_path):
binary_path = entry.name.replace(target_path, host_path, 1)
+ if not (ProcMaps.EXECUTABLE_PATTERN.match(binary_path) or
+ (os.path.isfile(binary_path) and os.access(binary_path, os.X_OK))):
+ continue
nm_filename = _dump_command_result(
'nm -n --format bsd %s | c++filt' % binary_path,
output_dir_path, os.path.basename(binary_path), '.nm')