]>
Commit | Line | Data |
---|---|---|
a3809792 JR |
1 | --- rpm-4.5/scripts/find-debuginfo.sh~ 2010-01-27 19:25:48.000000000 +0200 |
2 | +++ rpm-4.5/scripts/find-debuginfo.sh 2010-01-27 20:23:37.279516094 +0200 | |
c38bf1df JR |
3 | @@ -385,6 +385,9 @@ |
4 | debug_base_name="$BUILDDIR" | |
5 | debug_dest_name="/usr/src/debug/${unique_debug_src_base}" | |
6 | fi | |
7 | +# canon debug_base_name, the DW_AT_comp_dir in ELF objects is real a real path | |
a3809792 | 8 | +# and debugedit will ignore them as they are out of build dir. |
c38bf1df JR |
9 | + debug_base_name=$(readlink -f "$debug_base_name") |
10 | no_recompute= | |
11 | if [ "$no_recompute_build_id" = "true" ]; then | |
12 | no_recompute="-n" | |
13 | @@ -398,6 +400,11 @@ | |
a3809792 JR |
14 | $strict && exit 2 |
15 | fi | |
16 | ||
17 | + if [ ! -s "$SOURCEFILE" ]; then | |
18 | + echo >&2 "*** ${strict_error}: no sources found for $f (stripped without sourcefile information?)" | |
19 | + $strict && exit 2 | |
20 | + fi | |
21 | + | |
c38bf1df JR |
22 | # Add .gdb_index if requested. |
23 | if $include_gdb_index; then | |
24 | if type gdb-add-index >/dev/null 2>&1; then |