diff options
Diffstat (limited to 'packages/gdb/7.4.1')
-rw-r--r-- | packages/gdb/7.4.1/0000-all_ptrace_setsiginfo.patch (renamed from packages/gdb/7.4.1/00_all_ptrace_setsiginfo.patch) | 71 | ||||
-rw-r--r-- | packages/gdb/7.4.1/0001-all_readline-headers.patch (renamed from packages/gdb/7.4.1/05_all_readline-headers.patch) | 6 |
2 files changed, 28 insertions, 49 deletions
diff --git a/packages/gdb/7.4.1/00_all_ptrace_setsiginfo.patch b/packages/gdb/7.4.1/0000-all_ptrace_setsiginfo.patch index 81a92db..a430d94 100644 --- a/packages/gdb/7.4.1/00_all_ptrace_setsiginfo.patch +++ b/packages/gdb/7.4.1/0000-all_ptrace_setsiginfo.patch @@ -29,10 +29,8 @@ gdbserver/ (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of struct siginfo. --- - gdb/ChangeLog | 15 +++++++++++++++ gdb/amd64-linux-nat.c | 4 ++-- gdb/arm-linux-nat.c | 2 +- - gdb/gdbserver/ChangeLog | 11 +++++++++++ gdb/gdbserver/linux-arm-low.c | 2 +- gdb/gdbserver/linux-low.c | 10 +++++----- gdb/gdbserver/linux-low.h | 5 ++--- @@ -42,13 +40,11 @@ gdbserver/ gdb/linux-nat.h | 6 +++--- gdb/ppc-linux-nat.c | 2 +- gdb/procfs.c | 2 +- - 13 files changed, 53 insertions(+), 28 deletions(-) + 11 files changed, 27 insertions(+), 28 deletions(-) -diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c -index f954483..5ebba3a 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c -@@ -731,13 +731,13 @@ siginfo_from_compat_siginfo (siginfo_t *to, compat_siginfo_t *from) +@@ -671,13 +671,13 @@ INF. */ static int @@ -64,11 +60,9 @@ index f954483..5ebba3a 100644 if (direction == 0) compat_siginfo_from_siginfo ((struct compat_siginfo *) inf, native); -diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c -index c5ce21c..f9f6ba5 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c -@@ -1137,7 +1137,7 @@ arm_linux_remove_watchpoint (CORE_ADDR addr, int len, int rw, +@@ -1137,7 +1137,7 @@ static int arm_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p) { @@ -77,11 +71,9 @@ index c5ce21c..f9f6ba5 100644 int slot = siginfo_p->si_errno; /* This must be a hardware breakpoint. */ -diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c -index ff2437d..01208ef 100644 --- a/gdb/gdbserver/linux-arm-low.c +++ b/gdb/gdbserver/linux-arm-low.c -@@ -631,7 +631,7 @@ static int +@@ -631,7 +631,7 @@ arm_stopped_by_watchpoint (void) { struct lwp_info *lwp = get_thread_lwp (current_inferior); @@ -90,11 +82,9 @@ index ff2437d..01208ef 100644 /* We must be able to set hardware watchpoints. */ if (arm_linux_get_hw_watchpoint_count () == 0) -diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c -index d2d4c1d..4734f15 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c -@@ -4779,7 +4779,7 @@ linux_qxfer_osdata (const char *annex, +@@ -4522,7 +4522,7 @@ layout of the inferiors' architecture. */ static void @@ -103,7 +93,7 @@ index d2d4c1d..4734f15 100644 { int done = 0; -@@ -4791,9 +4791,9 @@ siginfo_fixup (struct siginfo *siginfo, void *inf_siginfo, int direction) +@@ -4534,9 +4534,9 @@ if (!done) { if (direction == 1) @@ -115,7 +105,7 @@ index d2d4c1d..4734f15 100644 } } -@@ -4802,8 +4802,8 @@ linux_xfer_siginfo (const char *annex, unsigned char *readbuf, +@@ -4545,8 +4545,8 @@ unsigned const char *writebuf, CORE_ADDR offset, int len) { int pid; @@ -126,8 +116,6 @@ index d2d4c1d..4734f15 100644 if (current_inferior == NULL) return -1; -diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h -index 677d261..3aeae70 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -20,6 +20,7 @@ @@ -138,7 +126,7 @@ index 677d261..3aeae70 100644 #include "gdb_proc_service.h" -@@ -46,8 +47,6 @@ struct regset_info +@@ -46,8 +47,6 @@ extern struct regset_info target_regsets[]; #endif @@ -147,7 +135,7 @@ index 677d261..3aeae70 100644 struct process_info_private { /* Arch-specific additions. */ -@@ -109,7 +108,7 @@ struct linux_target_ops +@@ -103,7 +102,7 @@ Returns true if any conversion was done; false otherwise. If DIRECTION is 1, then copy from INF to NATIVE. If DIRECTION is 0, copy from NATIVE to INF. */ @@ -156,11 +144,9 @@ index 677d261..3aeae70 100644 /* Hook to call when a new process is created or attached to. If extra per-process architecture-specific data is needed, -diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c -index ed1f8a8..b466b5d 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c -@@ -918,13 +918,13 @@ siginfo_from_compat_siginfo (siginfo_t *to, compat_siginfo_t *from) +@@ -906,13 +906,13 @@ INF. */ static int @@ -176,11 +162,9 @@ index ed1f8a8..b466b5d 100644 fatal ("unexpected difference in siginfo"); if (direction == 0) -diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c -index 8773195..19b827f 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c -@@ -637,7 +637,7 @@ static int +@@ -637,7 +637,7 @@ ia64_linux_stopped_data_address (struct target_ops *ops, CORE_ADDR *addr_p) { CORE_ADDR psr; @@ -189,11 +173,9 @@ index 8773195..19b827f 100644 struct regcache *regcache = get_current_regcache (); siginfo_p = linux_nat_get_siginfo (inferior_ptid); -diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c -index f80c0c1..d81d55e 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c -@@ -188,7 +188,7 @@ static void (*linux_nat_prepare_to_resume) (struct lwp_info *); +@@ -179,7 +179,7 @@ /* The method to call, if any, when the siginfo object needs to be converted between the layout returned by ptrace, and the layout in the architecture of the inferior. */ @@ -202,7 +184,7 @@ index f80c0c1..d81d55e 100644 gdb_byte *, int); -@@ -4232,7 +4232,7 @@ linux_nat_mourn_inferior (struct target_ops *ops) +@@ -4138,7 +4138,7 @@ layout of the inferiors' architecture. */ static void @@ -211,7 +193,7 @@ index f80c0c1..d81d55e 100644 { int done = 0; -@@ -4244,9 +4244,9 @@ siginfo_fixup (struct siginfo *siginfo, gdb_byte *inf_siginfo, int direction) +@@ -4150,9 +4150,9 @@ if (!done) { if (direction == 1) @@ -223,7 +205,7 @@ index f80c0c1..d81d55e 100644 } } -@@ -4256,8 +4256,8 @@ linux_xfer_siginfo (struct target_ops *ops, enum target_object object, +@@ -4162,8 +4162,8 @@ const gdb_byte *writebuf, ULONGEST offset, LONGEST len) { int pid; @@ -234,7 +216,7 @@ index f80c0c1..d81d55e 100644 gdb_assert (object == TARGET_OBJECT_SIGNAL_INFO); gdb_assert (readbuf || writebuf); -@@ -5266,7 +5266,7 @@ linux_nat_set_new_thread (struct target_ops *t, +@@ -5852,7 +5852,7 @@ inferior. */ void linux_nat_set_siginfo_fixup (struct target_ops *t, @@ -243,7 +225,7 @@ index f80c0c1..d81d55e 100644 gdb_byte *, int)) { -@@ -5285,7 +5285,7 @@ linux_nat_set_prepare_to_resume (struct target_ops *t, +@@ -5861,7 +5861,7 @@ } /* Return the saved siginfo associated with PTID. */ @@ -252,11 +234,9 @@ index f80c0c1..d81d55e 100644 linux_nat_get_siginfo (ptid_t ptid) { struct lwp_info *lp = find_lwp_pid (ptid); -diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h -index c9878d9..d87f0cf 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h -@@ -78,7 +78,7 @@ struct lwp_info +@@ -76,7 +76,7 @@ /* Non-zero si_signo if this LWP stopped with a trap. si_addr may be the address of a hardware watchpoint. */ @@ -265,7 +245,7 @@ index c9878d9..d87f0cf 100644 /* STOPPED_BY_WATCHPOINT is non-zero if this LWP stopped with a data watchpoint trap. */ -@@ -184,7 +184,7 @@ void linux_nat_set_new_thread (struct target_ops *, void (*) (struct lwp_info *) +@@ -171,7 +171,7 @@ that ptrace returns, and the layout in the architecture of the inferior. */ void linux_nat_set_siginfo_fixup (struct target_ops *, @@ -274,7 +254,7 @@ index c9878d9..d87f0cf 100644 gdb_byte *, int)); -@@ -198,7 +198,7 @@ void linux_nat_set_prepare_to_resume (struct target_ops *, +@@ -180,7 +180,7 @@ void linux_nat_switch_fork (ptid_t new_ptid); /* Return the saved siginfo associated with PTID. */ @@ -283,11 +263,9 @@ index c9878d9..d87f0cf 100644 /* Compute and return the processor core of a given thread. */ int linux_nat_core_of_thread_1 (ptid_t ptid); -diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c -index 1bd157b..9bd11fd 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c -@@ -2218,7 +2218,7 @@ ppc_linux_thread_exit (struct thread_info *tp, int silent) +@@ -2213,7 +2213,7 @@ static int ppc_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p) { @@ -296,11 +274,9 @@ index 1bd157b..9bd11fd 100644 siginfo_p = linux_nat_get_siginfo (inferior_ptid); -diff --git a/gdb/procfs.c b/gdb/procfs.c -index 903621d..cb4bc7c 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c -@@ -266,7 +266,7 @@ typedef struct sigaction gdb_sigaction_t; +@@ -262,7 +262,7 @@ #ifdef HAVE_PR_SIGINFO64_T typedef pr_siginfo64_t gdb_siginfo_t; #else @@ -309,6 +285,3 @@ index 903621d..cb4bc7c 100644 #endif /* On mips-irix, praddset and prdelset are defined in such a way that --- -1.7.9.7 - diff --git a/packages/gdb/7.4.1/05_all_readline-headers.patch b/packages/gdb/7.4.1/0001-all_readline-headers.patch index e65adf6..4aa0572 100644 --- a/packages/gdb/7.4.1/05_all_readline-headers.patch +++ b/packages/gdb/7.4.1/0001-all_readline-headers.patch @@ -1,3 +1,9 @@ +--- + readline/complete.c | 5 +++++ + readline/display.c | 5 +++++ + readline/mbutil.c | 5 +++++ + 3 files changed, 15 insertions(+) + --- a/readline/complete.c +++ b/readline/complete.c @@ -25,6 +25,11 @@ |