2
1

780-debian_gdbserver-rdynamic.patch 24 KB

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