From 2fb9892ced1301e1b8bde0dd53cf57fd52d7a4ec Mon Sep 17 00:00:00 2001 From: Ken Mixter Date: Tue, 7 Dec 2010 15:10:25 -0800 Subject: [PATCH] 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 --- cros_generate_breakpad_symbols | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cros_generate_breakpad_symbols b/cros_generate_breakpad_symbols index cee8731260..8bfe8792c8 100755 --- a/cros_generate_breakpad_symbols +++ b/cros_generate_breakpad_symbols @@ -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.