Rebase to FSF GDB 7.10.50.20151113 (trunk snapshot).
- [testsuite] BuildRequire libmpx for --with testsuite. - Force libncursesw over libncurses to match the includes (RH BZ 1270534).
This commit is contained in:
parent
07b8587e82
commit
c296a6a29e
10 changed files with 167 additions and 677 deletions
|
|
@ -37,10 +37,10 @@ gdb/gdbserver/
|
|||
(linux_create_inferior, linux_tracefork_child): Call it instead of
|
||||
direct ptrace.
|
||||
|
||||
Index: gdb-7.10.50.20151022/gdb/nat/linux-ptrace.c
|
||||
Index: gdb-7.10.50.20151113/gdb/nat/linux-ptrace.c
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/nat/linux-ptrace.c 2015-10-22 22:35:00.474917139 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/nat/linux-ptrace.c 2015-10-22 22:35:08.120962729 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/nat/linux-ptrace.c 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/nat/linux-ptrace.c 2015-11-14 16:11:22.902121970 +0100
|
||||
@@ -24,6 +24,10 @@
|
||||
#include "gdb_wait.h"
|
||||
#include "gdb_ptrace.h"
|
||||
|
|
@ -84,10 +84,10 @@ Index: gdb-7.10.50.20151022/gdb/nat/linux-ptrace.c
|
|||
/* Extract extended ptrace event from wait status. */
|
||||
|
||||
int
|
||||
Index: gdb-7.10.50.20151022/gdb/nat/linux-ptrace.h
|
||||
Index: gdb-7.10.50.20151113/gdb/nat/linux-ptrace.h
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/nat/linux-ptrace.h 2015-10-22 22:35:00.474917139 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/nat/linux-ptrace.h 2015-10-22 22:35:08.120962729 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/nat/linux-ptrace.h 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/nat/linux-ptrace.h 2015-11-14 16:11:22.902121970 +0100
|
||||
@@ -164,6 +164,7 @@ extern void linux_ptrace_attach_fail_rea
|
||||
extern char *linux_ptrace_attach_fail_reason_string (ptid_t ptid, int err);
|
||||
|
||||
|
|
@ -96,10 +96,10 @@ Index: gdb-7.10.50.20151022/gdb/nat/linux-ptrace.h
|
|||
extern void linux_check_ptrace_features (void);
|
||||
extern void linux_enable_event_reporting (pid_t pid, int attached);
|
||||
extern void linux_disable_event_reporting (pid_t pid);
|
||||
Index: gdb-7.10.50.20151022/gdb/configure.ac
|
||||
Index: gdb-7.10.50.20151113/gdb/configure.ac
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/configure.ac 2015-10-22 22:35:00.475917145 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/configure.ac 2015-10-22 22:35:08.121962735 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/configure.ac 2015-11-14 16:11:22.610120168 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/configure.ac 2015-11-14 16:11:22.902121970 +0100
|
||||
@@ -2096,6 +2096,10 @@ case $host_os in
|
||||
esac
|
||||
AC_DEFINE_UNQUOTED(GDBINIT,"$gdbinit",[The .gdbinit filename.])
|
||||
|
|
@ -111,10 +111,10 @@ Index: gdb-7.10.50.20151022/gdb/configure.ac
|
|||
dnl Handle optional features that can be enabled.
|
||||
|
||||
# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
|
||||
Index: gdb-7.10.50.20151022/gdb/gdbserver/configure.ac
|
||||
Index: gdb-7.10.50.20151113/gdb/gdbserver/configure.ac
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/gdbserver/configure.ac 2015-10-22 22:35:00.475917145 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/gdbserver/configure.ac 2015-10-22 22:35:08.121962735 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/gdbserver/configure.ac 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/gdbserver/configure.ac 2015-11-14 16:11:22.903121976 +0100
|
||||
@@ -502,6 +502,10 @@ if $want_ipa ; then
|
||||
fi
|
||||
fi
|
||||
|
|
@ -126,11 +126,11 @@ Index: gdb-7.10.50.20151022/gdb/gdbserver/configure.ac
|
|||
AC_SUBST(GDBSERVER_DEPFILES)
|
||||
AC_SUBST(GDBSERVER_LIBS)
|
||||
AC_SUBST(srv_xmlbuiltin)
|
||||
Index: gdb-7.10.50.20151022/gdb/gdbserver/linux-low.c
|
||||
Index: gdb-7.10.50.20151113/gdb/gdbserver/linux-low.c
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/gdbserver/linux-low.c 2015-10-22 22:35:00.476917151 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/gdbserver/linux-low.c 2015-10-22 22:35:08.122962741 +0200
|
||||
@@ -843,6 +843,29 @@ add_lwp (ptid_t ptid)
|
||||
--- gdb-7.10.50.20151113.orig/gdb/gdbserver/linux-low.c 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/gdbserver/linux-low.c 2015-11-14 16:11:22.904121982 +0100
|
||||
@@ -833,6 +833,29 @@ add_lwp (ptid_t ptid)
|
||||
return lwp;
|
||||
}
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ Index: gdb-7.10.50.20151022/gdb/gdbserver/linux-low.c
|
|||
/* Start an inferior process and returns its pid.
|
||||
ALLARGS is a vector of program-name and args. */
|
||||
|
||||
@@ -866,7 +889,7 @@ linux_create_inferior (char *program, ch
|
||||
@@ -856,7 +879,7 @@ linux_create_inferior (char *program, ch
|
||||
if (pid == 0)
|
||||
{
|
||||
close_most_fds ();
|
||||
|
|
@ -169,10 +169,10 @@ Index: gdb-7.10.50.20151022/gdb/gdbserver/linux-low.c
|
|||
|
||||
#ifndef __ANDROID__ /* Bionic doesn't use SIGRTMIN the way glibc does. */
|
||||
signal (__SIGRTMIN + 1, SIG_DFL);
|
||||
Index: gdb-7.10.50.20151022/gdb/inf-ptrace.c
|
||||
Index: gdb-7.10.50.20151113/gdb/inf-ptrace.c
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/inf-ptrace.c 2015-10-22 22:35:00.477917156 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/inf-ptrace.c 2015-10-22 22:35:08.122962741 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/inf-ptrace.c 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/inf-ptrace.c 2015-11-14 16:11:22.904121982 +0100
|
||||
@@ -79,7 +79,15 @@ static void
|
||||
inf_ptrace_me (void)
|
||||
{
|
||||
|
|
@ -189,10 +189,10 @@ Index: gdb-7.10.50.20151022/gdb/inf-ptrace.c
|
|||
}
|
||||
|
||||
/* Start a new inferior Unix child process. EXEC_FILE is the file to
|
||||
Index: gdb-7.10.50.20151022/gdb/linux-nat.c
|
||||
Index: gdb-7.10.50.20151113/gdb/linux-nat.c
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/linux-nat.c 2015-10-22 22:35:00.477917156 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/linux-nat.c 2015-10-22 22:35:08.123962747 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/linux-nat.c 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/linux-nat.c 2015-11-14 16:11:22.905121988 +0100
|
||||
@@ -1184,6 +1184,7 @@ linux_nat_create_inferior (struct target
|
||||
{
|
||||
struct cleanup *restore_personality
|
||||
|
|
@ -231,10 +231,10 @@ Index: gdb-7.10.50.20151022/gdb/linux-nat.c
|
|||
|
||||
do_cleanups (restore_personality);
|
||||
}
|
||||
Index: gdb-7.10.50.20151022/gdb/config.in
|
||||
Index: gdb-7.10.50.20151113/gdb/config.in
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/config.in 2015-10-22 22:35:00.478917162 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/config.in 2015-10-22 22:35:08.123962747 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/config.in 2015-11-14 16:11:22.607120150 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/config.in 2015-11-14 16:11:22.905121988 +0100
|
||||
@@ -264,6 +264,9 @@
|
||||
/* Define if librpm library is being used. */
|
||||
#undef HAVE_LIBRPM
|
||||
|
|
@ -255,11 +255,11 @@ Index: gdb-7.10.50.20151022/gdb/config.in
|
|||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#undef HAVE_SETLOCALE
|
||||
|
||||
Index: gdb-7.10.50.20151022/gdb/configure
|
||||
Index: gdb-7.10.50.20151113/gdb/configure
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/configure 2015-10-22 22:35:00.480917174 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/configure 2015-10-22 22:35:08.125962759 +0200
|
||||
@@ -14691,6 +14691,64 @@ cat >>confdefs.h <<_ACEOF
|
||||
--- gdb-7.10.50.20151113.orig/gdb/configure 2015-11-14 16:11:22.610120168 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/configure 2015-11-14 16:11:22.907122001 +0100
|
||||
@@ -14694,6 +14694,64 @@ cat >>confdefs.h <<_ACEOF
|
||||
_ACEOF
|
||||
|
||||
|
||||
|
|
@ -324,10 +324,10 @@ Index: gdb-7.10.50.20151022/gdb/configure
|
|||
|
||||
# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
|
||||
# except that the argument to --with-sysroot is optional.
|
||||
Index: gdb-7.10.50.20151022/gdb/gdbserver/config.in
|
||||
Index: gdb-7.10.50.20151113/gdb/gdbserver/config.in
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/gdbserver/config.in 2015-10-22 22:35:00.481917180 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/gdbserver/config.in 2015-10-22 22:35:08.126962765 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/gdbserver/config.in 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/gdbserver/config.in 2015-11-14 16:13:15.974819541 +0100
|
||||
@@ -117,6 +117,9 @@
|
||||
/* Define to 1 if you have the `mcheck' library (-lmcheck). */
|
||||
#undef HAVE_LIBMCHECK
|
||||
|
|
@ -338,20 +338,20 @@ Index: gdb-7.10.50.20151022/gdb/gdbserver/config.in
|
|||
/* Define if the target supports branch tracing. */
|
||||
#undef HAVE_LINUX_BTRACE
|
||||
|
||||
@@ -196,6 +199,9 @@
|
||||
/* Define to 1 if you have the `setns' function. */
|
||||
#undef HAVE_SETNS
|
||||
@@ -193,6 +196,9 @@
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
#undef HAVE_PWRITE
|
||||
|
||||
+/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
||||
+#undef HAVE_SELINUX_SELINUX_H
|
||||
+
|
||||
/* Define to 1 if you have the <sgtty.h> header file. */
|
||||
#undef HAVE_SGTTY_H
|
||||
/* Define to 1 if you have the `setns' function. */
|
||||
#undef HAVE_SETNS
|
||||
|
||||
Index: gdb-7.10.50.20151022/gdb/gdbserver/configure
|
||||
Index: gdb-7.10.50.20151113/gdb/gdbserver/configure
|
||||
===================================================================
|
||||
--- gdb-7.10.50.20151022.orig/gdb/gdbserver/configure 2015-10-22 22:35:00.482917186 +0200
|
||||
+++ gdb-7.10.50.20151022/gdb/gdbserver/configure 2015-10-22 22:35:08.127962770 +0200
|
||||
--- gdb-7.10.50.20151113.orig/gdb/gdbserver/configure 2015-11-13 02:48:40.000000000 +0100
|
||||
+++ gdb-7.10.50.20151113/gdb/gdbserver/configure 2015-11-14 16:13:14.866812706 +0100
|
||||
@@ -7290,6 +7290,64 @@ if $want_ipa ; then
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue