📄 780-debian_gdbserver-rdynamic.patch
字号:
rm -rf conftest*@@ -1147,12 +1158,12 @@ done echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6-echo "configure:1151: checking whether strerror must be declared" >&5+echo "configure:1162: checking whether strerror must be declared" >&5 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1156 "configure"+#line 1167 "configure" #include "confdefs.h" #include <stdio.h>@@ -1173,7 +1184,7 @@ int main() { char *(*pfn) = (char *(*)) strerror ; return 0; } EOF-if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_decl_needed_strerror=no else@@ -1205,19 +1216,19 @@ fi if test "${srv_linux_regsets}" = "yes"; then echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6-echo "configure:1209: checking for PTRACE_GETREGS" >&5+echo "configure:1220: checking for PTRACE_GETREGS" >&5 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getregs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1214 "configure"+#line 1225 "configure" #include "confdefs.h" #include <sys/ptrace.h> int main() { PTRACE_GETREGS; ; return 0; } EOF-if { (eval echo configure:1221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gdbsrv_cv_have_ptrace_getregs=yes else@@ -1238,19 +1249,19 @@ EOF fi echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6-echo "configure:1242: checking for PTRACE_GETFPXREGS" >&5+echo "configure:1253: checking for PTRACE_GETFPXREGS" >&5 if eval "test \"`echo '$''{'gdbsrv_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1247 "configure"+#line 1258 "configure" #include "confdefs.h" #include <sys/ptrace.h> int main() { PTRACE_GETFPXREGS; ; return 0; } EOF-if { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gdbsrv_cv_have_ptrace_getfpxregs=yes else@@ -1273,12 +1284,12 @@ fi if test "$ac_cv_header_sys_procfs_h" = yes; then echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6-echo "configure:1277: checking for lwpid_t in sys/procfs.h" >&5+echo "configure:1288: checking for lwpid_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1282 "configure"+#line 1293 "configure" #include "confdefs.h" #define _SYSCALL32@@ -1287,7 +1298,7 @@ int main() { lwpid_t avar ; return 0; } EOF-if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_lwpid_t=yes else@@ -1309,12 +1320,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6-echo "configure:1313: checking for psaddr_t in sys/procfs.h" >&5+echo "configure:1324: checking for psaddr_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1318 "configure"+#line 1329 "configure" #include "confdefs.h" #define _SYSCALL32@@ -1323,7 +1334,7 @@ int main() { psaddr_t avar ; return 0; } EOF-if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_psaddr_t=yes else@@ -1345,12 +1356,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6-echo "configure:1349: checking for prgregset_t in sys/procfs.h" >&5+echo "configure:1360: checking for prgregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1354 "configure"+#line 1365 "configure" #include "confdefs.h" #define _SYSCALL32@@ -1359,7 +1370,7 @@ int main() { prgregset_t avar ; return 0; } EOF-if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prgregset_t=yes else@@ -1381,12 +1392,12 @@ EOF echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6-echo "configure:1385: checking for prfpregset_t in sys/procfs.h" >&5+echo "configure:1396: checking for prfpregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1390 "configure"+#line 1401 "configure" #include "confdefs.h" #define _SYSCALL32@@ -1395,7 +1406,7 @@ int main() { prfpregset_t avar ; return 0; } EOF-if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_prfpregset_t=yes else@@ -1421,7 +1432,7 @@ EOF if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6-echo "configure:1425: checking whether prfpregset_t type is broken" >&5+echo "configure:1436: checking whether prfpregset_t type is broken" >&5 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1429,7 +1440,7 @@ else gdb_cv_prfpregset_t_broken=yes else cat > conftest.$ac_ext <<EOF-#line 1433 "configure"+#line 1444 "configure" #include "confdefs.h" #include <sys/procfs.h> int main ()@@ -1439,7 +1450,7 @@ else return 0; } EOF-if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null+if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gdb_cv_prfpregset_t_broken=no else@@ -1463,12 +1474,12 @@ EOF fi echo $ac_n "checking for elf_fpregset_t in sys/procfs.h""... $ac_c" 1>&6-echo "configure:1467: checking for elf_fpregset_t in sys/procfs.h" >&5+echo "configure:1478: checking for elf_fpregset_t in sys/procfs.h" >&5 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_elf_fpregset_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF-#line 1472 "configure"+#line 1483 "configure" #include "confdefs.h" #define _SYSCALL32@@ -1477,7 +1488,7 @@ int main() { elf_fpregset_t avar ; return 0; } EOF-if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes else@@ -1506,14 +1517,14 @@ USE_THREAD_DB= if test "$srv_linux_thread_db" = "yes"; then echo $ac_n "checking for libthread_db""... $ac_c" 1>&6-echo "configure:1510: checking for libthread_db" >&5+echo "configure:1521: checking for libthread_db" >&5 if eval "test \"`echo '$''{'srv_cv_thread_db'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else old_LIBS="$LIBS" LIBS="$LIBS -lthread_db" cat > conftest.$ac_ext <<EOF-#line 1517 "configure"+#line 1528 "configure" #include "confdefs.h" void ps_pglobal_lookup() {} void ps_pdread() {}@@ -1522,12 +1533,13 @@ void ps_pglobal_lookup() {} void ps_lsetregs() {} void ps_lgetfpregs() {} void ps_lsetfpregs() {}+ void ps_get_thread_area() {} void ps_getpid() {} int main() { td_ta_new(); ; return 0; } EOF-if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* srv_cv_thread_db="-lthread_db" else@@ -1543,7 +1555,7 @@ else fi LIBS="$old_LIBS `eval echo "$thread_db"`" cat > conftest.$ac_ext <<EOF-#line 1547 "configure"+#line 1559 "configure" #include "confdefs.h" void ps_pglobal_lookup() {} void ps_pdread() {}@@ -1552,12 +1564,13 @@ void ps_pglobal_lookup() {} void ps_lsetregs() {} void ps_lgetfpregs() {} void ps_lsetfpregs() {}+ void ps_get_thread_area() {} void ps_getpid() {} int main() { td_ta_new(); ; return 0; } EOF-if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* srv_cv_thread_db="$thread_db" else@@ -1567,11 +1580,11 @@ else srv_cv_thread_db=no fi rm -f conftest*- LIBS="$old_LIBS"- + fi echo "$ac_t""$srv_cv_thread_db" 1>&6+ LIBS="$old_LIBS" fi rm -f conftest*@@ -1585,14 +1598,14 @@ rm -f conftest* old_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -rdynamic" cat > conftest.$ac_ext <<EOF-#line 1589 "configure"+#line 1602 "configure" #include "confdefs.h" int main() { ; return 0; } EOF-if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* RDYNAMIC=-rdynamic elseIndex: gdb-6.3/gdb/gdbserver/aclocal.m4===================================================================--- gdb-6.3.orig/gdb/gdbserver/aclocal.m4 2002-06-11 13:32:39.000000000 -0400+++ gdb-6.3/gdb/gdbserver/aclocal.m4 2004-12-07 17:22:00.382495519 -0500@@ -1,4 +1,4 @@-dnl aclocal.m4 generated automatically by aclocal 1.4-p4+dnl aclocal.m4 generated automatically by aclocal 1.4 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation@@ -25,6 +25,7 @@ AC_DEFUN([SRV_CHECK_THREAD_DB], void ps_lsetregs() {} void ps_lgetfpregs() {} void ps_lsetfpregs() {}+ void ps_get_thread_area() {} void ps_getpid() {}], [td_ta_new();], [srv_cv_thread_db="-lthread_db"],@@ -44,11 +45,12 @@ AC_DEFUN([SRV_CHECK_THREAD_DB], void ps_lsetregs() {} void ps_lgetfpregs() {} void ps_lsetfpregs() {}+ void ps_get_thread_area() {} void ps_getpid() {}], [td_ta_new();], [srv_cv_thread_db="$thread_db"], [srv_cv_thread_db=no])+ ]]) LIBS="$old_LIBS"- ]]) )])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -