[packages/gdb] - removed fedora/RH patchwork - removed oubsolete std_section and texinfo patches

baggins baggins at pld-linux.org
Fri Aug 2 07:45:39 CEST 2013


commit 55fa9d9db63a56f0d482f1b3d046b7545cbcf20d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Aug 2 07:41:55 2013 +0200

    - removed fedora/RH patchwork
    - removed oubsolete std_section and texinfo patches

 gdb-6.3-attach-see-vdso-test.patch                 |   103 -
 gdb-6.3-bz140532-ppc-unwinding-test.patch          |   310 -
 gdb-6.3-bz202689-exec-from-pthread-test.patch      |    98 -
 gdb-6.3-bz231832-obstack-2gb.patch                 |   192 -
 gdb-6.3-focus-cmd-prev-test.patch                  |    28 -
 gdb-6.3-gcore-thread-20050204.patch                |    25 -
 gdb-6.3-gstack-20050411.patch                      |   232 -
 gdb-6.3-ia64-gcore-page0-20050421.patch            |    20 -
 gdb-6.3-ia64-gcore-speedup-20050714.patch          |   126 -
 gdb-6.3-ia64-info-frame-fix-20050725.patch         |   107 -
 gdb-6.3-ia64-sigill-20051115.patch                 |    95 -
 gdb-6.3-ia64-sigtramp-frame-20050708.patch         |   158 -
 gdb-6.3-inferior-notification-20050721.patch       |   315 -
 gdb-6.3-inheritancetest-20050726.patch             |   153 -
 gdb-6.3-mapping-zero-inode-test.patch              |   229 -
 gdb-6.3-ppc64displaysymbol-20041124.patch          |    24 -
 gdb-6.3-ppc64syscall-20040622.patch                |   111 -
 gdb-6.3-readnever-20050907.patch                   |    98 -
 gdb-6.3-rh-dummykfail-20041202.patch               |    22 -
 gdb-6.3-rh-testlibunwind-20041202.patch            |   103 -
 gdb-6.3-rh-testversion-20041202.patch              |    19 -
 gdb-6.3-test-dtorfix-20050121.patch                |   239 -
 gdb-6.3-test-movedir-20050125.patch                |    95 -
 gdb-6.3-test-pie-20050107.patch                    |  2085 ---
 gdb-6.3-test-self-20050110.patch                   |   101 -
 gdb-6.3-threaded-watchpoints2-20050225.patch       |   246 -
 gdb-6.5-BEA-testsuite.patch                        |   938 --
 gdb-6.5-bz109921-DW_AT_decl_file-test.patch        |   120 -
 ...bz185337-resolve-tls-without-debuginfo-v2.patch |   143 -
 gdb-6.5-bz190810-gdbserver-arch-advice.patch       |    28 -
 gdb-6.5-bz203661-emit-relocs.patch                 |    17 -
 gdb-6.5-bz216711-clone-is-outermost.patch          |   450 -
 gdb-6.5-bz218379-ppc-solib-trampoline-test.patch   |    91 -
 ...bz218379-solib-trampoline-lookup-lock-fix.patch |    21 -
 gdb-6.5-bz243845-stale-testing-zombie-test.patch   |    79 -
 gdb-6.5-gcore-buffer-limit-test.patch              |   139 -
 gdb-6.5-ia64-libunwind-leak-test.patch             |   120 -
 gdb-6.5-last-address-space-byte-test.patch         |    56 -
 gdb-6.5-missed-trap-on-step-test.patch             |    83 -
 gdb-6.5-readline-long-line-crash-test.patch        |   136 -
 gdb-6.5-section-num-fixup-test.patch               |   111 -
 gdb-6.5-sharedlibrary-path.patch                   |   171 -
 gdb-6.6-bfd-vdso8k.patch                           |   119 -
 gdb-6.6-bz229517-gcore-without-terminal.patch      |   171 -
 gdb-6.6-bz230000-power6-disassembly-test.patch     |    83 -
 gdb-6.6-bz235197-fork-detach-info.patch            |   121 -
 gdb-6.6-bz237572-ppc-atomic-sequence-test.patch    |   270 -
 gdb-6.6-scheduler_locking-step-is-default.patch    |    76 -
 ....6-scheduler_locking-step-sw-watchpoints2.patch |   204 -
 gdb-6.6-testsuite-timeouts.patch                   |    26 -
 gdb-6.6-threads-static-test.patch                  |    18 -
 gdb-6.7-bz426600-DW_TAG_interface_type-test.patch  |   703 -
 gdb-6.7-charsign-test.patch                        |   118 -
 gdb-6.7-ppc-clobbered-registers-O2-test.patch      |    96 -
 gdb-6.7-testsuite-stable-results.patch             |   108 -
 gdb-6.8-attach-signalled-detach-stopped.patch      |   152 -
 gdb-6.8-bz254229-gcore-prpsinfo.patch              |   280 -
 gdb-6.8-bz436037-reg-no-longer-active.patch        |    25 -
 gdb-6.8-bz442765-threaded-exec-test.patch          |   173 -
 gdb-6.8-bz457187-largefile-test.patch              |   105 -
 gdb-6.8-bz466901-backtrace-full-prelinked.patch    |   473 -
 gdb-6.8-quit-never-aborts.patch                    |    72 -
 gdb-6.8-sparc64-silence-memcpy-check.patch         |    12 -
 gdb-6.8-watchpoint-conditionals-test.patch         |    78 -
 ...parc-add-workaround-to-broken-debug-files.patch |    51 -
 gdb-archer-next-over-throw-cxx-exec.patch          |    85 -
 gdb-archer-pie-addons-keep-disabled.patch          |    83 -
 gdb-archer-pie-addons.patch                        |   135 -
 gdb-archer.patch                                   | 13979 -------------------
 gdb-attach-fail-reasons-5of5.patch                 |   244 -
 gdb-attach-fail-reasons-5of5configure.patch        |   186 -
 gdb-bz533176-fortran-omp-step.patch                |   121 -
 gdb-bz541866-rwatch-before-run.patch               |   151 -
 gdb-bz568248-oom-is-error.patch                    |    68 -
 gdb-bz601887-dwarf4-rh-test.patch                  |   240 -
 gdb-bz623749-gcore-relro.patch                     |   169 -
 gdb-bz634108-solib_address.patch                   |    31 -
 gdb-ccache-workaround.patch                        |    17 -
 gdb-check-type.patch                               |  1002 --
 gdb-core-open-vdso-warning.patch                   |   131 -
 gdb-dlopen-stap-probe-1of7.patch                   |   795 --
 gdb-dlopen-stap-probe-2of7.patch                   |    74 -
 gdb-dlopen-stap-probe-3of7.patch                   |    98 -
 gdb-dlopen-stap-probe-4of7.patch                   |   131 -
 gdb-dlopen-stap-probe-5of7.patch                   |    17 -
 gdb-dlopen-stap-probe-6of7.patch                   |  1989 ---
 gdb-dlopen-stap-probe-7of7.patch                   |   147 -
 gdb-dlopen-stap-probe-test.patch                   |   307 -
 gdb-dlopen-stap-probe-test2.patch                  |    69 -
 gdb-entryval-inlined.patch                         |   888 --
 gdb-follow-child-stale-parent.patch                |    27 -
 gdb-fortran-common-reduce.patch                    |   508 -
 gdb-fortran-common.patch                           |   598 -
 gdb-gdb-add-index-script.patch                     |   118 -
 gdb-glibc-strstr-workaround.patch                  |   137 -
 gdb-glibc-vdso-workaround.patch                    |    30 -
 gdb-lineno-makeup-test.patch                       |   151 -
 gdb-minidebuginfo.patch                            |  1056 --
 gdb-moribund-utrace-workaround.patch               |    16 -
 gdb-ppc-power7-test.patch                          |   295 -
 gdb-pr12028-double-free.patch                      |    99 -
 gdb-print-class.patch                              |   110 -
 gdb-python-rdynamic.patch                          |    44 -
 gdb-readline62-ask-more-rh.patch                   |    14 -
 ...818343-set-solib-absolute-prefix-testcase.patch |    75 -
 gdb-rhel5-compat.patch                             |    29 -
 gdb-rhel5-gcc44.patch                              |   430 -
 gdb-rhel5.9-testcase-xlf-var-inside-mod.patch      |   723 -
 gdb-runtest-pie-override.patch                     |    40 -
 gdb-simultaneous-step-resume-breakpoint-test.patch |   150 -
 gdb-stale-frame_info.patch                         |   174 -
 gdb-step-symless.patch                             |   160 -
 gdb-test-bt-cfi-without-die.patch                  |   220 -
 gdb-test-dw2-aranges.patch                         |   214 -
 gdb-test-expr-cumulative-archer.patch              |   207 -
 gdb-test-pid0-core.patch                           |    80 -
 gdb-x86_64-i386-syscall-restart.patch              |   121 -
 std_section.patch                                  |    70 -
 texinfo.patch                                      |    20 -
 119 files changed, 38644 deletions(-)
---
diff --git a/gdb-6.3-attach-see-vdso-test.patch b/gdb-6.3-attach-see-vdso-test.patch
deleted file mode 100644
index a0923f8..0000000
--- a/gdb-6.3-attach-see-vdso-test.patch
+++ /dev/null
@@ -1,103 +0,0 @@
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ ./gdb/testsuite/gdb.base/attach-see-vdso.c	6 Jul 2007 14:14:44 -0000
-@@ -0,0 +1,25 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2007 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-+
-+#include <unistd.h>
-+
-+int main ()
-+{
-+  pause ();
-+  return 1;
-+}
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ ./gdb/testsuite/gdb.base/attach-see-vdso.exp	6 Jul 2007 14:14:44 -0000
-@@ -0,0 +1,72 @@
-+# Copyright 2007
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+# This file was created by Jan Kratochvil <jan.kratochvil at redhat.com>.
-+
-+# This test only works on Linux
-+if { ![istarget "*-*-linux-gnu*"] } {
-+    return 0
-+}
-+
-+set testfile "attach-see-vdso"
-+set srcfile  ${testfile}.c
-+set binfile  ${objdir}/${subdir}/${testfile}
-+set escapedbinfile  [string_to_regexp ${objdir}/${subdir}/${testfile}]
-+
-+# The kernel VDSO is used for the syscalls returns only on i386 (not x86_64).
-+#
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-m32}] != "" } {
-+    gdb_suppress_entire_file "Testcase nonthraded compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+# Start the program running and then wait for a bit, to be sure
-+# that it can be attached to.
-+
-+set testpid [eval exec $binfile &]
-+
-+# Avoid some race:
-+sleep 2
-+
-+# Start with clean gdb
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+# Never call: gdb_load ${binfile}
-+# as the former problem would not reproduce otherwise.
-+
-+set test "attach"
-+gdb_test_multiple "attach $testpid" "$test" {
-+    -re "Attaching to process $testpid\r?\n.*$gdb_prompt $" {
-+	pass "$test"
-+    }
-+}
-+
-+gdb_test "bt" "#0 *0x\[0-9a-f\]* in \[^?\].*" "backtrace decodes VDSO"
-+
-+# Exit and detach the process.
-+   
-+gdb_exit
-+
-+# Make sure we don't leave a process around to confuse
-+# the next test run (and prevent the compile by keeping
-+# the text file busy), in case the "set should_exit" didn't
-+# work.
-+   
-+remote_exec build "kill -9 ${testpid}"
diff --git a/gdb-6.3-bz140532-ppc-unwinding-test.patch b/gdb-6.3-bz140532-ppc-unwinding-test.patch
deleted file mode 100644
index 6494cde..0000000
--- a/gdb-6.3-bz140532-ppc-unwinding-test.patch
+++ /dev/null
@@ -1,310 +0,0 @@
-diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm32.S gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm32.S
---- gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm32.S	1969-12-31 19:00:00.000000000 -0500
-+++ gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm32.S	2007-08-02 13:23:10.000000000 -0400
-@@ -0,0 +1,78 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2007 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-+
-+	.section	".text"
-+	.align 2
-+	.globl func0
-+	.type	func0, @function
-+func0:
-+	stwu 1,-16(1)
-+	mflr 0
-+	stw 31,12(1)
-+	stw 0,20(1)
-+	mr 31,1
-+	bl abort
-+	.size	func0, .-func0
-+	.align 2
-+	.globl func1
-+	.type	func1, @function
-+func1:
-+	stwu 1,-16(1)
-+	mflr 0
-+/* 20 = BO = branch always
-+   31 = BI = CR bit (ignored)  */
-+	bcl 20,31,.Lpie
-+.Lpie:	stw 31,12(1)
-+	stw 0,20(1)
-+	mr 31,1
-+	bl func0
-+	mr 0,3
-+	lis 9,var at ha
-+	lwz 9,var at l(9)
-+	add 0,0,9
-+	mr 3,0
-+	lwz 11,0(1)
-+	lwz 0,4(11)
-+	mtlr 0
-+	lwz 31,-4(11)
-+	mr 1,11
-+	blr
-+	.size	func1, .-func1
-+	.section	.note.GNU-stack,"", at progbits
-+	.ident	"GCC: (GNU) 3.4.6 20060404 (Red Hat 3.4.6-8)"
-+
-+/* Original source file:
-+
-+#include <stdlib.h>
-+
-+extern volatile int var;
-+
-+int func0 (void) __attribute__((__noinline__));
-+int func0 (void)
-+{
-+  abort ();
-+  return var;
-+}
-+
-+int func1 (void) __attribute__((__noinline__));
-+int func1 (void)
-+{
-+  return func0 () + var;
-+}
-+
-+*/
-diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm64.S gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm64.S
---- gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm64.S	1969-12-31 19:00:00.000000000 -0500
-+++ gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm64.S	2007-08-02 14:28:56.000000000 -0400
-@@ -0,0 +1,98 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2007 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-+
-+	.section	".toc","aw"
-+	.section	".text"
-+	.align 2
-+	.globl func0
-+	.section	".opd","aw"
-+	.align 3
-+func0:
-+	.quad	.L.func0,.TOC. at tocbase
-+	.previous
-+	.type	func0, @function
-+.L.func0:
-+	mflr 0
-+	std 31,-8(1)
-+	std 0,16(1)
-+	stdu 1,-128(1)
-+	mr 31,1
-+	bl abort
-+	nop
-+	.long 0
-+	.byte 0,0,0,1,128,1,0,1
-+	.size	func0,.-.L.func0
-+	.section	".toc","aw"
-+.LC1:
-+	.tc var[TC],var
-+	.section	".text"
-+	.align 2
-+	.globl func1
-+	.section	".opd","aw"
-+	.align 3
-+func1:
-+	.quad	.L.func1,.TOC. at tocbase
-+	.previous
-+	.type	func1, @function
-+.L.func1:
-+	mflr 0
-+/* 20 = BO = branch always
-+   31 = BI = CR bit (ignored)  */
-+	bcl 20,31,.Lpie
-+.Lpie:	std 31,-8(1)
-+	std 0,16(1)
-+	stdu 1,-128(1)
-+	mr 31,1
-+	bl func0
-+	mr 11,3
-+	ld 9,.LC1 at toc(2)
-+	lwz 0,0(9)
-+	add 0,11,0
-+	extsw 0,0
-+	mr 3,0
-+	ld 1,0(1)
-+	ld 0,16(1)
-+	mtlr 0
-+	ld 31,-8(1)
-+	blr
-+	.long 0
-+	.byte 0,0,0,1,128,1,0,1
-+	.size	func1,.-.L.func1
-+	.section	.note.GNU-stack,"", at progbits
-+	.ident	"GCC: (GNU) 3.4.6 20060404 (Red Hat 3.4.6-8)"
-+
-+/* Original source file:
-+
-+#include <stdlib.h>
-+
-+extern volatile int var;
-+
-+int func0 (void) __attribute__((__noinline__));
-+int func0 (void)
-+{
-+  abort ();
-+  return var;
-+}
-+
-+int func1 (void) __attribute__((__noinline__));
-+int func1 (void)
-+{
-+  return func0 () + var;
-+}
-+
-+*/
-diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.c gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.c
---- gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.c	1969-12-31 19:00:00.000000000 -0500
-+++ gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.c	2007-08-02 13:25:10.000000000 -0400
-@@ -0,0 +1,29 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2007 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-+
-+/* Force `-fpie' double jump bl->blrl.  */
-+/* No longer used.  */
-+volatile int var;
-+
-+extern int func1 (void);
-+
-+int main (void)
-+{
-+  func1 ();
-+  return 0;
-+}
-diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp
---- gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp	1969-12-31 19:00:00.000000000 -0500
-+++ gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp	2007-08-02 14:21:29.000000000 -0400
-@@ -0,0 +1,72 @@
-+#   Copyright 2006, 2007 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Test unwinding fixes of the PPC platform, specifically on the coping with BCL
-+# jump of the PIE code.
-+
-+if ![istarget "powerpc*-*-linux*"] then {
-+    verbose "Skipping powerpc-linux prologue tests."
-+    return
-+}
-+
-+set testfile "powerpc-bcl-prologue"
-+set srcfile1 ${testfile}.c
-+set flags "debug"
-+if [istarget "powerpc-*"] then {
-+    set srcfile2 ${testfile}-asm32.S
-+    set flags "$flags additional_flags=-m32"
-+} elseif [istarget "powerpc64-*"] then {
-+    set srcfile2 ${testfile}-asm64.S
-+    set flags "$flags additional_flags=-m64"
-+} else {
-+   fail "powerpc arch test"
-+   return
-+}
-+set objfile2 ${objdir}/${subdir}/${testfile}-asm.o
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+if { [gdb_compile "${srcdir}/${subdir}/${srcfile1} ${srcdir}/${subdir}/${srcfile2}" ${binfile} executable $flags] != ""} {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+# We should stop in abort(3).
-+
-+gdb_run_cmd
-+
-+gdb_test_multiple {} "continue to abort()" {
-+    -re ".*Program received signal SIGABRT,.*$gdb_prompt $" {
-+       pass "continue to abort()"
-+    }
-+}
-+
-+# Check backtrace:
-+# #3  0x0804835f in func0 ()
-+# #4  0x0804836a in func1 ()
-+# #5  0x0804838c in main ()
-+# (gdb)
-+# `\\.?' prefixes are needed for ppc64 without `debug' (another bug).
-+
-+set test "matching unwind"
-+gdb_test_multiple "backtrace" $test {
-+    -re "\r\n#\[0-9\]\[^\r\n\]* in \\.?func0 \\(\[^\r\n\]*\r\n#\[0-9\]\[^\r\n\]* in \\.?func1 \\(\[^\r\n\]*\r\n#\[0-9\]\[^\r\n\]* in \\.?main \\(\[^\r\n\]*\r\n$gdb_prompt $" {
-+	pass $test
-+    }
-+}
-
-Fixup the testcase for ppc64 biarch GDB.
-
---- ./gdb/testsuite/gdb.arch/powerpc-prologue.exp	2008-01-13 13:32:19.000000000 +0100
-+++ ./gdb/testsuite/gdb.arch/powerpc-prologue.exp	2008-01-02 00:04:10.000000000 +0100
-@@ -17,8 +17,9 @@
- # Test PowerPC prologue analyzer.
- 
- # Do not run on AIX (where we won't be able to build the tests without
--# some surgery) or on PowerPC64 (ditto, dot symbols).
--if {[istarget *-*-aix*] || ![istarget "powerpc-*-*"]} then {
-+# some surgery).  PowerPC64 target would break due to dot symbols but we build
-+# there PowerPC32 inferior.
-+if {[istarget *-*-aix*] || ![istarget "powerpc*-*-*"]} then {
-     verbose "Skipping PowerPC prologue tests."
-     return
- }
diff --git a/gdb-6.3-bz202689-exec-from-pthread-test.patch b/gdb-6.3-bz202689-exec-from-pthread-test.patch
deleted file mode 100644
index 91dc69a..0000000
--- a/gdb-6.3-bz202689-exec-from-pthread-test.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-2007-01-17  Jan Kratochvil <jan.kratochvil at redhat.com>
-
-	* gdb.threads/threaded-exec.exp, gdb.threads/threaded-exec.c: New files.
-
-
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ ./gdb/testsuite/gdb.threads/threaded-exec.c	17 Jan 2007 23:10:22 -0000
-@@ -0,0 +1,46 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2007 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330,
-+   Boston, MA 02111-1307, USA.  */
-+
-+#include <stddef.h>
-+#include <pthread.h>
-+#include <assert.h>
-+#include <stdlib.h>
-+#include <unistd.h>
-+
-+
-+static void *
-+threader (void *arg)
-+{
-+	return NULL;
-+}
-+
-+int
-+main (void)
-+{
-+	pthread_t t1;
-+	int i;
-+
-+	i = pthread_create (&t1, NULL, threader, (void *) NULL);
-+	assert (i == 0);
-+	i = pthread_join (t1, NULL);
-+	assert (i == 0);
-+
-+	execl ("/bin/true", "/bin/true", NULL);
-+	abort ();
-+}
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ ./gdb/testsuite/gdb.threads/threaded-exec.exp	17 Jan 2007 23:10:22 -0000
-@@ -0,0 +1,41 @@
-+# threaded-exec.exp -- Check reset of the tracked threads on exec*(2)
-+# Copyright (C) 2007 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-+
-+# Please email any bugs, comments, and/or additions to this file to:
-+# bug-gdb at prep.ai.mit.edu
-+
-+set testfile threaded-exec
-+set srcfile ${testfile}.c
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable []] != "" } {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+
-+gdb_load ${binfile}
-+
-+gdb_run_cmd
-+
-+gdb_test_multiple {} "Program exited" {
-+   -re "\r\n\\\[Inferior .* exited normally\\\]\r\n$gdb_prompt $" {
-+       pass "Program exited"
-+   }
-+}
diff --git a/gdb-6.3-bz231832-obstack-2gb.patch b/gdb-6.3-bz231832-obstack-2gb.patch
deleted file mode 100644
index 0b08cee..0000000
--- a/gdb-6.3-bz231832-obstack-2gb.patch
+++ /dev/null
@@ -1,192 +0,0 @@
-https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=231832
-
-
-Index: gdb-7.4.50.20111218/gdb/symmisc.c
-===================================================================
---- gdb-7.4.50.20111218.orig/gdb/symmisc.c	2011-04-04 17:19:59.000000000 +0200
-+++ gdb-7.4.50.20111218/gdb/symmisc.c	2011-12-19 00:28:18.189232014 +0100
-@@ -147,8 +147,8 @@ print_objfile_statistics (void)
-     if (OBJSTAT (objfile, sz_strtab) > 0)
-       printf_filtered (_("  Space used by a.out string tables: %d\n"),
- 		       OBJSTAT (objfile, sz_strtab));
--    printf_filtered (_("  Total memory used for objfile obstack: %d\n"),
--		     obstack_memory_used (&objfile->objfile_obstack));
-+    printf_filtered (_("  Total memory used for objfile obstack: %ld\n"),
-+		     (long) obstack_memory_used (&objfile->objfile_obstack));
-     printf_filtered (_("  Total memory used for psymbol cache: %d\n"),
- 		     bcache_memory_used (psymbol_bcache_get_bcache
- 		                          (objfile->psymbol_cache)));
-Index: gdb-7.4.50.20111218/include/obstack.h
-===================================================================
---- gdb-7.4.50.20111218.orig/include/obstack.h	2011-10-22 03:35:29.000000000 +0200
-+++ gdb-7.4.50.20111218/include/obstack.h	2011-12-19 00:28:18.189232014 +0100
-@@ -188,31 +188,31 @@ struct obstack		/* control current objec
- 
- /* Declare the external functions we use; they are in obstack.c.  */
- 
--extern void _obstack_newchunk (struct obstack *, int);
-+extern void _obstack_newchunk (struct obstack *, PTR_INT_TYPE);
- extern void _obstack_free (struct obstack *, void *);
--extern int _obstack_begin (struct obstack *, int, int,
-+extern int _obstack_begin (struct obstack *, PTR_INT_TYPE, int,
- 			    void *(*) (long), void (*) (void *));
--extern int _obstack_begin_1 (struct obstack *, int, int,
-+extern int _obstack_begin_1 (struct obstack *, PTR_INT_TYPE, int,
- 			     void *(*) (void *, long),
- 			     void (*) (void *, void *), void *);
--extern int _obstack_memory_used (struct obstack *);
-+extern PTR_INT_TYPE _obstack_memory_used (struct obstack *);
- 

- /* Do the function-declarations after the structs
-    but before defining the macros.  */
- 
- void obstack_init (struct obstack *obstack);
- 
--void * obstack_alloc (struct obstack *obstack, int size);
-+void * obstack_alloc (struct obstack *obstack, PTR_INT_TYPE size);
- 
--void * obstack_copy (struct obstack *obstack, void *address, int size);
--void * obstack_copy0 (struct obstack *obstack, void *address, int size);
-+void * obstack_copy (struct obstack *obstack, void *address, PTR_INT_TYPE size);
-+void * obstack_copy0 (struct obstack *obstack, void *address, PTR_INT_TYPE size);
- 
- void obstack_free (struct obstack *obstack, void *block);
- 
--void obstack_blank (struct obstack *obstack, int size);
-+void obstack_blank (struct obstack *obstack, PTR_INT_TYPE size);
- 
--void obstack_grow (struct obstack *obstack, void *data, int size);
--void obstack_grow0 (struct obstack *obstack, void *data, int size);
-+void obstack_grow (struct obstack *obstack, void *data, PTR_INT_TYPE size);
-+void obstack_grow0 (struct obstack *obstack, void *data, PTR_INT_TYPE size);
- 
- void obstack_1grow (struct obstack *obstack, int data_char);
- void obstack_ptr_grow (struct obstack *obstack, void *data);
-@@ -220,20 +220,20 @@ void obstack_int_grow (struct obstack *o
- 
- void * obstack_finish (struct obstack *obstack);
- 
--int obstack_object_size (struct obstack *obstack);
-+PTR_INT_TYPE obstack_object_size (struct obstack *obstack);
- 
--int obstack_room (struct obstack *obstack);
--void obstack_make_room (struct obstack *obstack, int size);
-+PTR_INT_TYPE obstack_room (struct obstack *obstack);
-+void obstack_make_room (struct obstack *obstack, PTR_INT_TYPE size);
- void obstack_1grow_fast (struct obstack *obstack, int data_char);
- void obstack_ptr_grow_fast (struct obstack *obstack, void *data);
- void obstack_int_grow_fast (struct obstack *obstack, int data);
--void obstack_blank_fast (struct obstack *obstack, int size);
-+void obstack_blank_fast (struct obstack *obstack, PTR_INT_TYPE size);
- 
- void * obstack_base (struct obstack *obstack);
- void * obstack_next_free (struct obstack *obstack);
- int obstack_alignment_mask (struct obstack *obstack);
--int obstack_chunk_size (struct obstack *obstack);
--int obstack_memory_used (struct obstack *obstack);
-+size_t obstack_chunk_size (struct obstack *obstack);
-+size_t obstack_memory_used (struct obstack *obstack);
- 
- /* Error handler called when `obstack_chunk_alloc' failed to allocate
-    more memory.  This can be set to a user defined function.  The
-@@ -318,7 +318,7 @@ extern int obstack_exit_failure;
- # define obstack_make_room(OBSTACK,length)				\
- __extension__								\
- ({ struct obstack *__o = (OBSTACK);					\
--   int __len = (length);						\
-+   PTR_INT_TYPE __len = (length);					\
-    if (__o->chunk_limit - __o->next_free < __len)			\
-      _obstack_newchunk (__o, __len);					\
-    (void) 0; })
-@@ -331,7 +331,7 @@ __extension__								\
- # define obstack_grow(OBSTACK,where,length)				\
- __extension__								\
- ({ struct obstack *__o = (OBSTACK);					\
--   int __len = (length);						\
-+   PTR_INT_TYPE __len = (length);					\
-    if (__o->next_free + __len > __o->chunk_limit)			\
-      _obstack_newchunk (__o, __len);					\
-    _obstack_memcpy (__o->next_free, (where), __len);			\
-@@ -341,7 +341,7 @@ __extension__								\
- # define obstack_grow0(OBSTACK,where,length)				\
- __extension__								\
- ({ struct obstack *__o = (OBSTACK);					\
--   int __len = (length);						\
-+   PTR_INT_TYPE __len = (length);					\
-    if (__o->next_free + __len + 1 > __o->chunk_limit)			\
-      _obstack_newchunk (__o, __len + 1);				\
-    _obstack_memcpy (__o->next_free, (where), __len);			\
-@@ -392,7 +392,7 @@ __extension__								\
- # define obstack_blank(OBSTACK,length)					\
- __extension__								\
- ({ struct obstack *__o = (OBSTACK);					\
--   int __len = (length);						\
-+   PTR_INT_TYPE __len = (length);					\
-    if (__o->chunk_limit - __o->next_free < __len)			\
-      _obstack_newchunk (__o, __len);					\
-    obstack_blank_fast (__o, __len);					\
-Index: gdb-7.4.50.20111218/libiberty/obstack.c
-===================================================================
---- gdb-7.4.50.20111218.orig/libiberty/obstack.c	2005-05-10 17:33:33.000000000 +0200
-+++ gdb-7.4.50.20111218/libiberty/obstack.c	2011-12-19 00:28:18.191232006 +0100
-@@ -44,9 +44,11 @@
- #if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
- #include <gnu-versions.h>
- #if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION
-+#if 0 /* 64-bit obstack is not compatible with any glibc implementation.  */
- #define ELIDE_CODE
- #endif
- #endif
-+#endif
- 
- 
- #ifndef ELIDE_CODE
-@@ -139,7 +141,7 @@ struct obstack *_obstack;
-    free up some memory, then call this again.  */
- 
- int
--_obstack_begin (struct obstack *h, int size, int alignment,
-+_obstack_begin (struct obstack *h, PTR_INT_TYPE size, int alignment,
-                 POINTER (*chunkfun) (long), void (*freefun) (void *))
- {
-   register struct _obstack_chunk *chunk; /* points to new chunk */
-@@ -183,7 +185,7 @@ _obstack_begin (struct obstack *h, int s
- }
- 
- int
--_obstack_begin_1 (struct obstack *h, int size, int alignment,
-+_obstack_begin_1 (struct obstack *h, PTR_INT_TYPE size, int alignment,
-                   POINTER (*chunkfun) (POINTER, long),
-                   void (*freefun) (POINTER, POINTER), POINTER arg)
- {
-@@ -235,7 +237,7 @@ _obstack_begin_1 (struct obstack *h, int
-    to the beginning of the new one.  */
- 
- void
--_obstack_newchunk (struct obstack *h, int length)
-+_obstack_newchunk (struct obstack *h, PTR_INT_TYPE length)
- {
-   register struct _obstack_chunk *old_chunk = h->chunk;
-   register struct _obstack_chunk *new_chunk;
-@@ -388,11 +390,11 @@ obstack_free (struct obstack *h, POINTER
-     abort ();
- }
- 

--int
-+PTR_INT_TYPE
- _obstack_memory_used (struct obstack *h)
- {
-   register struct _obstack_chunk* lp;
--  register int nbytes = 0;
-+  register PTR_INT_TYPE nbytes = 0;
- 
-   for (lp = h->chunk; lp != 0; lp = lp->prev)
-     {
-@@ -421,6 +423,7 @@ print_and_abort (void)
- }
- 

- #if 0
-+/* These functions are now broken for 64-bit obstack!  */
- /* These are now turned off because the applications do not use it
-    and it uses bcopy via obstack_grow, which causes trouble on sysV.  */
- 
diff --git a/gdb-6.3-focus-cmd-prev-test.patch b/gdb-6.3-focus-cmd-prev-test.patch
deleted file mode 100644
index 88f52f1..0000000
--- a/gdb-6.3-focus-cmd-prev-test.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- /dev/null	2008-03-23 13:41:46.072650180 +0100
-+++ gdb-6.3/gdb/testsuite/gdb.base/focus-cmd-prev.exp	2008-03-23 23:46:45.000000000 +0100
-@@ -0,0 +1,25 @@
-+# Copyright 2008 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+gdb_exit
-+gdb_start
-+
-+gdb_test "focus cmd"
-+gdb_test "focus prev"
diff --git a/gdb-6.3-gcore-thread-20050204.patch b/gdb-6.3-gcore-thread-20050204.patch
deleted file mode 100644
index 31ecbba..0000000
--- a/gdb-6.3-gcore-thread-20050204.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-2005-02-07  Jeff Johnston  <jjohnstn at redhat.com>
-
-        * linux-nat.c (linux_nat_xfer_memory): Don't use
-        linux_proc_xfer_memory for ia64.
-
-Index: gdb-6.8.50.20090803/gdb/linux-nat.c
-===================================================================
---- gdb-6.8.50.20090803.orig/gdb/linux-nat.c	2009-08-04 06:29:47.000000000 +0200
-+++ gdb-6.8.50.20090803/gdb/linux-nat.c	2009-08-04 06:29:55.000000000 +0200
-@@ -4495,10 +4495,15 @@ linux_xfer_partial (struct target_ops *o
- 	offset &= ((ULONGEST) 1 << addr_bit) - 1;
-     }
- 
-+#ifndef NATIVE_XFER_UNWIND_TABLE
-+  /* FIXME: For ia64, we cannot currently use linux_proc_xfer_memory
-+	    for accessing thread storage.  Revert when Bugzilla 147436
-+	    is fixed.  */
-   xfer = linux_proc_xfer_partial (ops, object, annex, readbuf, writebuf,
- 				  offset, len);
-   if (xfer != 0)
-     return xfer;
-+#endif
- 
-   return super_xfer_partial (ops, object, annex, readbuf, writebuf,
- 			     offset, len);
diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch
deleted file mode 100644
index d6f4cb0..0000000
--- a/gdb-6.3-gstack-20050411.patch
+++ /dev/null
@@ -1,232 +0,0 @@
-2004-11-23  Andrew Cagney  <cagney at redhat.com>
-
-	* Makefile.in (uninstall-gstack, install-gstack): New rules, add
-	to install and uninstall.
-	* gstack.sh, gstack.1: New files.
-
-Index: gdb-7.4.50.20120103/gdb/Makefile.in
-===================================================================
---- gdb-7.4.50.20120103.orig/gdb/Makefile.in	2012-01-03 05:52:15.000000000 +0100
-+++ gdb-7.4.50.20120103/gdb/Makefile.in	2012-01-03 05:53:25.974210230 +0100
-@@ -1017,7 +1017,7 @@ gdb.z:gdb.1
- install: all
- 	@$(MAKE) $(FLAGS_TO_PASS) install-only
- 
--install-only: $(CONFIG_INSTALL)
-+install-only: install-gstack $(CONFIG_INSTALL)
- 	transformed_name=`t='$(program_transform_name)'; \
- 			  echo gdb | sed -e "$$t"` ; \
- 		if test "x$$transformed_name" = x; then \
-@@ -1039,7 +1039,25 @@ install-only: $(CONFIG_INSTALL)
- install-python:
- 	$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
- 
--uninstall: force $(CONFIG_UNINSTALL)
-+GSTACK=gstack
-+.PHONY: install-gstack
-+install-gstack:
-+	transformed_name=`t='$(program_transform_name)'; \
-+			  echo $(GSTACK) | sed -e "$$t"` ; \
-+		if test "x$$transformed_name" = x; then \
-+		  transformed_name=$(GSTACK) ; \
-+		else \
-+		  true ; \
-+		fi ; \
-+		$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
-+		$(INSTALL_PROGRAM) $(srcdir)/$(GSTACK).sh \
-+			$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
-+		: $(SHELL) $(srcdir)/../mkinstalldirs \
-+			$(DESTDIR)$(man1dir) ; \
-+		: $(INSTALL_DATA) $(srcdir)/gstack.1 \
-+			$(DESTDIR)$(man1dir)/$$transformed_name.1
-+
-+uninstall: force uninstall-gstack $(CONFIG_UNINSTALL)
- 	transformed_name=`t='$(program_transform_name)'; \
- 			  echo gdb | sed -e $$t` ; \
- 		if test "x$$transformed_name" = x; then \
-@@ -1051,6 +1069,18 @@ uninstall: force $(CONFIG_UNINSTALL)
- 		      $(DESTDIR)$(man1dir)/$$transformed_name.1
- 	@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
- 
-+.PHONY: uninstall-gstack
-+uninstall-gstack:
-+	transformed_name=`t='$(program_transform_name)'; \
-+			  echo $(GSTACK) | sed -e $$t` ; \
-+		if test "x$$transformed_name" = x; then \
-+		  transformed_name=$(GSTACK) ; \
-+		else \
-+		  true ; \
-+		fi ; \
-+		rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
-+		      $(DESTDIR)$(man1dir)/$$transformed_name.1
-+ 
- # The C++ name parser can be built standalone for testing.
- test-cp-name-parser.o: cp-name-parser.c
- 	$(COMPILE) -DTEST_CPNAMES cp-name-parser.c
-Index: gdb-7.4.50.20120103/gdb/gstack.sh
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120103/gdb/gstack.sh	2012-01-03 05:52:37.278385632 +0100
-@@ -0,0 +1,43 @@
-+#!/bin/sh
-+
-+if test $# -ne 1; then
-+    echo "Usage: `basename $0 .sh` <process-id>" 1>&2
-+    exit 1
-+fi
-+
-+if test ! -r /proc/$1; then
-+    echo "Process $1 not found." 1>&2
-+    exit 1
-+fi
-+
-+# GDB doesn't allow "thread apply all bt" when the process isn't
-+# threaded; need to peek at the process to determine if that or the
-+# simpler "bt" should be used.
-+
-+backtrace="bt"
-+if test -d /proc/$1/task ; then
-+    # Newer kernel; has a task/ directory.
-+    if test `/bin/ls /proc/$1/task | /usr/bin/wc -l` -gt 1 2>/dev/null ; then
-+	backtrace="thread apply all bt"
-+    fi
-+elif test -f /proc/$1/maps ; then
-+    # Older kernel; go by it loading libpthread.
-+    if /bin/grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
-+	backtrace="thread apply all bt"
-+    fi
-+fi
-+
-+GDB=${GDB:-/usr/bin/gdb}
-+
-+# Run GDB, strip out unwanted noise.
-+# --readnever is no longer used since .gdb_index is now in use.
-+$GDB --quiet -nx /proc/$1/exe $1 <<EOF 2>&1 | 
-+set width 0
-+set height 0
-+set pagination no
-+$backtrace
-+EOF
-+/bin/sed -n \
-+    -e 's/^\((gdb) \)*//' \
-+    -e '/^#/p' \
-+    -e '/^Thread/p'
-Index: gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp	2012-01-03 05:52:37.279385629 +0100
-@@ -0,0 +1,66 @@
-+# Copyright (C) 2012 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 3 of the License, or
-+# (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-+
-+set testfile gstack
-+set executable ${testfile}
-+set binfile ${objdir}/${subdir}/$executable
-+if {[build_executable ${testfile} ${executable} "" {debug}] == -1} {
-+    return -1
-+}
-+
-+set test "spawn inferior"
-+set command "${binfile}"
-+set res [remote_spawn host $command];
-+if { $res < 0 || $res == "" } {
-+    perror "Spawning $command failed."
-+    fail $test
-+    return
-+}
-+set use_gdb_stub 1
-+set pid [exp_pid -i $res]
-+gdb_expect {
-+    -re "looping\r\n" {
-+	pass $test
-+    }
-+    eof {
-+	fail "$test (eof)"
-+	return
-+    }
-+    timeout {
-+	fail "$test (timeout)"
-+	return
-+    }
-+}
-+gdb_exit
-+
-+# Testcase uses the most simple notification not to get caught by attach on
-+# exiting the function.  Still we could retry the gstack command if we fail.
-+
-+set test "spawn gstack"
-+set command "sh -c GDB=$GDB\\ sh\\ ${srcdir}/../gstack.sh\\ $pid\\;echo\\ GSTACK-END"
-+set res [remote_spawn host $command];
-+if { $res < 0 || $res == "" } {
-+    perror "Spawning $command failed."
-+    fail $test
-+}
-+set pid [exp_pid -i $res]
-+gdb_test_multiple "" $test {
-+    -re "^#0 +(0x\[0-9a-f\]+ in )?\\.?func \\(\\) at \[^\r\n\]*\r\n#1 +0x\[0-9a-f\]+ in \\.?main \\(\\) at \[^\r\n\]*\r\nGSTACK-END\r\n\$" {
-+	pass $test
-+    }
-+}
-+gdb_exit
-+
-+remote_exec host "kill -9 $pid"
-Index: gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.c	2012-01-03 05:52:37.279385629 +0100
-@@ -0,0 +1,43 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 3 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-+
-+#include <stdio.h>
-+#include <unistd.h>
-+#include <string.h>
-+
-+void
-+func (void)
-+{
-+  const char msg[] = "looping\n";
-+
-+  /* Use the most simple notification not to get caught by attach on exiting
-+     the function.  */
-+  write (1, msg, strlen (msg));
-+  
-+  for (;;);
-+}
-+
-+int
-+main (void)
-+{
-+  alarm (60);
-+  nice (100);
-+
-+  func ();
-+
-+  return 0;
-+}
diff --git a/gdb-6.3-ia64-gcore-page0-20050421.patch b/gdb-6.3-ia64-gcore-page0-20050421.patch
deleted file mode 100644
index ecdfbae..0000000
--- a/gdb-6.3-ia64-gcore-page0-20050421.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Index: gdb-7.2.50.20110107/gdb/gcore.c
-===================================================================
---- gdb-7.2.50.20110107.orig/gdb/gcore.c	2011-01-05 23:22:49.000000000 +0100
-+++ gdb-7.2.50.20110107/gdb/gcore.c	2011-01-07 09:04:28.000000000 +0100
-@@ -534,8 +534,14 @@ gcore_copy_callback (bfd *obfd, asection
-       if (size > total_size)
- 	size = total_size;
- 
-+      /* Warn if read error occurs except if we were trying to read the
-+	 first page for ia64.  The first page is marked readable, but it cannot
-+	 be read.  */
-       if (target_read_memory (bfd_section_vma (obfd, osec) + offset,
--			      memhunk, size) != 0)
-+			      memhunk, size) != 0
-+	  && (strcmp (gdbarch_bfd_arch_info (target_gdbarch)->arch_name,
-+		      "ia64")
-+	      || bfd_section_vma (obfd, osec) != 0))
- 	{
- 	  warning (_("Memory read failed for corefile "
- 		     "section, %s bytes at %s."),
diff --git a/gdb-6.3-ia64-gcore-speedup-20050714.patch b/gdb-6.3-ia64-gcore-speedup-20050714.patch
deleted file mode 100644
index f902e62..0000000
--- a/gdb-6.3-ia64-gcore-speedup-20050714.patch
+++ /dev/null
@@ -1,126 +0,0 @@
-2005-07-14  Jeff Johnsotn  <jjohnstn at redhat.com>
-
-	* linux-nat.c (linux_nat_xfer_memory): Incorporate Fujitsu
-	work-around to use /proc/mem for storage, but to fall-back
-	to PTRACE for ia64 rse register areas.
-	* ia64-linux-nat.c (ia64_rse_slot_num): New static function.
-	(ia64_rse_skip_regs): Ditto.
-	(ia64_linux_check_stack_region): New function.
-	
-Index: gdb-6.8.50.20090803/gdb/linux-nat.c
-===================================================================
---- gdb-6.8.50.20090803.orig/gdb/linux-nat.c	2009-08-04 06:29:55.000000000 +0200
-+++ gdb-6.8.50.20090803/gdb/linux-nat.c	2009-08-04 06:30:53.000000000 +0200
-@@ -4495,15 +4495,38 @@ linux_xfer_partial (struct target_ops *o
- 	offset &= ((ULONGEST) 1 << addr_bit) - 1;
-     }
- 
--#ifndef NATIVE_XFER_UNWIND_TABLE
--  /* FIXME: For ia64, we cannot currently use linux_proc_xfer_memory
--	    for accessing thread storage.  Revert when Bugzilla 147436
--	    is fixed.  */
-   xfer = linux_proc_xfer_partial (ops, object, annex, readbuf, writebuf,
- 				  offset, len);
-   if (xfer != 0)
--    return xfer;
-+    {
-+#ifdef NATIVE_XFER_UNWIND_TABLE
-+      struct mem_region range;
-+      range.lo = memaddr;
-+      range.hi = memaddr + len;
-+
-+      /* FIXME: For ia64, we cannot currently use
-+	 linux_proc_xfer_partial for accessing rse register storage.
-+	 Revert when Bugzilla 147436 is fixed.  */
-+#ifdef NATIVE_XFER_UNWIND_TABLE
-+      extern int ia64_linux_check_stack_region (struct lwp_info *lwp,
-+						void *range);
-+#endif
-+      if (iterate_over_lwps (ia64_linux_check_stack_region, &range) != NULL)
-+	{ /* This region contains ia64 rse registers, we have to re-read.  */
-+	  int xxfer;
-+
-+	  /* Re-read register stack area.  */
-+	  xxfer = super_xfer_partial (ops, object, annex,
-+				      readbuf + (range.lo - memaddr),
-+				      writebuf + (range.lo - memaddr),
-+				      offset + (range.lo - memaddr),
-+				      range.hi - range.lo);
-+	  if (xxfer == 0)
-+	    xfer = 0;
-+	}
- #endif
-+      return xfer;
-+    }
- 
-   return super_xfer_partial (ops, object, annex, readbuf, writebuf,
- 			     offset, len);
-Index: gdb-6.8.50.20090803/gdb/ia64-linux-nat.c
-===================================================================
---- gdb-6.8.50.20090803.orig/gdb/ia64-linux-nat.c	2009-02-23 01:03:49.000000000 +0100
-+++ gdb-6.8.50.20090803/gdb/ia64-linux-nat.c	2009-08-04 06:30:53.000000000 +0200
-@@ -809,6 +809,64 @@ ia64_linux_xfer_partial (struct target_o
- 
- void _initialize_ia64_linux_nat (void);
- 
-+/*
-+ * Note: taken from ia64_tdep.c
-+ *
-+ */
-+
-+static __inline__ unsigned long
-+ia64_rse_slot_num (unsigned long addr)
-+{
-+  return (addr >> 3) & 0x3f;
-+}
-+
-+/* Skip over a designated number of registers in the backing
-+   store, remembering every 64th position is for NAT.  */
-+static __inline__ unsigned long
-+ia64_rse_skip_regs (unsigned long  addr, long num_regs)
-+{
-+  long delta = ia64_rse_slot_num(addr) + num_regs;
-+
-+  if (num_regs < 0)
-+    delta -= 0x3e;
-+  return addr + ((num_regs + delta/0x3f) << 3);
-+}
-+
-+/*
-+ * Check mem_region is stack or not. If stack, /proc/<pid>/mem cannot return 
-+ * expected value.
-+ */
-+int ia64_linux_check_stack_region(struct lwp_info *ti, struct mem_region *range)
-+{
-+	CORE_ADDR addr;
-+	int error;
-+	unsigned long bsp, cfm, bspstore;
-+	long sof;
-+	pid_t pid = ptid_get_lwp(ti->ptid);
-+	bsp = ptrace(PTRACE_PEEKUSER, pid, PT_AR_BSP ,NULL);
-+	if (bsp == (unsigned long)-1) {
-+		return 1;
-+	}
-+	/* stack is allocated by one-segment, not separated into several segments.
-+	   So, we only have to check whether bsp is in *range* or not. */ 		
-+	if((range->lo <= bsp) && (bsp <= range->hi)) {
-+		bspstore = ptrace(PTRACE_PEEKUSER, pid, PT_AR_BSPSTORE, NULL);
-+		cfm = ptrace(PTRACE_PEEKUSER, pid, PT_CFM, NULL);
-+		sof = cfm & 0x3f;
-+		bsp = ia64_rse_skip_regs(bsp, -sof);
-+		range->lo = bspstore;
-+		range->hi = bsp;
-+		/* we have to check the size of dirty register stack area */
-+		/*
-+		fprintf_unfiltered(gdb_stdlog, "<%d> <%p>  <%lx> <%p> <%p>\n",
-+				   pid, bsp, sof, range->lo, range->hi);
-+		*/
-+		return 1;
-+	}
-+	
-+	return 0;
-+}
-+
- void
- _initialize_ia64_linux_nat (void)
- {
diff --git a/gdb-6.3-ia64-info-frame-fix-20050725.patch b/gdb-6.3-ia64-info-frame-fix-20050725.patch
deleted file mode 100644
index 2ebab9e..0000000
--- a/gdb-6.3-ia64-info-frame-fix-20050725.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-2005-07-25  Jeff Johnstno  <jjohnstn at redhat.com>
-
-	* libunwind-frame.c (libunwind_frame_prev_register): Check valuep
-	is not NULL before copying cursor address into it.
-	
-testsuite:
-2005-07-25  Jeff Johnstno  <jjohnstn at redhat.com>
-
-	* gdb.arch/ia64-sigtramp.exp: New test.
-	* gdb.arch/ia64-sigtramp.c: Ditto.
-
-2008-02-24  Jan Kratochvil  <jan.kratochvil at redhat.com>
-
-	Port to GDB-6.8pre.  (Only the testcase has remained.)
-
---- gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.c.fix	2005-07-25 16:42:46.000000000 -0400
-+++ gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.c	2005-07-25 16:42:08.000000000 -0400
-@@ -0,0 +1,23 @@
-+#include <stdio.h>
-+#include <signal.h>
-+
-+int *l;
-+
-+void x (int sig)
-+{
-+  printf ("in signal handler for signal %d\n", sig);
-+}
-+
-+int main()
-+{
-+  int k;
-+
-+  signal (SIGSEGV, &x);
-+
-+  k = *l;
-+
-+  printf ("k is %d\n", k);
-+ 
-+  return 0;
-+}
-+
---- gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp.fix	2005-07-25 16:42:50.000000000 -0400
-+++ gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp	2005-07-25 16:42:01.000000000 -0400
-@@ -0,0 +1,63 @@
-+#   Copyright 2005 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Please email any bugs, comments, and/or additions to this file to:
-+# bug-gdb at prep.ai.mit.edu
-+
-+# This file was written by Jeff Johnston (jjohnstn at redhat.com)
-+
-+if ![istarget "ia64-*-*"] then {
-+    return
-+}
-+
-+set testfile "ia64-sigtramp"
-+set srcfile ${testfile}.c
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+gdb_exit
-+set match_max_old [match_max]
-+match_max -d 1000000
-+gdb_start
-+match_max -d $match_max_old
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+if ![runto_main] then {
-+    fail "Can't run to main"
-+    return 0
-+}
-+
-+gdb_test "handle SIGSEGV" "SIGSEGV.*Yes.*Yes.*Yes.*Segmentation fault"
-+gdb_test "next" "" "first next"
-+gdb_test "next" "Program received signal SIGSEGV.*" "getting SIGSEGV"
-+gdb_breakpoint "x"
-+gdb_test "continue" "Breakpoint.*x.*" "continue to x"
-+
-+gdb_test "f 1" ".*signal handler called.*" "frame 1"
-+
-+# gdb-7.0+ no longer prints the pseudo registers as they are computed.
-+# frame_info says: /* For moment, only display registers that were saved on the
-+#                     stack.  */
-+gdb_test "set debug frame 1"
-+gdb_test "info frame" "Stack level 1, .*frame_unwind_register_value \\(frame=1,regnum=750\\(p63\\),\[^\r\n\]*\r\n\[^\r\n\]*-> computed bytes=.*" "info sigtramp frame"
diff --git a/gdb-6.3-ia64-sigill-20051115.patch b/gdb-6.3-ia64-sigill-20051115.patch
deleted file mode 100644
index bf8a1f1..0000000
--- a/gdb-6.3-ia64-sigill-20051115.patch
+++ /dev/null
@@ -1,95 +0,0 @@
-2005-11-15  Jeff Johnston  <jjohnstn at redhat.com>
-
-	* linux-thread-db.c (thread_db_wait): Don't bother continuing if
-	the wait result indicates the program terminated with a signal.
-	* linux-nat.c (linux_nat_wait): For SIGILL and SIGTRAP, don't
-	throw away the event if the user has specified nostop noprint.
-
-gdb/testsuite:
-
-2005-11-15  Jeff Johnston  <jjohnstn at redhat.com>
-
-	* gdb.arch/ia64-sigill.c: New test.
-	* gdb.arch/ia64-sigill.exp: Ditto.
-
-Index: gdb-7.3.50.20110722/gdb/testsuite/gdb.arch/ia64-sigill.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.3.50.20110722/gdb/testsuite/gdb.arch/ia64-sigill.exp	2011-07-22 19:16:13.000000000 +0200
-@@ -0,0 +1,49 @@
-+#   Copyright 2005 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Please email any bugs, comments, and/or additions to this file to:
-+# bug-gdb at prep.ai.mit.edu
-+
-+# This file was written by Jeff Johnston (jjohnstn at redhat.com)
-+
-+if ![istarget "ia64-*-*"] then {
-+    return
-+}
-+
-+set testfile "ia64-sigill"
-+set srcfile ${testfile}.c
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+# Deliberately compile with pthreads, even though test is single-threaded.
-+# We want to force gdb thread code to be exercised.
-+if  { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+# We set up SIGILL nostop, noprint, pass and then run the program.
-+# We expect to just see a normal run.
-+gdb_test "handle SIGILL nostop noprint" "SIGILL.*No.*No.*Yes.*" "handle sigill"
-+gdb_test "run" "Starting program.*ia64-sigill.*\[New thread.*\].*hello world.*Program exited normally." "run to exit"
-+ 
-Index: gdb-7.3.50.20110722/gdb/testsuite/gdb.arch/ia64-sigill.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.3.50.20110722/gdb/testsuite/gdb.arch/ia64-sigill.c	2011-07-22 19:16:13.000000000 +0200
-@@ -0,0 +1,8 @@
-+#include <stdio.h>
-+
-+int main()
-+{
-+  printf ("hello world\n");
-+  return 0;
-+}
-+
-Index: gdb-7.3.50.20110722/gdb/linux-nat.c
-===================================================================
---- gdb-7.3.50.20110722.orig/gdb/linux-nat.c	2011-07-22 19:15:05.000000000 +0200
-+++ gdb-7.3.50.20110722/gdb/linux-nat.c	2011-07-22 19:16:13.000000000 +0200
-@@ -3733,7 +3733,8 @@ retry:
-      threads can be a bit time-consuming so if we want decent
-      performance with heavily multi-threaded programs, especially when
-      they're using a high frequency timer, we'd better avoid it if we
--     can.  */
-+     can.  For possible trap signals like SIGTRAP and SIGILL, don't
-+     avoid reporting.  */
- 
-   if (WIFSTOPPED (status))
-     {
diff --git a/gdb-6.3-ia64-sigtramp-frame-20050708.patch b/gdb-6.3-ia64-sigtramp-frame-20050708.patch
deleted file mode 100644
index c6a7789..0000000
--- a/gdb-6.3-ia64-sigtramp-frame-20050708.patch
+++ /dev/null
@@ -1,158 +0,0 @@
-2005-07-08  Jeff Johnston  <jjohnstn at redhat.com>
-
-	* ia64-tdep.c (ia64_sigtramp_frame_prev_register): Build
-	pseudo-registers the same as ia64_pseudo_register_read.
-
-2008-04-16  Yi Zhan  <yi.zhan at intel.com>
-
-	* ia64-tdep.c (ia64_sigtramp_frame_prev_register): Fix an
-	ISO C compliance compilation error.
-
-2008-02-12  Jan Kratochvil  <jan.kratochvil at redhat.com>
-
-	Port to gdb-6.8.50.20081128, follow the upstream change:
-	http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ia64-tdep.c.diff?cvsroot=src&r1=1.176&r2=1.177
-
-Index: gdb-6.8.50.20081128/gdb/ia64-tdep.c
-===================================================================
---- gdb-6.8.50.20081128.orig/gdb/ia64-tdep.c	2008-11-26 06:27:48.000000000 +0100
-+++ gdb-6.8.50.20081128/gdb/ia64-tdep.c	2008-12-02 19:04:32.000000000 +0100
-@@ -2107,6 +2107,94 @@ ia64_sigtramp_frame_prev_register (struc
-       return frame_unwind_got_constant (this_frame, regnum, pc);
-     }
- 
-+  /* Red Hat patch begin.  */
-+  else if (IA64_NAT0_REGNUM <= regnum && regnum <= IA64_NAT31_REGNUM)
-+    {
-+      /* NAT pseudo registers 0-31: get them from UNAT.
-+       * "copied" from ia64_pseudo_register_read() */
-+      ULONGEST unatN_val;
-+      ULONGEST unat;
-+      read_memory (cache->saved_regs[IA64_UNAT_REGNUM], (char *) &unat,
-+		   register_size (target_gdbarch, IA64_UNAT_REGNUM));
-+      unatN_val = (unat & (1LL << (regnum - IA64_NAT0_REGNUM))) != 0;
-+      return frame_unwind_got_constant (this_frame, regnum, unatN_val);
-+    }
-+  else if (IA64_NAT32_REGNUM <= regnum && regnum <= IA64_NAT127_REGNUM)
-+    {
-+      /* NAT pseudo registers 32-127.
-+       * "copied" from ia64_pseudo_register_read()
-+       * FIXME: Not currently tested -- cannot get the frame to include
-+       *        NAT32-NAT127.  */
-+      ULONGEST bsp;
-+      ULONGEST cfm;
-+      ULONGEST natN_val = 0;
-+      CORE_ADDR gr_addr = 0, nat_addr = 0;
-+
-+      read_memory (cache->saved_regs[IA64_BSP_REGNUM], (char *) &bsp,
-+		   register_size (target_gdbarch, IA64_BSP_REGNUM));
-+      read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+		   register_size (target_gdbarch, IA64_CFM_REGNUM));
-+
-+      /* The bsp points at the end of the register frame so we
-+	 subtract the size of frame from it to get start of register frame.  */
-+      bsp = rse_address_add (bsp, -(cfm & 0x7f));
-+
-+      if ((cfm & 0x7f) > regnum - V32_REGNUM)
-+	gr_addr = rse_address_add (bsp, (regnum - V32_REGNUM));
-+
-+      if (gr_addr != 0)
-+	{
-+	  /* Compute address of nat collection bits */
-+	  CORE_ADDR nat_collection;
-+	  int nat_bit;
-+	  nat_addr = gr_addr | 0x1f8;
-+	  /* If our nat collection address is bigger than bsp, we have to get
-+	     the nat collection from rnat.  Otherwise, we fetch the nat
-+	     collection from the computed address. FIXME: Do not know if
-+	     RNAT can be not stored in the frame--being extra cautious. */
-+	  if (nat_addr >= bsp)
-+	    {
-+	      nat_addr = cache->saved_regs[IA64_RNAT_REGNUM];
-+	      if (nat_addr != 0)
-+		read_memory (nat_addr, (char *) &nat_collection,
-+			     register_size (target_gdbarch, IA64_RNAT_REGNUM));
-+	    }
-+	  else
-+	    nat_collection = read_memory_integer (nat_addr, 8, BFD_ENDIAN_LITTLE);
-+	  if (nat_addr != 0)
-+	    {
-+	      nat_bit = (gr_addr >> 3) & 0x3f;
-+	      natN_val = (nat_collection >> nat_bit) & 1;
-+	      return frame_unwind_got_constant (this_frame, regnum, natN_val);
-+	    }
-+	}
-+      warning (_("ia64_sigtramp_frame_prev_register: unhandled register %d"),
-+	       regnum);
-+    }
-+  else if (regnum == VBOF_REGNUM)
-+    {
-+      /* BOF pseudo register.
-+       * "copied" from ia64_pseudo_register_read()
-+       *
-+       * A virtual register frame start is provided for user convenience.
-+       * It can be calculated as the bsp - sof (sizeof frame). */
-+      ULONGEST bsp;
-+      ULONGEST cfm;
-+      ULONGEST bof;
-+
-+      read_memory (cache->saved_regs[IA64_BSP_REGNUM], (char *) &bsp,
-+		   register_size (target_gdbarch, IA64_BSP_REGNUM));
-+      read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+		   register_size (target_gdbarch, IA64_CFM_REGNUM));
-+
-+      /* The bsp points at the end of the register frame so we
-+	 subtract the size of frame from it to get beginning of frame.  */
-+      bof = rse_address_add (bsp, -(cfm & 0x7f));
-+
-+      return frame_unwind_got_constant (this_frame, regnum, bof);
-+    }
-+  /* Red Hat patch end.  */
-+
-   else if ((regnum >= IA64_GR32_REGNUM && regnum <= IA64_GR127_REGNUM)
-            || (regnum >= V32_REGNUM && regnum <= V127_REGNUM))
-     {
-@@ -2121,7 +2209,42 @@ ia64_sigtramp_frame_prev_register (struc
-       return frame_unwind_got_constant (this_frame, regnum, 0);
-     }
- 
--  else  /* All other registers not listed above.  */
-+  /* Red Hat patch begin.  */
-+  else if (VP0_REGNUM <= regnum && regnum <= VP63_REGNUM)
-+    {
-+      /* VP 0-63.
-+       * "copied" from ia64_pseudo_register_read()
-+       *
-+       * FIXME: Not currently tested--cannot get the frame to include PR. */
-+      CORE_ADDR pr_addr = 0;
-+
-+      pr_addr = cache->saved_regs[IA64_PR_REGNUM];
-+      if (pr_addr != 0)
-+	{
-+	  ULONGEST pr;
-+	  ULONGEST cfm;
-+	  ULONGEST prN_val;
-+	  read_memory (pr_addr, (char *) &pr,
-+		       register_size (target_gdbarch, IA64_PR_REGNUM));
-+	  read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+		       register_size (target_gdbarch, IA64_CFM_REGNUM));
-+
-+	  /* Get the register rename base for this frame and adjust the
-+	   * register name to take rotation into account. */
-+	  if (VP16_REGNUM <= regnum && regnum <= VP63_REGNUM)
-+	    {
-+	      int rrb_pr = (cfm >> 32) & 0x3f;
-+	      regnum = VP16_REGNUM + ((regnum - VP16_REGNUM) + rrb_pr) % 48;
-+	    }
-+	  prN_val = (pr & (1LL << (regnum - VP0_REGNUM))) != 0;
-+	  return frame_unwind_got_constant (this_frame, regnum, prN_val);
-+	}
-+      warning (_("ia64_sigtramp_frame_prev_register: unhandled register %d"),
-+	       regnum);
-+    }
-+  /* Red Hat patch end.  */
-+
-+  /* All other registers not listed above.  */
-     {
-       CORE_ADDR addr = cache->saved_regs[regnum];
- 
diff --git a/gdb-6.3-inferior-notification-20050721.patch b/gdb-6.3-inferior-notification-20050721.patch
deleted file mode 100644
index 0eb397c..0000000
--- a/gdb-6.3-inferior-notification-20050721.patch
+++ /dev/null
@@ -1,315 +0,0 @@
-2005-07-21  Jeff Johnston  <jjohnstn at redhat.com>
-
-	* gdb.base/attach-32.exp: New test for attaching in 32-bit
-	mode on 64-bit systems.
-	* gdb.base/attach-32.c: Ditto.
-	* gdb.base/attach-32b.c: Ditto.
-
-2007-12-26  Jan Kratochvil  <jan.kratochvil at redhat.com>
-
-	* gdb.base/attach-32.exp: Fix forgotten $GDBFLAGS as set.
-
-Index: gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32.c	2011-03-20 20:15:57.000000000 +0100
-@@ -0,0 +1,20 @@
-+/* This program is intended to be started outside of gdb, and then
-+   attached to by gdb.  Thus, it simply spins in a loop.  The loop
-+   is exited when & if the variable 'should_exit' is non-zero.  (It
-+   is initialized to zero in this program, so the loop will never
-+   exit unless/until gdb sets the variable to non-zero.)
-+   */
-+#include <stdio.h>
-+
-+int  should_exit = 0;
-+
-+int main ()
-+{
-+  int  local_i = 0;
-+
-+  while (! should_exit)
-+    {
-+      local_i++;
-+    }
-+  return 0;
-+}
-Index: gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32.exp	2011-03-20 20:20:03.000000000 +0100
-@@ -0,0 +1,245 @@
-+# Copyright 2005 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+#
-+# This test was based on attach.exp and modified for 32/64 bit Linux systems. */
-+
-+# On HP-UX 11.0, this test is causing a process running the program
-+# "attach" to be left around spinning.  Until we figure out why, I am
-+# commenting out the test to avoid polluting tiamat (our 11.0 nightly
-+# test machine) with these processes. RT
-+#
-+# Setting the magic bit in the target app should work.  I added a
-+# "kill", and also a test for the R3 register warning.  JB
-+if { ![istarget "x86_64*-*linux*"] 
-+     && ![istarget "powerpc64*-*linux*"]} {
-+    return 0
-+}
-+
-+# are we on a target board
-+if [is_remote target] then {
-+    return 0
-+}
-+
-+set testfile "attach-32"
-+set srcfile  ${testfile}.c
-+set srcfile2 ${testfile}b.c
-+set binfile  ${objdir}/${subdir}/${testfile}
-+set binfile2 ${objdir}/${subdir}/${testfile}b
-+set escapedbinfile  [string_to_regexp ${objdir}/${subdir}/${testfile}]
-+
-+#execute_anywhere "rm -f ${binfile} ${binfile2}"
-+remote_exec build "rm -f ${binfile} ${binfile2}"
-+# For debugging this test
-+#
-+#log_user 1
-+
-+# build the first test case
-+#
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-m32"]] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+# Build the in-system-call test
-+
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable [list debug "additional_flags=-m32"]] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+proc do_attach_tests {} {
-+    global gdb_prompt
-+    global binfile
-+    global escapedbinfile
-+    global srcfile
-+    global testfile
-+    global objdir
-+    global subdir
-+    global timeout
-+    global testpid
-+    
-+    # Verify that we can "see" the variable "should_exit" in the
-+    # program, and that it is zero.
-+   
-+    gdb_test "print should_exit" " = 0" "after attach-32, print should_exit"
-+
-+    # Verify that we can modify the variable "should_exit" in the
-+    # program.
-+
-+    gdb_test "set should_exit=1" "" "after attach-32, set should_exit"
-+
-+    # Verify that the modification really happened.
-+
-+    send_gdb "tbreak 19\n"
-+    gdb_expect {
-+	-re "reakpoint .*at.*$srcfile, line 19.*$gdb_prompt $" {
-+	    pass "after attach-32, set tbreak postloop"
-+	}
-+	-re "$gdb_prompt $" {
-+	    fail "after attach-32, set tbreak postloop"
-+	}
-+	timeout {
-+	    fail "(timeout) after attach-32, set tbreak postloop"
-+	}
-+    }
-+    send_gdb "continue\n"
-+    gdb_expect {
-+	-re "main.*at.*$srcfile:19.*$gdb_prompt $" {
-+	    pass "after attach-32, reach tbreak postloop"
-+	}
-+	-re "$gdb_prompt $" {
-+	    fail "after attach-32, reach tbreak postloop"
-+	}
-+	timeout {
-+	    fail "(timeout) after attach-32, reach tbreak postloop"
-+	}
-+    }
-+
-+    # Allow the test process to exit, to cleanup after ourselves.
-+
-+    gdb_test "continue" {\[Inferior .* exited normally\]} "after attach-32, exit"
-+
-+    # Make sure we don't leave a process around to confuse
-+    # the next test run (and prevent the compile by keeping
-+    # the text file busy), in case the "set should_exit" didn't
-+    # work.
-+   
-+    remote_exec build "kill -9 ${testpid}"
-+
-+    # Start the program running and then wait for a bit, to be sure
-+    # that it can be attached to.
-+   
-+    set testpid [eval exec $binfile &]
-+    exec sleep 2
-+    if { [istarget "*-*-cygwin*"] } {
-+	# testpid is the Cygwin PID, GDB uses the Windows PID, which might be
-+	# different due to the way fork/exec works.
-+	set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
-+    }
-+
-+    # Verify that we can attach to the process, and find its a.out
-+    # when we're cd'd to some directory that doesn't contain the
-+    # a.out.  (We use the source path set by the "dir" command.)
-+    
-+    gdb_test "dir ${objdir}/${subdir}" "Source directories searched: .*" \
-+	"set source path"
-+
-+    gdb_test "cd /tmp" "Working directory /tmp." \
-+	"cd away from process working directory"
-+
-+    # Explicitly flush out any knowledge of the previous attachment.
-+
-+    set test "before attach-32-3, flush symbols"
-+    gdb_test_multiple "symbol" "$test" {
-+	-re "Discard symbol table from.*y or n. $" {
-+	    gdb_test "y" "No symbol file now." \
-+		"$test"
-+	}
-+	-re "No symbol file now.*$gdb_prompt $" {
-+	    pass "$test"
-+	}
-+    }
-+
-+    gdb_test "exec" "No executable file now." \
-+	"before attach-32-3, flush exec"
-+
-+    gdb_test "attach $testpid" \
-+	"Attaching to process $testpid.*Reading symbols from $escapedbinfile.*main.*at .*" \
-+	"attach-32 when process' a.out not in cwd"
-+
-+    set test "after attach-32-3, exit"
-+    gdb_test_multiple "kill" "$test" {
-+	-re "Kill the program being debugged.*y or n. $" {
-+	    gdb_test "y" "" "$test"
-+	}
-+    }
-+    
-+    # Another "don't leave a process around"
-+    remote_exec build "kill -9 ${testpid}"
-+}
-+
-+proc do_call_attach_tests {} {
-+    global gdb_prompt
-+    global binfile2
-+    global testpid
-+    
-+    # See if other registers are problems
-+    
-+    set test "info other register"
-+    gdb_test_multiple "i r r3" "$test" {
-+	-re "warning: reading register.*$gdb_prompt $" {
-+	    fail "$test"
-+	}
-+	-re "r3.*$gdb_prompt $" {
-+	    pass "$test"
-+	}
-+    }
-+
-+    # Get rid of the process
-+    
-+    gdb_test "p should_exit = 1"
-+    gdb_test "c" {\[Inferior .* exited normally\]}
-+   
-+    # Be paranoid
-+   
-+    remote_exec build "kill -9 ${testpid}"
-+}
-+
-+
-+# Start with a fresh gdb
-+
-+gdb_exit
-+set testpid [eval exec $binfile &]
-+exec sleep 3
-+if { [istarget "*-*-cygwin*"] } {
-+    # testpid is the Cygwin PID, GDB uses the Windows PID, which might be
-+    # different due to the way fork/exec works.
-+    set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
-+}
-+
-+set GDBFLAGS_orig $GDBFLAGS
-+set GDBFLAGS "--pid=$testpid"
-+gdb_start
-+set GDBFLAGS $GDBFLAGS_orig
-+
-+gdb_reinitialize_dir $srcdir/$subdir
-+
-+# This is a test of gdb's ability to attach to a running process.
-+
-+do_attach_tests
-+
-+# Test attaching when the target is inside a system call
-+
-+gdb_exit
-+set testpid [eval exec $binfile2 &]
-+exec sleep 3
-+if { [istarget "*-*-cygwin*"] } {
-+    # testpid is the Cygwin PID, GDB uses the Windows PID, which might be
-+    # different due to the way fork/exec works.
-+    set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
-+}
-+
-+set GDBFLAGS_orig $GDBFLAGS
-+set GDBFLAGS "--pid=$testpid"
-+gdb_start
-+set GDBFLAGS $GDBFLAGS_orig
-+
-+gdb_reinitialize_dir $srcdir/$subdir
-+do_call_attach_tests
-+
-+return 0
-Index: gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32b.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.2.50.20110320/gdb/testsuite/gdb.base/attach-32b.c	2011-03-20 20:15:57.000000000 +0100
-@@ -0,0 +1,24 @@
-+/* This program is intended to be started outside of gdb, and then
-+   attached to by gdb.  Thus, it simply spins in a loop.  The loop
-+   is exited when & if the variable 'should_exit' is non-zero.  (It
-+   is initialized to zero in this program, so the loop will never
-+   exit unless/until gdb sets the variable to non-zero.)
-+   */
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <unistd.h>
-+
-+int  should_exit = 0;
-+
-+int main ()
-+{
-+  int  local_i = 0;
-+
-+  sleep( 10 ); /* System call causes register fetch to fail */
-+               /* This is a known HPUX "feature"            */
-+  while (! should_exit)
-+    {
-+      local_i++;
-+    }
-+  return (0);
-+}
diff --git a/gdb-6.3-inheritancetest-20050726.patch b/gdb-6.3-inheritancetest-20050726.patch
deleted file mode 100644
index ab81976..0000000
--- a/gdb-6.3-inheritancetest-20050726.patch
+++ /dev/null
@@ -1,153 +0,0 @@
-2005-07-26  Jeff Johnston  <jjohnstn at redhat.com>
-
-	* gdb.cp/b146835.exp: New testcase.
-	* gdb.cp/b146835.cc: Ditto.
-	* gdb.cp/b146835b.cc: Ditto.
-	* gdb.cp/b146835.h: Ditto.
-
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835b.cc
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835b.cc	2009-08-12 06:07:50.000000000 +0200
-@@ -0,0 +1,11 @@
-+#include "b146835.h"
-+
-+C::C() { d = 0; x = 3; }
-+
-+int C::z (char *s) { return 0; }
-+
-+C::~C() {}
-+
-+void A::funcD (class E *e, class D *d) {}
-+void A::funcE (E *e, D *d) {}
-+void A::funcF (unsigned long x, D *d) {}
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.cc
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.cc	2009-08-12 06:07:50.000000000 +0200
-@@ -0,0 +1,32 @@
-+#include "b146835.h"
-+#include <iostream>
-+
-+class F : public C {
-+
-+protected:
-+
-+   virtual void funcA (unsigned long a, B *b);
-+   virtual void funcB (E *e);
-+   virtual void funcC (unsigned long x, bool y);
-+
-+   char *s1, *s2;
-+   bool b1;
-+   int k;
-+
-+public:
-+   void foo() {
-+       std::cout << "foo" << std::endl;
-+   }
-+};
-+
-+
-+void F::funcA (unsigned long a, B *b) {}
-+void F::funcB (E *e) {}
-+void F::funcC (unsigned long x, bool y) {}
-+
-+int  main()
-+{
-+   F f;
-+   f.foo();
-+}
-+
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.exp	2009-08-12 06:58:28.000000000 +0200
-@@ -0,0 +1,47 @@
-+# This testcase is part of GDB, the GNU debugger.
-+
-+# Copyright 2005 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Check that GDB can properly print an inherited member variable
-+# (Bugzilla 146835)
-+
-+set testfile "b146835"
-+set srcfile ${testfile}.cc
-+set srcfile2 ${testfile}b.cc
-+set binfile ${objdir}/${subdir}/${testfile}
-+if {[gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable {debug c++}] != "" } {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+#
-+# Run to `main' where we begin our tests.
-+#
-+
-+if ![runto_main] then {
-+    gdb_suppress_tests
-+}
-+
-+gdb_test "break 'F::foo()'" ""
-+gdb_continue_to_breakpoint "First line foo"
-+
-+# Verify that we can access the inherited member d
-+gdb_test "p d" " = \\(D \\*\\) *0x0" "Verify inherited member d accessible"
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.h
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.h	2009-08-12 06:07:50.000000000 +0200
-@@ -0,0 +1,36 @@
-+
-+class A {
-+
-+protected:
-+
-+   virtual void funcA (unsigned long a, class B *b) = 0;
-+   virtual void funcB (class E *e) = 0;
-+   virtual void funcC (unsigned long x, bool y) = 0;
-+
-+   void funcD (class E *e, class D* d);
-+   virtual void funcE (E *e, D *d);
-+   virtual void funcF (unsigned long x, D *d);
-+};
-+
-+
-+class C : public A {
-+
-+protected:
-+
-+   int x;
-+   class K *k;
-+   class H *h;
-+
-+   D *d;
-+
-+   class W *w;
-+   class N *n;
-+   class L *l;
-+   unsigned long *r;
-+
-+public:
-+
-+   C();
-+   int z (char *s);
-+   virtual ~C();
-+};
diff --git a/gdb-6.3-mapping-zero-inode-test.patch b/gdb-6.3-mapping-zero-inode-test.patch
deleted file mode 100644
index 73d2446..0000000
--- a/gdb-6.3-mapping-zero-inode-test.patch
+++ /dev/null
@@ -1,229 +0,0 @@
-Index: gdb-6.8.50.20090302/gdb/testsuite/gdb.base/gcore-shmid0.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090302/gdb/testsuite/gdb.base/gcore-shmid0.exp	2009-06-29 16:24:36.000000000 +0200
-@@ -0,0 +1,96 @@
-+# Copyright 2007, 2009 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Test GDB's handling of gcore for mapping with a name but zero inode.
-+
-+if { [prepare_for_testing gcore-shmid0.exp gcore-shmid0] } {
-+    return -1
-+}
-+
-+# Does this gdb support gcore?
-+set test "help gcore"
-+gdb_test_multiple $test $test {
-+    -re "Undefined command: .gcore.*$gdb_prompt $" {
-+	# gcore command not supported -- nothing to test here.
-+	unsupported "gdb does not support gcore on this target"
-+	return -1;
-+    }
-+    -re "Save a core file .*$gdb_prompt $" {
-+	pass $test
-+    }
-+}
-+
-+if { ! [ runto_main ] } then {
-+    untested gcore-shmid0.exp
-+    return -1
-+}
-+
-+gdb_breakpoint "initialized"
-+gdb_breakpoint "unresolved"
-+
-+set test "Continue to initialized."
-+gdb_test_multiple "continue" $test {
-+    -re "Breakpoint .*, initialized .* at .*\r\n$gdb_prompt $" {
-+	pass $test
-+    }
-+    -re "Breakpoint .*, unresolved .* at .*\r\n$gdb_prompt $" {
-+	unsupported $test
-+	return -1
-+    }
-+}
-+
-+set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore-shmid0.test]
-+
-+set test "save a corefile"
-+gdb_test_multiple "gcore ${objdir}/${subdir}/gcore-shmid0.test" $test {
-+    -re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" {
-+	pass $test
-+    }
-+    -re "Can't create a corefile\[\r\n\]+$gdb_prompt $" {
-+	unsupported $test
-+    }
-+}
-+
-+# Be sure to remove the handle first.
-+# But it would get removed even on a kill by GDB as the handle is already
-+# deleted, just it is still attached.
-+gdb_continue_to_end "finish"
-+
-+set test "core-file command"
-+gdb_test_multiple "core-file $objdir/$subdir/gcore-shmid0.test" $test {
-+    -re ".* program is being debugged already.*y or n. $" {
-+	# gdb_load may connect us to a gdbserver.
-+	send_gdb "y\n"
-+	exp_continue;
-+    }
-+    -re "Core was generated by .*\r\n\#0  .*\\\(\\\).*\r\n$gdb_prompt $" {
-+	# The filename does not fit there anyway so do not check it.
-+	pass $test
-+    }
-+    -re ".*registers from core file: File in wrong format.* $" {
-+	fail "core-file command (could not read registers from core file)"
-+    }
-+}
-+
-+set test "backtrace"
-+gdb_test_multiple "bt" $test {
-+    -re "#0 *initialized \\\(\\\) at .*#1 .* main \\\(.*$gdb_prompt $" {
-+	pass $test
-+    }
-+    -re "#0 *initialized \\\(\\\) at .*Cannot access memory at address .*$gdb_prompt $" {
-+	fail $test
-+    }
-+}
-Index: gdb-6.8.50.20090302/gdb/testsuite/gdb.base/gcore-shmid0.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20090302/gdb/testsuite/gdb.base/gcore-shmid0.c	2009-06-29 16:22:49.000000000 +0200
-@@ -0,0 +1,123 @@
-+/* Copyright 2007, 2009 Free Software Foundation, Inc.
-+
-+   This file is part of GDB.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or (at
-+   your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful, but
-+   WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+   General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330,
-+   Boston, MA 02111-1307, USA.  */
-+
-+/*
-+ * Test GDB's handling of gcore for mapping with a name but zero inode.
-+ */
-+
-+#include <sys/ipc.h>
-+#include <sys/shm.h>
-+#include <stdio.h>
-+#include <errno.h>
-+#include <stdlib.h>
-+#include <unistd.h>
-+#include <assert.h>
-+
-+/* The same test running in a parallel testsuite may steal us the zero SID,
-+   even if we never get any EEXIST.  Just try a while.  */
-+
-+#define TIMEOUT_SEC 10
-+
-+static void
-+initialized (void)
-+{
-+}
-+
-+static void
-+unresolved (void)
-+{
-+}
-+
-+int
-+main (void)
-+{
-+  int sid;
-+  unsigned int *addr = (void *) -1L;
-+  int attempt, round = 0;
-+  time_t ts_start, ts;
-+
-+  if (time (&ts_start) == (time_t) -1)
-+    {
-+      printf ("time (): %m\n");
-+      exit (1);
-+    }
-+
-+  /* The generated SID will cycle with an increment of 32768, attempt until it
-+   * wraps to 0.  */
-+
-+  for (attempt = 0; addr == (void *) -1L; attempt++)
-+    {
-+      /* kernel-2.6.25-8.fc9.x86_64 just never returns the value 0 by
-+	 shmget(2).  shmget returns SID range 0..1<<31 in steps of 32768,
-+	 0x1000 should be enough but wrap the range it to be sure.  */
-+
-+      if (attempt > 0x21000)
-+        {
-+	  if (time (&ts) == (time_t) -1)
-+	    {
-+	      printf ("time (): %m\n");
-+	      exit (1);
-+	    }
-+
-+	  if (ts >= ts_start && ts < ts_start + TIMEOUT_SEC)
-+	    {
-+	      attempt = 0;
-+	      round++;
-+	      continue;
-+	    }
-+
-+	  printf ("Problem is not reproducible on this kernel (attempt %d, "
-+		  "round %d))\n", attempt, round);
-+	  unresolved ();
-+	  exit (1);
-+	}
-+
-+      sid = shmget ((key_t) rand (), 0x1000, IPC_CREAT | IPC_EXCL | 0777);
-+      if (sid == -1)
-+	{
-+	  if (errno == EEXIST)
-+	    continue;
-+
-+	  printf ("shmget (%d, 0x1000, IPC_CREAT): errno %d\n", 0, errno);
-+	  exit (1);
-+	}
-+
-+      /* Use SID only if it is 0, retry it otherwise.  */
-+
-+      if (sid == 0)
-+	{
-+	  addr = shmat (sid, NULL, SHM_RND);
-+	  if (addr == (void *) -1L)
-+	    {
-+	      printf ("shmat (%d, NULL, SHM_RND): errno %d\n", sid,
-+		      errno);
-+	      exit (1);
-+	    }
-+	}
-+      if (shmctl (sid, IPC_RMID, NULL) != 0)
-+	{
-+	  printf ("shmctl (%d, IPC_RMID, NULL): errno %d\n", sid, errno);
-+	  exit (1);
-+	}
-+    }
-+
-+  initialized ();
-+
-+  return 0;
-+}
diff --git a/gdb-6.3-ppc64displaysymbol-20041124.patch b/gdb-6.3-ppc64displaysymbol-20041124.patch
deleted file mode 100644
index 8e94e00..0000000
--- a/gdb-6.3-ppc64displaysymbol-20041124.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-2004-11-24  Andrew Cagney  <cagney at gnu.org>
-
-	* printcmd.c (build_address_symbolic): Find a section for the
-	address.
-
-Index: gdb-6.8.50.20081128/gdb/printcmd.c
-===================================================================
---- gdb-6.8.50.20081128.orig/gdb/printcmd.c	2008-12-04 01:36:05.000000000 +0100
-+++ gdb-6.8.50.20081128/gdb/printcmd.c	2008-12-04 01:37:18.000000000 +0100
-@@ -616,6 +616,14 @@ build_address_symbolic (CORE_ADDR addr, 
- 	  addr = overlay_mapped_address (addr, section);
- 	}
-     }
-+  /* To ensure that the symbol returned belongs to the correct setion
-+     (and that the last [random] symbol from the previous section
-+     isn't returned) try to find the section containing PC.  First try
-+     the overlay code (which by default returns NULL); and second try
-+     the normal section code (which almost always succeeds).  */
-+  section = find_pc_overlay (addr);
-+  if (section == NULL)
-+    section = find_pc_section (addr);
- 
-   /* First try to find the address in the symbol table, then
-      in the minsyms.  Take the closest one.  */
diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch
deleted file mode 100644
index a237cc1..0000000
--- a/gdb-6.3-ppc64syscall-20040622.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-2004-06-22  Andrew Cagney  <cagney at gnu.org>
-
-	* rs6000-tdep.c (struct rs6000_framedata): Add field "func_start".
-	(skip_prologue): Delete local variable "orig_pc", use
-	"func_start".  Add local variable "num_skip_linux_syscall_insn",
-	use to skip over first half of a GNU/Linux syscall and update
-	"func_start".
-
-Index: gdb-7.2.50.20110117/gdb/rs6000-tdep.c
-===================================================================
---- gdb-7.2.50.20110117.orig/gdb/rs6000-tdep.c	2011-01-11 20:23:02.000000000 +0100
-+++ gdb-7.2.50.20110117/gdb/rs6000-tdep.c	2011-01-17 15:48:19.000000000 +0100
-@@ -126,6 +126,7 @@ static const char *powerpc_vector_abi_st
- 
- struct rs6000_framedata
-   {
-+    CORE_ADDR func_start;	/* True function start.  */
-     int offset;			/* total size of frame --- the distance
- 				   by which we decrement sp to allocate
- 				   the frame */
-@@ -1496,7 +1497,6 @@ static CORE_ADDR
- skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc,
- 	       struct rs6000_framedata *fdata)
- {
--  CORE_ADDR orig_pc = pc;
-   CORE_ADDR last_prologue_pc = pc;
-   CORE_ADDR li_found_pc = 0;
-   gdb_byte buf[4];
-@@ -1514,12 +1514,14 @@ skip_prologue (struct gdbarch *gdbarch, 
-   int minimal_toc_loaded = 0;
-   int prev_insn_was_prologue_insn = 1;
-   int num_skip_non_prologue_insns = 0;
-+  int num_skip_ppc64_gnu_linux_syscall_insn = 0;
-   int r0_contains_arg = 0;
-   const struct bfd_arch_info *arch_info = gdbarch_bfd_arch_info (gdbarch);
-   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
- 
-   memset (fdata, 0, sizeof (struct rs6000_framedata));
-+  fdata->func_start = pc;
-   fdata->saved_gpr = -1;
-   fdata->saved_fpr = -1;
-   fdata->saved_vr = -1;
-@@ -1553,6 +1555,55 @@ skip_prologue (struct gdbarch *gdbarch, 
- 	break;
-       op = extract_unsigned_integer (buf, 4, byte_order);
- 
-+      /* A PPC64 GNU/Linux system call function is split into two
-+	 sub-functions: a non-threaded fast-path (__NAME_nocancel)
-+	 which does not use a frame; and a threaded slow-path
-+	 (Lpseudo_cancel) that does create a frame.  Ref:
-+	 nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
-+
-+	 *INDENT-OFF*
-+	 NAME:
-+	 	SINGLE_THREAD_P
-+	 	bne- .Lpseudo_cancel
-+	 __NAME_nocancel:
-+	 	li r0,162
-+	 	sc
-+	 	bnslr+
-+	 	b 0x7fe014ef64 <.__syscall_error>
-+	 Lpseudo_cancel:
-+	 	stdu r1,-128(r1)
-+	 	...
-+	 *INDENT-ON*
-+
-+	 Unfortunatly, because the latter case uses a local label (not
-+	 in the symbol table) a PC in "Lpseudo_cancel" appears to be
-+	 in "__NAME_nocancel".  The following code recognizes this,
-+	 adjusting FUNC_START to point to where "Lpseudo_cancel"
-+	 should be, and parsing the prologue sequence as if
-+	 "Lpseudo_cancel" was the entry point.  */
-+
-+      if (((op & 0xffff0000) == 0x38000000 /* li r0,N */
-+	   && pc == fdata->func_start + 0
-+	   && num_skip_ppc64_gnu_linux_syscall_insn == 0)
-+	  || (op == 0x44000002 /* sc */
-+	      && pc == fdata->func_start + 4
-+	      && num_skip_ppc64_gnu_linux_syscall_insn == 1)
-+	  || (op == 0x4ca30020 /* bnslr+ */
-+	      && pc == fdata->func_start + 8
-+	      && num_skip_ppc64_gnu_linux_syscall_insn == 2))
-+	{
-+	  num_skip_ppc64_gnu_linux_syscall_insn++;
-+	  continue;
-+	}
-+      else if ((op & 0xfc000003) == 0x48000000 /* b __syscall_error */
-+	       && pc == fdata->func_start + 12
-+	       && num_skip_ppc64_gnu_linux_syscall_insn == 3)
-+	{
-+	  num_skip_ppc64_gnu_linux_syscall_insn = -1;
-+	  fdata->func_start = pc;
-+	  continue;
-+	}
-+
-       if ((op & 0xfc1fffff) == 0x7c0802a6)
- 	{			/* mflr Rx */
- 	  /* Since shared library / PIC code, which needs to get its
-@@ -1734,9 +1785,9 @@ skip_prologue (struct gdbarch *gdbarch, 
- 	     we have no line table information or the line info tells
- 	     us that the subroutine call is not part of the line
- 	     associated with the prologue.  */
--	  if ((pc - orig_pc) > 8)
-+	  if ((pc - fdata->func_start) > 8)
- 	    {
--	      struct symtab_and_line prologue_sal = find_pc_line (orig_pc, 0);
-+	      struct symtab_and_line prologue_sal = find_pc_line (fdata->func_start, 0);
- 	      struct symtab_and_line this_sal = find_pc_line (pc, 0);
- 
- 	      if ((prologue_sal.line == 0)
diff --git a/gdb-6.3-readnever-20050907.patch b/gdb-6.3-readnever-20050907.patch
deleted file mode 100644
index 7728070..0000000
--- a/gdb-6.3-readnever-20050907.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-2004-11-18  Andrew Cagney  <cagney at gnu.org>
-
-        * dwarf2read.c: Include "top.c".
-        (dwarf2_has_info): Check for readnever_symbol_files.
-        * symfile.c (readnever_symbol_files): Define.
-        * top.h (readnever_symbol_files): Declare.
-        * main.c (captured_main): Add --readnever option.
-        (print_gdb_help): Ditto.
-
-2004-11-18  Andrew Cagney  <cagney at gnu.org>
-
-        * gdb.texinfo (File Options): Document --readnever.
-
-Index: gdb-7.4.50.20120703/gdb/doc/gdb.texinfo
-===================================================================
---- gdb-7.4.50.20120703.orig/gdb/doc/gdb.texinfo	2012-07-03 17:30:07.000000000 +0200
-+++ gdb-7.4.50.20120703/gdb/doc/gdb.texinfo	2012-07-03 17:31:40.695642449 +0200
-@@ -1023,6 +1023,12 @@ Read each symbol file's entire symbol ta
- the default, which is to read it incrementally as it is needed.
- This makes startup slower, but makes future operations faster.
- 
-+ at item --readnever
-+ at cindex @code{--readnever}
-+Do not read each symbol file's symbolic debug information.  This makes
-+startup faster but at the expense of not being able to perform
-+symbolic debugging.
-+
- @end table
- 
- @node Mode Options
-Index: gdb-7.4.50.20120703/gdb/main.c
-===================================================================
---- gdb-7.4.50.20120703.orig/gdb/main.c	2012-07-03 17:30:07.000000000 +0200
-+++ gdb-7.4.50.20120703/gdb/main.c	2012-07-03 17:31:40.696642448 +0200
-@@ -414,6 +414,7 @@ captured_main (void *data)
-       {"xdb", no_argument, &xdb_commands, 1},
-       {"dbx", no_argument, &dbx_commands, 1},
-       {"readnow", no_argument, &readnow_symbol_files, 1},
-+      {"readnever", no_argument, &readnever_symbol_files, 1},
-       {"r", no_argument, &readnow_symbol_files, 1},
-       {"quiet", no_argument, &quiet, 1},
-       {"q", no_argument, &quiet, 1},
-@@ -1131,6 +1132,7 @@ Options:\n\n\
-   fputs_unfiltered (_("\
-   --quiet            Do not print version number on startup.\n\
-   --readnow          Fully read symbol files on first access.\n\
-+  --readnever        Do not read symbol files.\n\
- "), stream);
-   fputs_unfiltered (_("\
-   --se=FILE          Use FILE as symbol file and executable file.\n\
-Index: gdb-7.4.50.20120703/gdb/symfile.c
-===================================================================
---- gdb-7.4.50.20120703.orig/gdb/symfile.c	2012-07-03 17:30:07.000000000 +0200
-+++ gdb-7.4.50.20120703/gdb/symfile.c	2012-07-03 17:31:40.697642447 +0200
-@@ -81,6 +81,7 @@ static void clear_symtab_users_cleanup (
- 
- /* Global variables owned by this file.  */
- int readnow_symbol_files;	/* Read full symbols immediately.  */
-+int readnever_symbol_files;	/* Never read full symbols.  */
- 
- /* External variables and functions referenced.  */
- 
-Index: gdb-7.4.50.20120703/gdb/dwarf2read.c
-===================================================================
---- gdb-7.4.50.20120703.orig/gdb/dwarf2read.c	2012-07-03 17:30:07.000000000 +0200
-+++ gdb-7.4.50.20120703/gdb/dwarf2read.c	2012-07-03 17:31:53.421627153 +0200
-@@ -65,6 +65,7 @@
- #include "gdb/gdb-index.h"
- #include <ctype.h>
- #include "gdb_bfd.h"
-+#include "top.h"
- 
- #include <fcntl.h>
- #include "gdb_string.h"
-@@ -1587,8 +1588,9 @@ dwarf2_has_info (struct objfile *objfile
-                              (void *) names);
-       dwarf2_per_objfile->objfile = objfile;
-     }
--  return (dwarf2_per_objfile->info.asection != NULL
--	  && dwarf2_per_objfile->abbrev.asection != NULL);
-+  return (! readnever_symbol_files
-+	  && (dwarf2_per_objfile->info.asection != NULL
-+	      && dwarf2_per_objfile->abbrev.asection != NULL));
- }
- 
- /* When loading sections, we look either for uncompressed section or for
-Index: gdb-7.4.50.20120703/gdb/top.h
-===================================================================
---- gdb-7.4.50.20120703.orig/gdb/top.h	2012-01-23 18:12:30.000000000 +0100
-+++ gdb-7.4.50.20120703/gdb/top.h	2012-07-03 17:31:40.700642444 +0200
-@@ -60,6 +60,7 @@ extern void set_prompt (const char *s);
- 
- /* From random places.  */
- extern int readnow_symbol_files;
-+extern int readnever_symbol_files;
- 
- /* Perform _initialize initialization.  */
- extern void gdb_init (char *);
diff --git a/gdb-6.3-rh-dummykfail-20041202.patch b/gdb-6.3-rh-dummykfail-20041202.patch
deleted file mode 100644
index 1f0bc9d..0000000
--- a/gdb-6.3-rh-dummykfail-20041202.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-2003-07-11  Elena Zannoni  <ezannoni at redhat.com>
-
-        * lib/gdb.exp (setup_kfail, kfail): Redefine procedures.
-                                                                               
---- ./gdb/testsuite/lib/gdb.exp.1	2004-11-24 15:59:46.131394720 -0500
-+++ ./gdb/testsuite/lib/gdb.exp	2004-11-24 16:01:06.304206600 -0500
-@@ -63,6 +63,15 @@
- 
- ### Only procedures should come after this point.
- 
-+if {![llength [info procs kfail]]} {
-+    proc setup_kfail { args } {
-+	#setup_xfail args
-+    }
-+    proc kfail { bugid message } {
-+	fail $message
-+    }
-+}
-+
- #
- # gdb_version -- extract and print the version number of GDB
- #
diff --git a/gdb-6.3-rh-testlibunwind-20041202.patch b/gdb-6.3-rh-testlibunwind-20041202.patch
deleted file mode 100644
index 0a121c3..0000000
--- a/gdb-6.3-rh-testlibunwind-20041202.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-2003-11-17  Elena Zannoni  <ezannoni at redhat.com>
-   
-        From Jeff Johnston <jjohnstn at redhat.com>
-        * gdb.arch/ia64-libunwind.exp: New file.
-        * gdb.arch/ia64-libunwind.c: New file.
-
-2004-08-03  Jeff Johnston  <jjohnstn at redhat.com>
-   
-        * gdb.arch/ia64-libunwind.exp: Fix test string to match
-	current code base.
-
-	[ acquire_unwind_info -> ia64_find_proc_info_x ]
-
-2009-04-30  Jan Kratochvil  <jan.kratochvil at redhat.com>
-
-	Remove a race from send_gdb "COMMAND\n".
-	Cleanup.
-	Merge in: Patch4: gdb-6.3-rh-testlibunwind1fix-20041202.patch
- 
---- /dev/null	2009-04-19 08:52:54.499000000 +0200
-+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.c	2009-04-30 19:15:16.000000000 +0200
-@@ -0,0 +1,26 @@
-+/* Copyright 2003, 2009 Free Software Foundation, Inc.
-+
-+   This file is part of GDB.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 3 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-+
-+#include <stdio.h>
-+
-+int
-+main ()
-+{
-+  printf ("hello world\n");
-+ 
-+  return 0;
-+}
---- /dev/null	2009-04-19 08:52:54.499000000 +0200
-+++ gdb-6.8/gdb/testsuite/gdb.arch/ia64-libunwind.exp	2009-04-30 19:19:22.000000000 +0200
-@@ -0,0 +1,52 @@
-+# Copyright 2003, 2009 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Please email any bugs, comments, and/or additions to this file to:
-+# bug-gdb at prep.ai.mit.edu
-+
-+# This file was written by Jeff Johnston (jjohnstn at redhat.com)
-+
-+if ![istarget "ia64-*-*"] then {
-+    return
-+}
-+
-+set testfile "ia64-libunwind"
-+set srcfile ${testfile}.c
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+gdb_test "set debug arch 1"
-+gdb_breakpoint "main"
-+gdb_run_cmd
-+
-+set test "libunwind message"
-+gdb_test_multiple "" $test {
-+    -re "ia64_find_proc_info_x.*$gdb_prompt $" {
-+	pass $test
-+    }
-+}
diff --git a/gdb-6.3-rh-testversion-20041202.patch b/gdb-6.3-rh-testversion-20041202.patch
deleted file mode 100644
index 7839200..0000000
--- a/gdb-6.3-rh-testversion-20041202.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-2003-02-24  Elena Zannoni  <ezannoni at redhat.com>
-
-        * gdb.gdb/selftest.exp: Add matching on specific Red Hat only version
-        string.
-
-Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.gdb/selftest.exp
-===================================================================
---- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.gdb/selftest.exp	2010-06-26 08:44:47.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/testsuite/gdb.gdb/selftest.exp	2010-07-12 09:59:42.000000000 +0200
-@@ -342,6 +342,9 @@ proc test_with_self { executable } {
- 	-re ".\[0-9\]+ = +.+ +0x.*\[0-9.\]+.*$gdb_prompt $" {
- 	    pass "printed version with cast"
- 	}
-+	-re ".\[0-9\]+ = .(Fedora|Red Hat Enterprise Linux) \[\\(\\)0-9.a-z\\-\]+.*$gdb_prompt $" {
-+	    pass "printed version Fedora or Red Hat Enterprise Linux only"
-+	}
-     }
- 
-     do_steps_and_nexts
diff --git a/gdb-6.3-test-dtorfix-20050121.patch b/gdb-6.3-test-dtorfix-20050121.patch
deleted file mode 100644
index a8a0266..0000000
--- a/gdb-6.3-test-dtorfix-20050121.patch
+++ /dev/null
@@ -1,239 +0,0 @@
-Index: gdb-7.4.50.20111219/gdb/testsuite/gdb.cp/constructortest.cc
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20111219/gdb/testsuite/gdb.cp/constructortest.cc	2011-12-19 22:05:02.825431735 +0100
-@@ -0,0 +1,99 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2005 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330,
-+   Boston, MA 02111-1307, USA.  */
-+
-+class A
-+{
-+  public:
-+    A();
-+    ~A();
-+    int  k;
-+  private:
-+    int  x;
-+};
-+
-+class B: public A
-+{
-+  public:
-+    B();
-+  private:
-+    int  y;
-+};
-+
-+/* C and D are for the $delete destructor.  */
-+
-+class C
-+{
-+  public:
-+    C();
-+    virtual ~C();
-+  private:
-+    int  x;
-+};
-+
-+class D: public C
-+{
-+  public:
-+    D();
-+  private:
-+    int  y;
-+};
-+
-+int main(int argc, char *argv[])
-+{
-+  A* a = new A;
-+  B* b = new B;
-+  D* d = new D;
-+  delete a;
-+  delete b;
-+  delete d;
-+  return 0;
-+}
-+
-+A::A() /* Constructor A */
-+{
-+   x = 1; /* First line A */
-+   k = 4; /* Second line A */
-+}
-+
-+A::~A() /* Destructor A */
-+{
-+   x = 3; /* First line ~A */
-+   k = 6; /* Second line ~A */
-+}
-+
-+B::B()
-+{
-+   y = 2; /* First line B */
-+   k = 5;
-+}
-+
-+C::C() /* Constructor C */
-+{
-+   x = 1; /* First line C */
-+}
-+
-+C::~C() /* Destructor C */
-+{
-+   x = 3; /* First line ~C */
-+}
-+
-+D::D()
-+{
-+   y = 2; /* First line D */
-+}
-Index: gdb-7.4.50.20111219/gdb/testsuite/gdb.cp/constructortest.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20111219/gdb/testsuite/gdb.cp/constructortest.exp	2011-12-19 23:07:24.148290893 +0100
-@@ -0,0 +1,130 @@
-+# This testcase is part of GDB, the GNU debugger.
-+
-+# Copyright 2005, 2007 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+# Check that GDB can break at multiple forms of constructors.
-+
-+set testfile "constructortest"
-+set srcfile ${testfile}.cc
-+set binfile ${objdir}/${subdir}/${testfile}
-+# PIE is required for testing proper BREAKPOINT_RE_SET of the multiple-PC
-+# breakpoints.
-+if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ "additional_flags=-fpie -pie"}] != "" } {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load ${binfile}
-+
-+#
-+# Run to `main' where we begin our tests.
-+#
-+
-+if ![runto_main] then {
-+    gdb_suppress_tests
-+}
-+
-+# Break on the various forms of the A::A constructor.
-+# " (2 locations)" is displayed depending on G++ version.
-+gdb_test "break A\:\:A" "Breakpoint 2 at .*" "breaking on A::A"
-+        
-+# Verify that we break for the A constructor two times
-+# Once for new A and once for new B
-+gdb_continue_to_breakpoint "First line A"
-+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::A"
-+gdb_continue_to_breakpoint "First line A"
-+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::A"
-+
-+# Now do the same for destructors
-+gdb_test "break 'A::~A()'" ""
-+
-+# Verify that we break for the A destructor two times
-+# Once for delete a and once for delete b
-+gdb_continue_to_breakpoint "First line ~A"
-+gdb_test "bt" "#0.*~A.*#1.*main.*" "Verify in in-charge A::~A"
-+gdb_continue_to_breakpoint "First line ~A"
-+gdb_test "bt" "#0.*~A.*#1.*~B.*#2.*main.*" "Verify in not-in-charge A::~A"
-+
-+
-+# Verify that we can break by line number in a constructor and find
-+# both occurrences
-+runto_main
-+gdb_test "break 'A::A()'" "" "break in constructor A 2"
-+gdb_continue_to_breakpoint "First line A"
-+set second_line [gdb_get_line_number "Second line A"]
-+# " (2 locations)" is displayed depending on G++ version.
-+gdb_test "break $second_line" "Breakpoint .*, line $second_line\\..*" "break by line in constructor"
-+gdb_continue_to_breakpoint "Second line A"
-+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::A second line"
-+gdb_continue_to_breakpoint "Second line A"
-+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::A second line"
-+
-+# Verify that we can break by line number in a destructor and find
-+# both occurrences
-+gdb_test "break 'A::~A()'" "" "break in constructor ~A 2"
-+gdb_continue_to_breakpoint "First line ~A"
-+set second_line_dtor [gdb_get_line_number "Second line ~A"]
-+# " (2 locations)" is displayed depending on G++ version.
-+gdb_test "break $second_line_dtor" "Breakpoint .*, line $second_line_dtor\\..*" "break by line in destructor"
-+gdb_continue_to_breakpoint "Second line ~A"
-+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::~A second line"
-+# FIXME: Analyse this case better.
-+gdb_continue_to_breakpoint "Second line ~A"
-+gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in A::~A second line #2"
-+gdb_continue_to_breakpoint "Second line ~A"
-+gdb_test "bt" "#0.*A.*#1.*B.*#2.*main.*" "Verify in not-in-charge A::~A second line"
-+
-+
-+# Test now the $delete destructors.
-+
-+gdb_load ${binfile}
-+runto_main
-+
-+set first_line_dtor [gdb_get_line_number "First line ~C"]
-+set define_line_dtor [gdb_get_line_number "Destructor C"]
-+# Break on the various forms of the C::~C destructor
-+# " ([23] locations)" is displayed depending on G++ version.
-+gdb_test "break C\:\:~C" "Breakpoint .*: C::~C\\. \\(2 locations\\)" "breaking on C::~C"
-+gdb_continue_to_breakpoint "First line ~C"
-+
-+# Verify that we can break by line number in a destructor and find
-+# the $delete occurence
-+
-+gdb_load ${binfile}
-+delete_breakpoints
-+
-+# " (3 locations)" is displayed depending on G++ version.
-+gdb_test "break $first_line_dtor" "Breakpoint .*, line $first_line_dtor\\..*" "break by line in destructor"
-+
-+# Run to `main' where we begin our tests.
-+# Set the breakpoints first to test PIE multiple-PC BREAKPOINT_RE_SET.
-+# RUNTO_MAIN or RUNTO MAIN are not usable here as it runs DELETE_BREAKPOINTS.
-+
-+if ![gdb_breakpoint main] {
-+    gdb_suppress_tests
-+}
-+gdb_run_cmd
-+set test "running to main"
-+gdb_test_multiple "" $test {
-+    -re "Breakpoint \[0-9\]*, main .*$gdb_prompt $" {
-+	pass $test
-+    }
-+}
-+
-+gdb_continue_to_breakpoint "First line ~C"
diff --git a/gdb-6.3-test-movedir-20050125.patch b/gdb-6.3-test-movedir-20050125.patch
deleted file mode 100644
index 4b05c13..0000000
--- a/gdb-6.3-test-movedir-20050125.patch
+++ /dev/null
@@ -1,95 +0,0 @@
-2005-01-25  Elena Zannoni  <ezannoni at redhat.com>
-
-        * gdb.base/move-dir.exp: New test.
-        * gdb.base/move-dir.c: Ditto.
-        * gdb.base/move-dir.h: Ditto.
-
-Index: gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.c	2008-12-07 23:57:41.000000000 +0100
-@@ -0,0 +1,10 @@
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include "move-dir.h"
-+
-+int main() {
-+   const char* hw = "hello world.";
-+   printf ("%s\n", hw);;
-+   other();
-+}
-+
-Index: gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.exp	2008-12-07 10:13:01.000000000 +0100
-@@ -0,0 +1,57 @@
-+#   Copyright 2005
-+#   Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-+
-+set testfile "move-dir"
-+set srcfile ${testfile}.c
-+set incfile ${testfile}.h
-+set binfile ${objdir}/${subdir}/${testfile}
-+
-+set testdir "${objdir}/${subdir}/incdir"
-+
-+remote_exec build "mkdir $testdir"
-+remote_exec build "cp ${srcdir}/${subdir}/${srcfile} ${objdir}/${subdir}"
-+remote_exec build "cp ${srcdir}/${subdir}/${incfile} ${testdir}"
-+
-+set additional_flags "additional_flags=-I${subdir}/incdir"
-+
-+if  { [gdb_compile "${objdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
-+    gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+# Create and source the file that provides information about the compiler
-+# used to compile the test case.
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1;
-+}
-+
-+
-+set oldtimeout $timeout
-+set timeout [expr "$timeout + 60"]
-+
-+# Start with a fresh gdb.
-+
-+gdb_exit
-+gdb_start
-+gdb_test "cd ../.." "" ""
-+gdb_load ${binfile}
-+gdb_test "list main" ".*hw.*other.*" "found main"
-+gdb_test "list other" ".*ostring.*" "found include file"
-+
-+
-+set timeout $oldtimeout
-+return 0
-Index: gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.h
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.50.20081128/gdb/testsuite/gdb.base/move-dir.h	2008-12-07 10:13:01.000000000 +0100
-@@ -0,0 +1,7 @@
-+#include <stdlib.h>
-+
-+void other() {
-+  const char* ostring = "other";
-+  printf ("%s\n", ostring);;
-+}
-+
diff --git a/gdb-6.3-test-pie-20050107.patch b/gdb-6.3-test-pie-20050107.patch
deleted file mode 100644
index f877225..0000000
--- a/gdb-6.3-test-pie-20050107.patch
+++ /dev/null
@@ -1,2085 +0,0 @@
-Index: gdb-7.4.50.20120602/gdb/testsuite/configure.ac
-===================================================================
---- gdb-7.4.50.20120602.orig/gdb/testsuite/configure.ac	2012-04-25 16:07:22.000000000 +0200
-+++ gdb-7.4.50.20120602/gdb/testsuite/configure.ac	2012-06-02 18:24:38.456266545 +0200
-@@ -96,6 +96,6 @@ AC_OUTPUT([Makefile \
-   gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile \
-   gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile \
-   gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
--  gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \
-+  gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.pie/Makefile \
-   gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \
-   gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])
-Index: gdb-7.4.50.20120602/gdb/testsuite/configure
-===================================================================
---- gdb-7.4.50.20120602.orig/gdb/testsuite/configure	2012-04-25 16:07:21.000000000 +0200
-+++ gdb-7.4.50.20120602/gdb/testsuite/configure	2012-06-02 18:25:06.200258240 +0200
-@@ -3448,7 +3448,7 @@ done
- 
- 
- 
--ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
-+ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.pie/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
- 
- cat >confcache <<\_ACEOF
- # This file is a shell script that caches the results of configure
-@@ -4175,6 +4175,7 @@ do
-     "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;;
-     "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
-     "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
-+    "gdb.pie/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pie/Makefile" ;;
-     "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
-     "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
-     "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;;
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach.c	2012-06-02 18:24:38.497266532 +0200
-@@ -0,0 +1,20 @@
-+/* This program is intended to be started outside of gdb, and then
-+   attached to by gdb.  Thus, it simply spins in a loop.  The loop
-+   is exited when & if the variable 'should_exit' is non-zero.  (It
-+   is initialized to zero in this program, so the loop will never
-+   exit unless/until gdb sets the variable to non-zero.)
-+   */
-+#include <stdio.h>
-+
-+int  should_exit = 0;
-+
-+int main ()
-+{
-+  int  local_i = 0;
-+
-+  while (! should_exit)
-+    {
-+      local_i++;
-+    }
-+  return 0;
-+}
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach2.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach2.c	2012-06-02 18:24:38.504266529 +0200
-@@ -0,0 +1,24 @@
-+/* This program is intended to be started outside of gdb, and then
-+   attached to by gdb.  Thus, it simply spins in a loop.  The loop
-+   is exited when & if the variable 'should_exit' is non-zero.  (It
-+   is initialized to zero in this program, so the loop will never
-+   exit unless/until gdb sets the variable to non-zero.)
-+   */
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <unistd.h>
-+
-+int  should_exit = 0;
-+
-+int main ()
-+{
-+  int  local_i = 0;
-+
-+  sleep( 10 ); /* System call causes register fetch to fail */
-+               /* This is a known HPUX "feature"            */
-+  while (! should_exit)
-+    {
-+      local_i++;
-+    }
-+  return (0);
-+}
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/break.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/break.c	2012-06-02 18:24:38.505266529 +0200
-@@ -0,0 +1,146 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 1992, 1993, 1994, 1995, 1999, 2002, 2003 Free Software
-+   Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+   Please email any bugs, comments, and/or additions to this file to:
-+   bug-gdb at prep.ai.mit.edu  */
-+
-+#ifdef vxworks
-+
-+#  include <stdio.h>
-+
-+/* VxWorks does not supply atoi.  */
-+static int
-+atoi (z)
-+     char *z;
-+{
-+  int i = 0;
-+
-+  while (*z >= '0' && *z <= '9')
-+    i = i * 10 + (*z++ - '0');
-+  return i;
-+}
-+
-+/* I don't know of any way to pass an array to VxWorks.  This function
-+   can be called directly from gdb.  */
-+
-+vxmain (arg)
-+char *arg;
-+{
-+  char *argv[2];
-+
-+  argv[0] = "";
-+  argv[1] = arg;
-+  main (2, argv, (char **) 0);
-+}
-+
-+#else /* ! vxworks */
-+#  include <stdio.h>
-+#  include <stdlib.h>
-+#endif /* ! vxworks */
-+
-+#ifdef PROTOTYPES
-+extern int marker1 (void);
-+extern int marker2 (int a);
-+extern void marker3 (char *a, char *b);
-+extern void marker4 (long d);
-+#else
-+extern int marker1 ();
-+extern int marker2 ();
-+extern void marker3 ();
-+extern void marker4 ();
-+#endif
-+
-+/*
-+ *	This simple classical example of recursion is useful for
-+ *	testing stack backtraces and such.
-+ */
-+
-+#ifdef PROTOTYPES
-+int factorial(int);
-+
-+int
-+main (int argc, char **argv, char **envp)
-+#else
-+int
-+main (argc, argv, envp)
-+int argc;
-+char *argv[], **envp;
-+#endif
-+{
-+#ifdef usestubs
-+    set_debug_traps();  /* set breakpoint 5 here */
-+    breakpoint();
-+#endif
-+    if (argc == 12345) {  /* an unlikely value < 2^16, in case uninited */ /* set breakpoint 6 here */
-+	fprintf (stderr, "usage:  factorial <number>\n");
-+	return 1;
-+    }
-+    printf ("%d\n", factorial (atoi ("6")));  /* set breakpoint 1 here */
-+    /* set breakpoint 12 here */
-+    marker1 ();  /* set breakpoint 11 here */
-+    marker2 (43); /* set breakpoint 20 here */
-+    marker3 ("stack", "trace"); /* set breakpoint 21 here */
-+    marker4 (177601976L);
-+    argc = (argc == 12345); /* This is silly, but we can step off of it */ /* set breakpoint 2 here */
-+    return argc;  /* set breakpoint 10 here */
-+}
-+
-+#ifdef PROTOTYPES
-+int factorial (int value)
-+#else
-+int factorial (value)
-+int value;
-+#endif
-+{
-+  if (value > 1) {  /* set breakpoint 7 here */
-+	value *= factorial (value - 1);
-+    }
-+    return (value); /* set breakpoint 19 here */
-+}
-+
-+#ifdef PROTOTYPES
-+int multi_line_if_conditional (int a, int b, int c)
-+#else
-+int multi_line_if_conditional (a, b, c)
-+  int a, b, c;
-+#endif
-+{
-+  if (a    /* set breakpoint 3 here */
-+      && b
-+      && c)
-+    return 0;
-+  else
-+    return 1;
-+}
-+
-+#ifdef PROTOTYPES
-+int multi_line_while_conditional (int a, int b, int c)
-+#else
-+int multi_line_while_conditional (a, b, c)
-+  int a, b, c;
-+#endif
-+{
-+  while (a /* set breakpoint 4 here */
-+      && b
-+      && c)
-+    {
-+      a--, b--, c--;
-+    }
-+  return 0;
-+}
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/break1.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/break1.c	2012-06-02 18:24:38.506266530 +0200
-@@ -0,0 +1,44 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 1992, 1993, 1994, 1995, 1999, 2002, 2003 Free Software
-+   Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or
-+   (at your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+   GNU General Public License for more details.
-+ 
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+
-+   Please email any bugs, comments, and/or additions to this file to:
-+   bug-gdb at prep.ai.mit.edu  */
-+
-+/* The code for this file was extracted from the gdb testsuite
-+   testcase "break.c". */
-+
-+/* The following functions do nothing useful.  They are included
-+   simply as places to try setting breakpoints at.  They are
-+   explicitly "one-line functions" to verify that this case works
-+   (some versions of gcc have or have had problems with this).
-+  
-+   These functions are in a separate source file to prevent an
-+   optimizing compiler from inlining them and optimizing them away. */
-+
-+#ifdef PROTOTYPES
-+int marker1 (void) { return (0); }	/* set breakpoint 15 here */
-+int marker2 (int a) { return (1); }	/* set breakpoint 8 here */
-+void marker3 (char *a, char *b) {}	/* set breakpoint 17 here */
-+void marker4 (long d) {}		/* set breakpoint 14 here */
-+#else
-+int marker1 () { return (0); }		/* set breakpoint 16 here */
-+int marker2 (a) int a; { return (1); }	/* set breakpoint 9 here */
-+void marker3 (a, b) char *a, *b; {}	/* set breakpoint 18 here */
-+void marker4 (d) long d; {}		/* set breakpoint 13 here */
-+#endif
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/coremaker.c
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/coremaker.c	2012-06-02 18:24:38.506266530 +0200
-@@ -0,0 +1,142 @@
-+/* Copyright 1992, 1993, 1994, 1995, 1996, 1999
-+   Free Software Foundation, Inc.
-+
-+   This file is part of GDB.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public License as published by
-+   the Free Software Foundation; either version 2 of the License, or (at
-+   your option) any later version.
-+
-+   This program is distributed in the hope that it will be useful, but
-+   WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+   General Public License for more details.
-+
-+   You should have received a copy of the GNU General Public License
-+   along with this program; if not, write to the Free Software
-+   Foundation, Inc., 59 Temple Place - Suite 330,
-+   Boston, MA 02111-1307, USA.  */
-+
-+/* Simple little program that just generates a core dump from inside some
-+   nested function calls. */
-+
-+#include <stdio.h>
-+#include <sys/types.h>
-+#include <fcntl.h>
-+#include <sys/mman.h>
-+#include <signal.h>
-+#include <stdlib.h>
-+#include <unistd.h>
-+
-+#ifndef __STDC__
-+#define	const	/**/
-+#endif
-+
-+#define MAPSIZE (8 * 1024)
-+
-+/* Don't make these automatic vars or we will have to walk back up the
-+   stack to access them. */
-+
-+char *buf1;
-+char *buf2;
-+
-+int coremaker_data = 1;	/* In Data section */
-+int coremaker_bss;	/* In BSS section */
-+
-+const int coremaker_ro = 201;	/* In Read-Only Data section */
-+
-+/* Note that if the mapping fails for any reason, we set buf2
-+   to -1 and the testsuite notices this and reports it as
-+   a failure due to a mapping error.  This way we don't have
-+   to test for specific errors when running the core maker. */
-+
-+void
-+mmapdata ()
-+{
-+  int j, fd;
-+
-+  /* Allocate and initialize a buffer that will be used to write
-+     the file that is later mapped in. */
-+
-+  buf1 = (char *) malloc (MAPSIZE);
-+  for (j = 0; j < MAPSIZE; ++j)
-+    {
-+      buf1[j] = j;
-+    }
-+
-+  /* Write the file to map in */
-+
-+  fd = open ("coremmap.data", O_CREAT | O_RDWR, 0666);
-+  if (fd == -1)
-+    {
-+      perror ("coremmap.data open failed");
-+      buf2 = (char *) -1;
-+      return;
-+    }
-+  write (fd, buf1, MAPSIZE);
-+
-+  /* Now map the file into our address space as buf2 */
-+
-+  buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
-+  if (buf2 == (char *) -1)
-+    {
-+      perror ("mmap failed");
-+      return;
-+    }
-+
-+  /* Verify that the original data and the mapped data are identical.
-+     If not, we'd rather fail now than when trying to access the mapped
-+     data from the core file. */
-+
-+  for (j = 0; j < MAPSIZE; ++j)
-+    {
-+      if (buf1[j] != buf2[j])
-+	{
-+	  fprintf (stderr, "mapped data is incorrect");
-+	  buf2 = (char *) -1;
-+	  return;
-+	}
-+    }
-+}
-+
-+void
-+func2 ()
-+{
-+  int coremaker_local[5];
-+  int i;
-+
-+#ifdef SA_FULLDUMP
-+  /* Force a corefile that includes the data section for AIX.  */
-+  {
-+    struct sigaction sa;
-+
-+    sigaction (SIGABRT, (struct sigaction *)0, &sa);
-+    sa.sa_flags |= SA_FULLDUMP;
-+    sigaction (SIGABRT, &sa, (struct sigaction *)0);
-+  }
-+#endif
-+
-+  /* Make sure that coremaker_local doesn't get optimized away. */
-+  for (i = 0; i < 5; i++)
-+    coremaker_local[i] = i;
-+  coremaker_bss = 0;
-+  for (i = 0; i < 5; i++)
-+    coremaker_bss += coremaker_local[i];
-+  coremaker_data = coremaker_ro + 1;
-+  abort ();
-+}
-+
-+void
-+func1 ()
-+{
-+  func2 ();
-+}
-+
-+int main ()
-+{
-+  mmapdata ();
-+  func1 ();
-+  return 0;
-+}
-+
-Index: gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach.exp
-===================================================================
---- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.4.50.20120602/gdb/testsuite/gdb.pie/attach.exp	2012-06-02 18:24:38.508266531 +0200
-@@ -0,0 +1,417 @@
-+#   Copyright 1997, 1999, 2002 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 2 of the License, or
-+# (at your option) any later version.
-+# 
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+# GNU General Public License for more details.
-+# 
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-+
-+# On HP-UX 11.0, this test is causing a process running the program
-+# "attach" to be left around spinning.  Until we figure out why, I am
-+# commenting out the test to avoid polluting tiamat (our 11.0 nightly
-+# test machine) with these processes. RT
-+#
-+# Setting the magic bit in the target app should work.  I added a
-+# "kill", and also a test for the R3 register warning.  JB
-+if { [istarget "hppa*-*-hpux*"] } {
-+    return 0
-+}
-+
-+# are we on a target board
-+if [is_remote target] then {
-+    return 0
-+}
-+
-+set testfile "attach"
-+set srcfile  ${testfile}.c
-+set srcfile2 ${testfile}2.c
-+set binfile  ${objdir}/${subdir}/${testfile}
-+set binfile2 ${objdir}/${subdir}/${testfile}2
-+set escapedbinfile  [string_to_regexp ${objdir}/${subdir}/${testfile}]
-+set cleanupfile ${objdir}/${subdir}/${testfile}.awk
-+
-+#execute_anywhere "rm -f ${binfile} ${binfile2}"
-+remote_exec build "rm -f ${binfile} ${binfile2}"
-+# For debugging this test
-+#
-+#log_user 1
-+
-+# Clean out any old files from past runs.
-+#
-+remote_exec build "${cleanupfile}"
-+
-+# build the first test case
-+#
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug "additional_flags= -fpie -pie"}] != "" } {
-+     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+# Build the in-system-call test
-+
-+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug "additional_flags= -fpie -pie"}] != "" } {
-+     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
-+}
-+
-+if [get_compiler_info ${binfile}] {
-+    return -1
-+}
-+
-+proc do_attach_tests {} {
-+   global gdb_prompt
-+   global binfile
-+   global escapedbinfile
-+   global srcfile
-+   global testfile
-+   global objdir
-+   global subdir
-+   global timeout
-+
-+   # Start the program running and then wait for a bit, to be sure
-+   # that it can be attached to.
-+   #
-+   set testpid [eval exec $binfile &]
-+   exec sleep 2
-+
-+   # Verify that we cannot attach to nonsense.
-+   #
-+   send_gdb "attach abc\n"
-+   gdb_expect {
-+      -re ".*Illegal process-id: abc.*$gdb_prompt $"\
-+                      {pass "attach to nonsense is prohibited"}
-+      -re "Attaching to.*, process .*couldn't open /proc file.*$gdb_prompt $"\
-+                      {
-+                        # Response expected from /proc-based systems.
-+                        pass "attach to nonsense is prohibited" 
-+                      }
-+      -re "Attaching to.*$gdb_prompt $"\
-+                      {fail "attach to nonsense is prohibited (bogus pid allowed)"}
-+      -re "$gdb_prompt $" {fail "attach to nonsense is prohibited"}
-+      timeout         {fail "(timeout) attach to nonsense is prohibited"}
-+   }
-+
-+   # Verify that we cannot attach to what appears to be a valid
-+   # process ID, but is a process that doesn't exist.  Traditionally,
-+   # most systems didn't have a process with ID 0, so we take that as
-+   # the default.  However, there are a few exceptions.
-+   #
-+   set boguspid 0
-+   if { [istarget "*-*-*bsd*"] } {
-+       # In FreeBSD 5.0, PID 0 is used for "swapper".  Use -1 instead
-+       # (which should have the desired effect on any version of
-+       # FreeBSD, and probably other *BSD's too).
-+       set boguspid -1
-+   }
-+   send_gdb "attach $boguspid\n"
-+   gdb_expect {
-+       -re "Attaching to.*, process $boguspid.*No such process.*$gdb_prompt $"\
-+	       {
-+	   # Response expected on ptrace-based systems (i.e. HP-UX 10.20).
-+	   pass "attach to nonexistent process is prohibited"
-+       }
-+       -re "Attaching to.*, process $boguspid failed.*Hint.*$gdb_prompt $"\
-+	       {
-+	   # Response expected on ttrace-based systems (i.e. HP-UX 11.0).
-+	   pass "attach to nonexistent process is prohibited"
-+       }
-+       -re "Attaching to.*, process $boguspid.*denied.*$gdb_prompt $"\
-+	       {pass "attach to nonexistent process is prohibited"}
-+       -re "Attaching to.*, process $boguspid.*not permitted.*$gdb_prompt $"\
-+	       {pass "attach to nonexistent process is prohibited"}
-+       -re "Attaching to.*, process .*couldn't open /proc file.*$gdb_prompt $"\
-+	       {
-+	   # Response expected from /proc-based systems.
-+	   pass "attach to nonexistent process is prohibited"
-+       }
-+       -re "$gdb_prompt $" {fail "attach to nonexistent process is prohibited"}
-+       timeout {
-+	   fail "(timeout) attach to nonexistent process is prohibited"
-+       }
-+   }
-+
-+   # Verify that we can attach to the process by first giving its
-+   # executable name via the file command, and using attach with
-+   # the process ID.
-+   #
-+   # (Actually, the test system appears to do this automatically
-+   # for us.  So, we must also be prepared to be asked if we want
-+   # to discard an existing set of symbols.)
-+   #
-+   send_gdb "file $binfile\n"
-+   gdb_expect {
-+      -re "Load new symbol table from.*y or n.*$" {
-+         send_gdb "y\n"
-+         gdb_expect {
-+            -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $"\
-+                            {pass "(re)set file, before attach1"}
-+            -re "$gdb_prompt $" {fail "(re)set file, before attach1"}
-+            timeout         {fail "(timeout) (re)set file, before attach1"}
-+         }
-+      }
-+      -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $"\
-+                      {pass "set file, before attach1"}
-+      -re "$gdb_prompt $" {fail "set file, before attach1"}
-+      timeout         {fail "(timeout) set file, before attach1"}
-+   }
-+
-+   send_gdb "attach $testpid\n"
-+   gdb_expect {
-+      -re "Attaching to program.*`?$escapedbinfile'?, process $testpid.*main.*at .*$srcfile:.*$gdb_prompt $"\
-+                      {pass "attach1, after setting file"}
-+      -re "$gdb_prompt $" {fail "attach1, after setting file"}
-+      timeout         {fail "(timeout) attach1, after setting file"}
-+   }
-+
-+   # Verify that we can "see" the variable "should_exit" in the
-+   # program, and that it is zero.
-+   #
-+   send_gdb "print should_exit\n"
-+   gdb_expect {
-+      -re ".* = 0.*$gdb_prompt $"\
-+                      {pass "after attach1, print should_exit"}
-+      -re "$gdb_prompt $" {fail "after attach1, print should_exit"}
-+      timeout         {fail "(timeout) after attach1, print should_exit"}
-+   }
-+
-+   # Detach the process.
-+   #
-+   send_gdb "detach\n"
-+   gdb_expect {
-+      -re "Detaching from program: .*$escapedbinfile.*$gdb_prompt $"\
-+                      {pass "attach1 detach"}
-+      -re "$gdb_prompt $" {fail "attach1 detach"}
-+      timeout         {fail "(timeout) attach1 detach"}
-+   }
-+
-+   # Wait a bit for gdb to finish detaching
-+   #
-+   exec sleep 5
-+
-+   # Purge the symbols from gdb's brain.  (We want to be certain
-+   # the next attach, which won't be preceded by a "file" command,
-+   # is really getting the executable file without our help.)
-+   #
-+   set old_timeout $timeout
-+   set timeout 15 
-+   send_gdb "file\n"
-+   gdb_expect {
-+      -re ".*gdb internal error.*$" { 
-+          fail "Internal error, prob. Memory corruption" 
-+      }
-+      -re "No executable file now.*Discard symbol table.*y or n.*$" {
-+         send_gdb "y\n"
-+         gdb_expect {
-+            -re "No symbol file now.*$gdb_prompt $"\
-+                            {pass "attach1, purging symbols after detach"}
-+            -re "$gdb_prompt $" {fail "attach1, purging symbols after detach"}
-+            timeout         {fail "(timeout) attach1, purging symbols after detach"}
-+         }
-+      }
-+      -re "$gdb_prompt $" {fail "attach1, purging file after detach"}
-+      timeout         {
-+          fail "(timeout) attach1, purging file after detach"
-+      }
-+   }
-+   set timeout $old_timeout
-+
-+   # Verify that we can attach to the process just by giving the
-+   # process ID.
-+   #
-+   send_gdb "attach $testpid\n"
-+   gdb_expect {
-+      -re "Attaching to process $testpid.*Reading symbols from $escapedbinfile.*main.*at .*$gdb_prompt $"\
-+                      {pass "attach2"}
-+      -re "$gdb_prompt $" {fail "attach2"}
-+      timeout         {fail "(timeout) attach2"}
-+   }
-+
-+   # Verify that we can modify the variable "should_exit" in the
-+   # program.
-+   #
-+   send_gdb "set should_exit=1\n"
-+   gdb_expect {
-+      -re "$gdb_prompt $" {pass "after attach2, set should_exit"}
-+      timeout         {fail "(timeout) after attach2, set should_exit"}
-+   }
-+
-+   # Verify that the modification really happened.
-+   #
-+   send_gdb "tbreak 19\n"
-+   gdb_expect {
-+      -re "reakpoint .*at.*$srcfile, line 19.*$gdb_prompt $"\
-+                      {pass "after attach2, set tbreak postloop"}
-+      -re "$gdb_prompt $" {fail "after attach2, set tbreak postloop"}
-+      timeout         {fail "(timeout) after attach2, set tbreak postloop"}
-+   }
-+   send_gdb "continue\n"
-+   gdb_expect {
-+      -re "main.*at.*$srcfile:19.*$gdb_prompt $"\
-+                      {pass "after attach2, reach tbreak postloop"}
-+      -re "$gdb_prompt $" {fail "after attach2, reach tbreak postloop"}
-+      timeout         {fail "(timeout) after attach2, reach tbreak postloop"}
-+   }
-+
-+   # Allow the test process to exit, to cleanup after ourselves.
-+   #
-+   gdb_test "continue" {\[Inferior .* exited normally\]} "after attach2, exit"
-+
-+   # Make sure we don't leave a process around to confuse
-+   # the next test run (and prevent the compile by keeping
-+   # the text file busy), in case the "set should_exit" didn't
-+   # work.
-+   #
-+   remote_exec build "kill -9 ${testpid}"
-+   # Start the program running and then wait for a bit, to be sure
-+   # that it can be attached to.
-+   #
-+   set testpid [eval exec $binfile &]
-+   exec sleep 2
-+
-+   # Verify that we can attach to the process, and find its a.out
-+   # when we're cd'd to some directory that doesn't contain the
-+   # a.out.  (We use the source path set by the "dir" command.)
-+   #
-+   send_gdb "dir ${objdir}/${subdir}\n"
-+   gdb_expect {
-+      -re ".*Source directories searched: .*$gdb_prompt $"\
-+                      {pass "set source path"}
-+      -re "$gdb_prompt $" {fail "set source path"}
-+      timeout         {fail "(timeout) set source path"}
-+   }
-+
-+   send_gdb "cd /tmp\n"
-+   gdb_expect {
-+      -re ".*Working directory /tmp.*$gdb_prompt $"\
-+                      {pass "cd away from process' a.out"}
-+      -re "$gdb_prompt $" {fail "cd away from process' a.out"}
-+      timeout         {fail "(timeout) cd away from process' a.out"}
-+   }
-+
-+   # Explicitly flush out any knowledge of the previous attachment.
-+   send_gdb "symbol\n"
-+   gdb_expect {
-+      -re ".*Discard symbol table from.*y or n. $"\
-+                      {send_gdb "y\n"
-+                       gdb_expect {
-+                          -re ".*No symbol file now.*$gdb_prompt $"\
-+                                          {pass "before attach3, flush symbols"}
-+                          -re "$gdb_prompt $" {fail "before attach3, flush symbols"}
-+                          timeout         {fail "(timeout) before attach3, flush symbols"}
-+                       }
-+                      }
-+      -re ".*No symbol file now.*$gdb_prompt $"\
-+                      {pass "before attach3, flush symbols"}
-+      -re "$gdb_prompt $" {fail "before attach3, flush symbols"}
-+      timeout         {fail "(timeout) before attach3, flush symbols"}
-+   }
-+   send_gdb "exec\n"
-+   gdb_expect {
-+      -re ".*No executable file now.*$gdb_prompt $"\
-+                      {pass "before attach3, flush exec"}
-+      -re "$gdb_prompt $" {fail "before attach3, flush exec"}
-+      timeout         {fail "(timeout) before attach3, flush exec"}
-+   }
-+
-+   send_gdb "attach $testpid\n"
-+   gdb_expect {
-+      -re "Attaching to process $testpid.*Reading symbols from $escapedbinfile.*main.*at .*$gdb_prompt $"\
-+                      {pass "attach when process' a.out not in cwd"}
-+      -re "$gdb_prompt $" {fail "attach when process' a.out not in cwd"}
-+      timeout         {fail "(timeout) attach when process' a.out not in cwd"}
-+   }
-+
-+   send_gdb "kill\n"
-+   gdb_expect {
-+      -re ".*Kill the program being debugged.*y or n. $"\
-+                      {send_gdb "y\n"
-+                       gdb_expect {
-+                          -re "$gdb_prompt $" {pass "after attach3, exit"}
-+                          timeout {fail "(timeout) after attach3, exit"}
-+                       }
-+                      }
-+      -re "$gdb_prompt $" {fail "after attach3, exit"}
-+      timeout         {fail "(timeout) after attach3, exit"}
-+   }
-+
-+   # Another "don't leave a process around"
-+   remote_exec build "kill -9 ${testpid}"
-+}
-+
-+proc do_call_attach_tests {} {
-+   global gdb_prompt
-+   global binfile2
-+
-+   # Start the program running and then wait for a bit, to be sure
-+   # that it can be attached to.
-+   #
-+   set testpid [eval exec $binfile2 &]
-+   exec sleep 2
-+
-+   # Attach
-+   #
-+   gdb_test "file $binfile2" ".*" "force switch to gdb64, if necessary"
-+   send_gdb "attach $testpid\n"
-+   gdb_expect {
-+      -re ".*warning: reading register.*I.*O error.*$gdb_prompt $" {
-+         fail "attach call, read register 3 error"
-+     }
-+     -re "Attaching to.*process $testpid.*$gdb_prompt $" {
-+         # libc is relocated, not relocated, therefore not printed.
-+         pass "attach call"
-+     }
-+      -re "$gdb_prompt $" {fail "attach call"}
-+      timeout         {fail "(timeout) attach call"}
-+   }
<Skipped 35501 lines>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdb.git/commitdiff/b90874d29f09f1a96235dd73f59dfd369e0d7fa1




More information about the pld-cvs-commit mailing list