зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1047391 - Use the correct nm binary in nm-symbolicate.py. r=BenWa
This commit is contained in:
Родитель
60c8751103
Коммит
147918b398
|
@ -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 = []
|
||||
|
|
Загрузка…
Ссылка в новой задаче