From bc6427c7309617bad39bd591fb9f37f701d3aa43 Mon Sep 17 00:00:00 2001 From: "dmikurube@chromium.org" Date: Wed, 21 May 2014 08:28:14 +0000 Subject: 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 --- tools/find_runtime_symbols/prepare_symbol_info.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/find_runtime_symbols') 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') -- cgit v1.1