diff options
author | Doug Evans <dje@google.com> | 2013-05-24 00:30:24 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-24 00:30:24 +0000 |
commit | 0d49fd8a9a093ecb6f33960a6d2f8793d7958e94 (patch) | |
tree | d83e6de85ef2c1777d10cca88c37b200948a96d6 /gdb/contrib | |
parent | 86b94567968e87f6ace1dbd63dc913f0284fd133 (diff) | |
download | gdb-0d49fd8a9a093ecb6f33960a6d2f8793d7958e94.tar.gz |
* contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-x | gdb/contrib/cc-with-tweaks.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index c03d87f4707..dbab92a3098 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -179,10 +179,13 @@ fi if [ "$want_dwp" = true ]; then dwo_files=$($READELF -wi "${output_file}" | grep _dwo_name | \ sed -e 's/^.*: //' | sort | uniq) - $DWP -o "${output_file}.dwp" ${dwo_files} > /dev/null - rc=$? - [ $rc != 0 ] && exit $rc - rm -f ${dwo_files} + rc=0 + if [ -n "$dwo_files" ]; then + $DWP -o "${output_file}.dwp" ${dwo_files} > /dev/null + rc=$? + [ $rc != 0 ] && exit $rc + rm -f ${dwo_files} + fi fi rm -f "$index_file" |