Bug 1047391 - Use the correct nm binary in nm-symbolicate.py. r=BenWa

This commit is contained in:
Markus Stange 2014-08-07 13:23:11 +02:00
Родитель 60c8751103
Коммит 147918b398
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -4,11 +4,12 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import sys, subprocess
import sys, subprocess, os
def NMSymbolicate(library, addresses):
target_tools_prefix = os.environ.get("TARGET_TOOLS_PREFIX", "")
args = [
"nm", "-D", "-S", library
target_tools_prefix + "nm", "-D", "-S", library
]
nm_lines = subprocess.check_output(args).split("\n")
symbol_table = []