diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/libjava-debuginfo.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/libjava-debuginfo.dpatch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/libjava-debuginfo.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/libjava-debuginfo.dpatch new file mode 100644 index 0000000000..942bbe1f91 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/libjava-debuginfo.dpatch | |||
@@ -0,0 +1,43 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Fix java debuginfo breakage. | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$1" in | ||
14 | -patch) | ||
15 | patch $pdir -f --no-backup-if-mismatch -p0 < $0 | ||
16 | ;; | ||
17 | -unpatch) | ||
18 | patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 | ||
19 | ;; | ||
20 | *) | ||
21 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
22 | exit 1 | ||
23 | esac | ||
24 | exit 0 | ||
25 | |||
26 | 2008-03-06 Andrew Haley <aph@littlepinkcloud.com> | ||
27 | |||
28 | * jcf-parse.c (give_name_to_class): Call find_sourcefile fo find full | ||
29 | pathname of source file. | ||
30 | |||
31 | Index: jcf-parse.c | ||
32 | =================================================================== | ||
33 | --- gcc/java/jcf-parse.c (revision 131324) | ||
34 | +++ gcc/java/jcf-parse.c (working copy) | ||
35 | @@ -1208,7 +1208,7 @@ | ||
36 | #ifdef USE_MAPPED_LOCATION | ||
37 | { | ||
38 | tree source_name = identifier_subst (class_name, "", '.', '/', ".java"); | ||
39 | - const char *sfname = IDENTIFIER_POINTER (source_name); | ||
40 | + const char *sfname = find_sourcefile (IDENTIFIER_POINTER (source_name)); | ||
41 | linemap_add (line_table, LC_ENTER, false, sfname, 0); | ||
42 | input_location = linemap_line_start (line_table, 0, 1); | ||
43 | file_start_location = input_location; | ||