fix typo in filename
[openwrt.git] / openwrt / toolchain / gdb / patches / 780-debian_gdbserver-rdynamic.patch
1 Status: Commited to GDB after 6.3.
2
3 Index: gdb-6.3/gdb/gdbserver/acinclude.m4
4 ===================================================================
5 --- gdb-6.3.orig/gdb/gdbserver/acinclude.m4 2002-06-11 13:32:39.000000000 -0400
6 +++ gdb-6.3/gdb/gdbserver/acinclude.m4 2004-12-07 17:19:31.115089905 -0500
7 @@ -13,6 +13,7 @@ AC_DEFUN([SRV_CHECK_THREAD_DB],
8 void ps_lsetregs() {}
9 void ps_lgetfpregs() {}
10 void ps_lsetfpregs() {}
11 + void ps_get_thread_area() {}
12 void ps_getpid() {}],
13 [td_ta_new();],
14 [srv_cv_thread_db="-lthread_db"],
15 @@ -32,10 +33,11 @@ AC_DEFUN([SRV_CHECK_THREAD_DB],
16 void ps_lsetregs() {}
17 void ps_lgetfpregs() {}
18 void ps_lsetfpregs() {}
19 + void ps_get_thread_area() {}
20 void ps_getpid() {}],
21 [td_ta_new();],
22 [srv_cv_thread_db="$thread_db"],
23 [srv_cv_thread_db=no])
24 + ]])
25 LIBS="$old_LIBS"
26 - ]])
27 )])
28 Index: gdb-6.3/gdb/gdbserver/configure
29 ===================================================================
30 --- gdb-6.3.orig/gdb/gdbserver/configure 2004-10-16 12:18:54.000000000 -0400
31 +++ gdb-6.3/gdb/gdbserver/configure 2004-12-07 17:22:17.343129771 -0500
32 @@ -28,6 +28,7 @@ program_suffix=NONE
33 program_transform_name=s,x,x,
34 silent=
35 site=
36 +sitefile=
37 srcdir=
38 target=NONE
39 verbose=
40 @@ -142,6 +143,7 @@ Configuration:
41 --help print this message
42 --no-create do not create output files
43 --quiet, --silent do not print \`checking...' messages
44 + --site-file=FILE use FILE as the site file
45 --version print the version of autoconf that created configure
46 Directory and file names:
47 --prefix=PREFIX install architecture-independent files in PREFIX
48 @@ -312,6 +314,11 @@ EOF
49 -site=* | --site=* | --sit=*)
50 site="$ac_optarg" ;;
51
52 + -site-file | --site-file | --site-fil | --site-fi | --site-f)
53 + ac_prev=sitefile ;;
54 + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
55 + sitefile="$ac_optarg" ;;
56 +
57 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
58 ac_prev=srcdir ;;
59 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
60 @@ -477,12 +484,16 @@ fi
61 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
62
63 # Prefer explicitly selected file to automatically selected ones.
64 -if test -z "$CONFIG_SITE"; then
65 - if test "x$prefix" != xNONE; then
66 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
67 - else
68 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
69 +if test -z "$sitefile"; then
70 + if test -z "$CONFIG_SITE"; then
71 + if test "x$prefix" != xNONE; then
72 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
73 + else
74 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
75 + fi
76 fi
77 +else
78 + CONFIG_SITE="$sitefile"
79 fi
80 for ac_site_file in $CONFIG_SITE; do
81 if test -r "$ac_site_file"; then
82 @@ -526,7 +537,7 @@ fi
83 # Extract the first word of "gcc", so it can be a program name with args.
84 set dummy gcc; ac_word=$2
85 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
86 -echo "configure:530: checking for $ac_word" >&5
87 +echo "configure:541: checking for $ac_word" >&5
88 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
89 echo $ac_n "(cached) $ac_c" 1>&6
90 else
91 @@ -556,7 +567,7 @@ if test -z "$CC"; then
92 # Extract the first word of "cc", so it can be a program name with args.
93 set dummy cc; ac_word=$2
94 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
95 -echo "configure:560: checking for $ac_word" >&5
96 +echo "configure:571: checking for $ac_word" >&5
97 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
98 echo $ac_n "(cached) $ac_c" 1>&6
99 else
100 @@ -607,7 +618,7 @@ fi
101 # Extract the first word of "cl", so it can be a program name with args.
102 set dummy cl; ac_word=$2
103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
104 -echo "configure:611: checking for $ac_word" >&5
105 +echo "configure:622: checking for $ac_word" >&5
106 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
107 echo $ac_n "(cached) $ac_c" 1>&6
108 else
109 @@ -639,7 +650,7 @@ fi
110 fi
111
112 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
113 -echo "configure:643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
114 +echo "configure:654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
115
116 ac_ext=c
117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
118 @@ -650,12 +661,12 @@ cross_compiling=$ac_cv_prog_cc_cross
119
120 cat > conftest.$ac_ext << EOF
121
122 -#line 654 "configure"
123 +#line 665 "configure"
124 #include "confdefs.h"
125
126 main(){return(0);}
127 EOF
128 -if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
129 +if { (eval echo configure:670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
130 ac_cv_prog_cc_works=yes
131 # If we can't run a trivial program, we are probably using a cross compiler.
132 if (./conftest; exit) 2>/dev/null; then
133 @@ -681,12 +692,12 @@ if test $ac_cv_prog_cc_works = no; then
134 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
135 fi
136 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
137 -echo "configure:685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
138 +echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
139 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
140 cross_compiling=$ac_cv_prog_cc_cross
141
142 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
143 -echo "configure:690: checking whether we are using GNU C" >&5
144 +echo "configure:701: checking whether we are using GNU C" >&5
145 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
146 echo $ac_n "(cached) $ac_c" 1>&6
147 else
148 @@ -695,7 +706,7 @@ else
149 yes;
150 #endif
151 EOF
152 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
153 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
154 ac_cv_prog_gcc=yes
155 else
156 ac_cv_prog_gcc=no
157 @@ -714,7 +725,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
158 ac_save_CFLAGS="$CFLAGS"
159 CFLAGS=
160 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
161 -echo "configure:718: checking whether ${CC-cc} accepts -g" >&5
162 +echo "configure:729: checking whether ${CC-cc} accepts -g" >&5
163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
164 echo $ac_n "(cached) $ac_c" 1>&6
165 else
166 @@ -793,7 +804,7 @@ else { echo "configure: error: can not r
167 fi
168
169 echo $ac_n "checking host system type""... $ac_c" 1>&6
170 -echo "configure:797: checking host system type" >&5
171 +echo "configure:808: checking host system type" >&5
172
173 host_alias=$host
174 case "$host_alias" in
175 @@ -814,7 +825,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
176 echo "$ac_t""$host" 1>&6
177
178 echo $ac_n "checking target system type""... $ac_c" 1>&6
179 -echo "configure:818: checking target system type" >&5
180 +echo "configure:829: checking target system type" >&5
181
182 target_alias=$target
183 case "$target_alias" in
184 @@ -832,7 +843,7 @@ target_os=`echo $target | sed 's/^\([^-]
185 echo "$ac_t""$target" 1>&6
186
187 echo $ac_n "checking build system type""... $ac_c" 1>&6
188 -echo "configure:836: checking build system type" >&5
189 +echo "configure:847: checking build system type" >&5
190
191 build_alias=$build
192 case "$build_alias" in
193 @@ -867,7 +878,7 @@ test "$host_alias" != "$target_alias" &&
194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
195 # ./install, which can be erroneously created by make from ./install.sh.
196 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
197 -echo "configure:871: checking for a BSD compatible install" >&5
198 +echo "configure:882: checking for a BSD compatible install" >&5
199 if test -z "$INSTALL"; then
200 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
201 echo $ac_n "(cached) $ac_c" 1>&6
202 @@ -921,7 +932,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
203
204
205 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
206 -echo "configure:925: checking how to run the C preprocessor" >&5
207 +echo "configure:936: checking how to run the C preprocessor" >&5
208 # On Suns, sometimes $CPP names a directory.
209 if test -n "$CPP" && test -d "$CPP"; then
210 CPP=
211 @@ -936,13 +947,13 @@ else
212 # On the NeXT, cc -E runs the code through the compiler's parser,
213 # not just through cpp.
214 cat > conftest.$ac_ext <<EOF
215 -#line 940 "configure"
216 +#line 951 "configure"
217 #include "confdefs.h"
218 #include <assert.h>
219 Syntax Error
220 EOF
221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
222 -{ (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
223 +{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
225 if test -z "$ac_err"; then
226 :
227 @@ -953,13 +964,13 @@ else
228 rm -rf conftest*
229 CPP="${CC-cc} -E -traditional-cpp"
230 cat > conftest.$ac_ext <<EOF
231 -#line 957 "configure"
232 +#line 968 "configure"
233 #include "confdefs.h"
234 #include <assert.h>
235 Syntax Error
236 EOF
237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
238 -{ (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
239 +{ (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
241 if test -z "$ac_err"; then
242 :
243 @@ -970,13 +981,13 @@ else
244 rm -rf conftest*
245 CPP="${CC-cc} -nologo -E"
246 cat > conftest.$ac_ext <<EOF
247 -#line 974 "configure"
248 +#line 985 "configure"
249 #include "confdefs.h"
250 #include <assert.h>
251 Syntax Error
252 EOF
253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
254 -{ (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
255 +{ (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
257 if test -z "$ac_err"; then
258 :
259 @@ -1001,12 +1012,12 @@ fi
260 echo "$ac_t""$CPP" 1>&6
261
262 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
263 -echo "configure:1005: checking for ANSI C header files" >&5
264 +echo "configure:1016: checking for ANSI C header files" >&5
265 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
266 echo $ac_n "(cached) $ac_c" 1>&6
267 else
268 cat > conftest.$ac_ext <<EOF
269 -#line 1010 "configure"
270 +#line 1021 "configure"
271 #include "confdefs.h"
272 #include <stdlib.h>
273 #include <stdarg.h>
274 @@ -1014,7 +1025,7 @@ else
275 #include <float.h>
276 EOF
277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278 -{ (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
279 +{ (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
281 if test -z "$ac_err"; then
282 rm -rf conftest*
283 @@ -1031,7 +1042,7 @@ rm -f conftest*
284 if test $ac_cv_header_stdc = yes; then
285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
286 cat > conftest.$ac_ext <<EOF
287 -#line 1035 "configure"
288 +#line 1046 "configure"
289 #include "confdefs.h"
290 #include <string.h>
291 EOF
292 @@ -1049,7 +1060,7 @@ fi
293 if test $ac_cv_header_stdc = yes; then
294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
295 cat > conftest.$ac_ext <<EOF
296 -#line 1053 "configure"
297 +#line 1064 "configure"
298 #include "confdefs.h"
299 #include <stdlib.h>
300 EOF
301 @@ -1070,7 +1081,7 @@ if test "$cross_compiling" = yes; then
302 :
303 else
304 cat > conftest.$ac_ext <<EOF
305 -#line 1074 "configure"
306 +#line 1085 "configure"
307 #include "confdefs.h"
308 #include <ctype.h>
309 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
310 @@ -1081,7 +1092,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
311 exit (0); }
312
313 EOF
314 -if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
315 +if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
316 then
317 :
318 else
319 @@ -1109,17 +1120,17 @@ for ac_hdr in sgtty.h termio.h termios.h
320 do
321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
323 -echo "configure:1113: checking for $ac_hdr" >&5
324 +echo "configure:1124: checking for $ac_hdr" >&5
325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
326 echo $ac_n "(cached) $ac_c" 1>&6
327 else
328 cat > conftest.$ac_ext <<EOF
329 -#line 1118 "configure"
330 +#line 1129 "configure"
331 #include "confdefs.h"
332 #include <$ac_hdr>
333 EOF
334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
335 -{ (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
336 +{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
338 if test -z "$ac_err"; then
339 rm -rf conftest*
340 @@ -1147,12 +1158,12 @@ done
341
342
343 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
344 -echo "configure:1151: checking whether strerror must be declared" >&5
345 +echo "configure:1162: checking whether strerror must be declared" >&5
346 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
347 echo $ac_n "(cached) $ac_c" 1>&6
348 else
349 cat > conftest.$ac_ext <<EOF
350 -#line 1156 "configure"
351 +#line 1167 "configure"
352 #include "confdefs.h"
353
354 #include <stdio.h>
355 @@ -1173,7 +1184,7 @@ int main() {
356 char *(*pfn) = (char *(*)) strerror
357 ; return 0; }
358 EOF
359 -if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360 +if { (eval echo configure:1188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
361 rm -rf conftest*
362 bfd_cv_decl_needed_strerror=no
363 else
364 @@ -1205,19 +1216,19 @@ fi
365
366 if test "${srv_linux_regsets}" = "yes"; then
367 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
368 -echo "configure:1209: checking for PTRACE_GETREGS" >&5
369 +echo "configure:1220: checking for PTRACE_GETREGS" >&5
370 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getregs'+set}'`\" = set"; then
371 echo $ac_n "(cached) $ac_c" 1>&6
372 else
373 cat > conftest.$ac_ext <<EOF
374 -#line 1214 "configure"
375 +#line 1225 "configure"
376 #include "confdefs.h"
377 #include <sys/ptrace.h>
378 int main() {
379 PTRACE_GETREGS;
380 ; return 0; }
381 EOF
382 -if { (eval echo configure:1221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
383 +if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
384 rm -rf conftest*
385 gdbsrv_cv_have_ptrace_getregs=yes
386 else
387 @@ -1238,19 +1249,19 @@ EOF
388 fi
389
390 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
391 -echo "configure:1242: checking for PTRACE_GETFPXREGS" >&5
392 +echo "configure:1253: checking for PTRACE_GETFPXREGS" >&5
393 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
394 echo $ac_n "(cached) $ac_c" 1>&6
395 else
396 cat > conftest.$ac_ext <<EOF
397 -#line 1247 "configure"
398 +#line 1258 "configure"
399 #include "confdefs.h"
400 #include <sys/ptrace.h>
401 int main() {
402 PTRACE_GETFPXREGS;
403 ; return 0; }
404 EOF
405 -if { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
406 +if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
407 rm -rf conftest*
408 gdbsrv_cv_have_ptrace_getfpxregs=yes
409 else
410 @@ -1273,12 +1284,12 @@ fi
411
412 if test "$ac_cv_header_sys_procfs_h" = yes; then
413 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
414 -echo "configure:1277: checking for lwpid_t in sys/procfs.h" >&5
415 +echo "configure:1288: checking for lwpid_t in sys/procfs.h" >&5
416 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
417 echo $ac_n "(cached) $ac_c" 1>&6
418 else
419 cat > conftest.$ac_ext <<EOF
420 -#line 1282 "configure"
421 +#line 1293 "configure"
422 #include "confdefs.h"
423
424 #define _SYSCALL32
425 @@ -1287,7 +1298,7 @@ int main() {
426 lwpid_t avar
427 ; return 0; }
428 EOF
429 -if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
430 +if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
431 rm -rf conftest*
432 bfd_cv_have_sys_procfs_type_lwpid_t=yes
433 else
434 @@ -1309,12 +1320,12 @@ EOF
435 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
436
437 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
438 -echo "configure:1313: checking for psaddr_t in sys/procfs.h" >&5
439 +echo "configure:1324: checking for psaddr_t in sys/procfs.h" >&5
440 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
441 echo $ac_n "(cached) $ac_c" 1>&6
442 else
443 cat > conftest.$ac_ext <<EOF
444 -#line 1318 "configure"
445 +#line 1329 "configure"
446 #include "confdefs.h"
447
448 #define _SYSCALL32
449 @@ -1323,7 +1334,7 @@ int main() {
450 psaddr_t avar
451 ; return 0; }
452 EOF
453 -if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
454 +if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
455 rm -rf conftest*
456 bfd_cv_have_sys_procfs_type_psaddr_t=yes
457 else
458 @@ -1345,12 +1356,12 @@ EOF
459 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
460
461 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
462 -echo "configure:1349: checking for prgregset_t in sys/procfs.h" >&5
463 +echo "configure:1360: checking for prgregset_t in sys/procfs.h" >&5
464 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
465 echo $ac_n "(cached) $ac_c" 1>&6
466 else
467 cat > conftest.$ac_ext <<EOF
468 -#line 1354 "configure"
469 +#line 1365 "configure"
470 #include "confdefs.h"
471
472 #define _SYSCALL32
473 @@ -1359,7 +1370,7 @@ int main() {
474 prgregset_t avar
475 ; return 0; }
476 EOF
477 -if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
478 +if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
479 rm -rf conftest*
480 bfd_cv_have_sys_procfs_type_prgregset_t=yes
481 else
482 @@ -1381,12 +1392,12 @@ EOF
483 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
484
485 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
486 -echo "configure:1385: checking for prfpregset_t in sys/procfs.h" >&5
487 +echo "configure:1396: checking for prfpregset_t in sys/procfs.h" >&5
488 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&6
490 else
491 cat > conftest.$ac_ext <<EOF
492 -#line 1390 "configure"
493 +#line 1401 "configure"
494 #include "confdefs.h"
495
496 #define _SYSCALL32
497 @@ -1395,7 +1406,7 @@ int main() {
498 prfpregset_t avar
499 ; return 0; }
500 EOF
501 -if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
502 +if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
503 rm -rf conftest*
504 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
505 else
506 @@ -1421,7 +1432,7 @@ EOF
507
508 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
509 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
510 -echo "configure:1425: checking whether prfpregset_t type is broken" >&5
511 +echo "configure:1436: checking whether prfpregset_t type is broken" >&5
512 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
513 echo $ac_n "(cached) $ac_c" 1>&6
514 else
515 @@ -1429,7 +1440,7 @@ else
516 gdb_cv_prfpregset_t_broken=yes
517 else
518 cat > conftest.$ac_ext <<EOF
519 -#line 1433 "configure"
520 +#line 1444 "configure"
521 #include "confdefs.h"
522 #include <sys/procfs.h>
523 int main ()
524 @@ -1439,7 +1450,7 @@ else
525 return 0;
526 }
527 EOF
528 -if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
529 +if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
530 then
531 gdb_cv_prfpregset_t_broken=no
532 else
533 @@ -1463,12 +1474,12 @@ EOF
534 fi
535
536 echo $ac_n "checking for elf_fpregset_t in sys/procfs.h""... $ac_c" 1>&6
537 -echo "configure:1467: checking for elf_fpregset_t in sys/procfs.h" >&5
538 +echo "configure:1478: checking for elf_fpregset_t in sys/procfs.h" >&5
539 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_elf_fpregset_t'+set}'`\" = set"; then
540 echo $ac_n "(cached) $ac_c" 1>&6
541 else
542 cat > conftest.$ac_ext <<EOF
543 -#line 1472 "configure"
544 +#line 1483 "configure"
545 #include "confdefs.h"
546
547 #define _SYSCALL32
548 @@ -1477,7 +1488,7 @@ int main() {
549 elf_fpregset_t avar
550 ; return 0; }
551 EOF
552 -if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
553 +if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
554 rm -rf conftest*
555 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
556 else
557 @@ -1506,14 +1517,14 @@ USE_THREAD_DB=
558
559 if test "$srv_linux_thread_db" = "yes"; then
560 echo $ac_n "checking for libthread_db""... $ac_c" 1>&6
561 -echo "configure:1510: checking for libthread_db" >&5
562 +echo "configure:1521: checking for libthread_db" >&5
563 if eval "test \"`echo '$''{'srv_cv_thread_db'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565 else
566 old_LIBS="$LIBS"
567 LIBS="$LIBS -lthread_db"
568 cat > conftest.$ac_ext <<EOF
569 -#line 1517 "configure"
570 +#line 1528 "configure"
571 #include "confdefs.h"
572 void ps_pglobal_lookup() {}
573 void ps_pdread() {}
574 @@ -1522,12 +1533,13 @@ void ps_pglobal_lookup() {}
575 void ps_lsetregs() {}
576 void ps_lgetfpregs() {}
577 void ps_lsetfpregs() {}
578 + void ps_get_thread_area() {}
579 void ps_getpid() {}
580 int main() {
581 td_ta_new();
582 ; return 0; }
583 EOF
584 -if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
585 +if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
586 rm -rf conftest*
587 srv_cv_thread_db="-lthread_db"
588 else
589 @@ -1543,7 +1555,7 @@ else
590 fi
591 LIBS="$old_LIBS `eval echo "$thread_db"`"
592 cat > conftest.$ac_ext <<EOF
593 -#line 1547 "configure"
594 +#line 1559 "configure"
595 #include "confdefs.h"
596 void ps_pglobal_lookup() {}
597 void ps_pdread() {}
598 @@ -1552,12 +1564,13 @@ void ps_pglobal_lookup() {}
599 void ps_lsetregs() {}
600 void ps_lgetfpregs() {}
601 void ps_lsetfpregs() {}
602 + void ps_get_thread_area() {}
603 void ps_getpid() {}
604 int main() {
605 td_ta_new();
606 ; return 0; }
607 EOF
608 -if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
609 +if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
610 rm -rf conftest*
611 srv_cv_thread_db="$thread_db"
612 else
613 @@ -1567,11 +1580,11 @@ else
614 srv_cv_thread_db=no
615 fi
616 rm -f conftest*
617 - LIBS="$old_LIBS"
618 -
619 +
620 fi
621
622 echo "$ac_t""$srv_cv_thread_db" 1>&6
623 + LIBS="$old_LIBS"
624
625 fi
626 rm -f conftest*
627 @@ -1585,14 +1598,14 @@ rm -f conftest*
628 old_LDFLAGS="$LDFLAGS"
629 LDFLAGS="$LDFLAGS -rdynamic"
630 cat > conftest.$ac_ext <<EOF
631 -#line 1589 "configure"
632 +#line 1602 "configure"
633 #include "confdefs.h"
634
635 int main() {
636
637 ; return 0; }
638 EOF
639 -if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
640 +if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
641 rm -rf conftest*
642 RDYNAMIC=-rdynamic
643 else
644 Index: gdb-6.3/gdb/gdbserver/aclocal.m4
645 ===================================================================
646 --- gdb-6.3.orig/gdb/gdbserver/aclocal.m4 2002-06-11 13:32:39.000000000 -0400
647 +++ gdb-6.3/gdb/gdbserver/aclocal.m4 2004-12-07 17:22:00.382495519 -0500
648 @@ -1,4 +1,4 @@
649 -dnl aclocal.m4 generated automatically by aclocal 1.4-p4
650 +dnl aclocal.m4 generated automatically by aclocal 1.4
651
652 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
653 dnl This file is free software; the Free Software Foundation
654 @@ -25,6 +25,7 @@ AC_DEFUN([SRV_CHECK_THREAD_DB],
655 void ps_lsetregs() {}
656 void ps_lgetfpregs() {}
657 void ps_lsetfpregs() {}
658 + void ps_get_thread_area() {}
659 void ps_getpid() {}],
660 [td_ta_new();],
661 [srv_cv_thread_db="-lthread_db"],
662 @@ -44,11 +45,12 @@ AC_DEFUN([SRV_CHECK_THREAD_DB],
663 void ps_lsetregs() {}
664 void ps_lgetfpregs() {}
665 void ps_lsetfpregs() {}
666 + void ps_get_thread_area() {}
667 void ps_getpid() {}],
668 [td_ta_new();],
669 [srv_cv_thread_db="$thread_db"],
670 [srv_cv_thread_db=no])
671 + ]])
672 LIBS="$old_LIBS"
673 - ]])
674 )])
675
This page took 0.066508 seconds and 5 git commands to generate.