crosutils: Use upstream dump_syms parameters for supporting splitdebug

Change-Id: If4eba8779496c4fb0283865da48ba38941de9c08

BUG=9281
TEST=ran without obvious errors

Review URL: http://codereview.chromium.org/5308005
This commit is contained in:
Ken Mixter 2010-12-07 15:10:25 -08:00
parent 0614c4a11c
commit 2fb9892ced

View File

@ -77,11 +77,12 @@ function verify_not_64b_elf() {
function dump_file() {
local debug_file="$1"
local text_file="$2"
local debug_directory="$(dirname "${debug_file}")"
# 64b ELF files may be installed on the target in PERL directories
verify_not_64b_elf "${debug_file}" || return 1
verify_not_64b_elf "${text_file}" || return 1
# Dump symbols as root in order to read all files.
if ! sudo "${DUMP_SYMS}" "${debug_file}" "${text_file}" > "${SYM_FILE}" \
if ! sudo "${DUMP_SYMS}" "${text_file}" "${debug_directory}" > "${SYM_FILE}" \
2> "${ERR_FILE}"; then
# A lot of files (like kernel files) contain no debug information, do
# not consider such occurrences as errors.