rpms/gdb/devel .cvsignore, 1.49, 1.50 gdb-6.3-attach-see-vdso-test.patch, 1.1, 1.2 gdb-6.3-bt-past-zero-20051201.patch, 1.3, 1.4 gdb-6.3-bz140532-ppc-unwinding-test.patch, 1.2, 1.3 gdb-6.3-ia64-info-frame-fix-20050725.patch, 1.3, 1.4 gdb-6.3-ia64-sigill-20051115.patch, 1.4, 1.5 gdb-6.3-inferior-notification-20050721.patch, 1.4, 1.5 gdb-6.3-inheritancetest-20050726.patch, 1.2, 1.3 gdb-6.3-large-core-20051206.patch, 1.11, 1.12 gdb-6.3-readnever-20050907.patch, 1.12, 1.13 gdb-6.3-rh-testversion-20041202.patch, 1.4, 1.5 gdb-6.3-security-errata-20050610.patch, 1.9, 1.10 gdb-6.3-step-thread-exit-20050211-test.patch, 1.3, 1.4 gdb-6.3-test-dtorfix-20050121.patch, 1.9, 1.10 gdb-6.3-test-movedir-20050125.patch, 1.2, 1.3 gdb-6.3-test-pie-20050107.patch, 1.14, 1.15 gdb-6.3-threaded-watchpoints2-20050225.patch, 1.9, 1.10 gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch, 1.12, 1.13 gdb-6.5-bz216711-clone-is-outermost.patch, 1.7, 1.8 gdb-6.5-bz243845-stale-testing-zombie-test.patch, 1.1, 1.2 gdb-6.5-dwarf-stack-overflow.patch, 1.2, 1.3 gdb-6.5-gcore-buffer-limit-test.patch, 1.2, 1.3 gdb-6.5-ia64-libunwind-leak-test.patch, 1.1, 1.2 gdb-6.5-missed-trap-on-step-test.patch, 1.1, 1.2 gdb-6.6-buildid-locate-core-as-arg.patch, 1.3, 1.4 gdb-6.6-buildid-locate-rpm.patch, 1.8, 1.9 gdb-6.6-buildid-locate.patch, 1.29, 1.30 gdb-6.6-bz229517-gcore-without-terminal.patch, 1.1, 1.2 gdb-6.6-bz235197-fork-detach-info.patch, 1.3, 1.4 gdb-6.6-scheduler_locking-step-is-default.patch, 1.3, 1.4 gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch, 1.7, 1.8 gdb-6.6-threads-static-test.patch, 1.1, 1.2 gdb-6.7-bz426600-DW_TAG_interface_type-test.patch, 1.2, 1.3 gdb-6.7-charsign-test.patch, 1.1, 1.2 gdb-6.7-ppc-clobbered-registers-O2-test.patch, 1.1, 1.2 gdb-6.7-testsuite-stable-results.patch, 1.10, 1.11 gdb-6.8-bz254229-gcore-prpsinfo.patch, 1.7, 1.8 gdb-6.8-bz466901-backtrace-full-prelinked.patch, 1.6, 1.7 gdb-6.8-fortran-tag-constant.patch, 1.8, 1.9 gdb-archer-next-over-throw-cxx-exec.patch, 1.1, 1.2 gdb-archer-pie-addons-keep-disabled.patch, 1.2, 1.3 gdb-archer-pie-addons.patch, 1.5, 1.6 gdb-archer.patch, 1.41, 1.42 gdb-bz541866-rwatch-before-run.patch, 1.1, 1.2 gdb-bz575292-delayed-physname.patch, 1.1, 1.2 gdb-core-open-vdso-warning.patch, 1.1, 1.2 gdb-fortran-common-reduce.patch, 1.1, 1.2 gdb-fortran-common.patch, 1.2, 1.3 gdb-rhel5-gcc44.patch, 1.3, 1.4 gdb.spec, 1.411, 1.412 sources, 1.48, 1.49 gdb-6.5-gcore-i386-on-amd64.patch, 1.8, NONE gdb-6.5-tls-of-separate-debuginfo.patch, 1.1, NONE gdb-6.6-bz225783-prelink-path.patch, 1.3, NONE gdb-6.6-gcore32-test.patch, 1.3, NONE gdb-6.7-testsuite-stable-results-prelink.patch, 1.1, NONE gdb-6.8-constant-watchpoints.patch, 1.7, NONE gdb-archer-vla-ref-optimizedout.patch, 1.1, NONE gdb-archer-vla-test-oom.patch, 1.1, NONE gdb-bz562763-pretty-print-2d-vectors-prereq.patch, 1.1, NONE gdb-bz562975-std-terminate-double-free.patch, 1.1, NONE gdb-bz570635-prettyprint-doc1.patch, 1.1, NONE gdb-bz570635-prettyprint-doc2.patch, 1.1, NONE gdb-bz574483-display-sepdebug.patch, 1.1, NONE gdb-bz575292-void-workaround.patch, 1.1, NONE gdb-bz578250-avx-01of10.patch, 1.1, NONE gdb-bz578250-avx-02of10.patch, 1.1, NONE gdb-bz578250-avx-03of10.patch, 1.1, NONE gdb-bz578250-avx-04of10.patch, 1.1, NONE gdb-bz578250-avx-05of10.patch, 1.1, NONE gdb-bz578250-avx-06of10.patch, 1.1, NONE gdb-bz578250-avx-07of10.patch, 1.1, NONE gdb-bz578250-avx-08of10.patch, 1.1, NONE gdb-bz578250-avx-09of10.patch, 1.1, NONE gdb-bz578250-avx-10of10-ppc.patch, 1.1, NONE gdb-bz578250-avx-10of10.patch, 1.1, NONE gdb-bz589467-pieces-vla-compat.patch, 1.1, NONE gdb-bz589467-pieces01of4.patch, 1.1, NONE gdb-bz589467-pieces02of4.patch, 1.1, NONE gdb-bz589467-pieces03of4.patch, 1.1, NONE gdb-bz589467-pieces1of4.patch, 1.1, NONE gdb-bz589467-pieces2of4.patch, 1.1, NONE gdb-bz589467-pieces3of4.patch, 1.1, NONE gdb-bz589467-pieces4of4.patch, 1.1, NONE gdb-bz595475-tui-layout.patch, 1.1, NONE gdb-bz600746-koenig-crash.patch, 1.1, NONE gdb-bz601887-dwarf4-1of2.patch, 1.1, NONE gdb-bz601887-dwarf4-2of2.patch, 1.1, NONE gdb-bz602314-ptype-class-typedef-1of3.patch, 1.1, NONE gdb-bz602314-ptype-class-typedef-2of3.patch, 1.1, NONE gdb-bz602314-ptype-class-typedef-3of3.patch, 1.1, NONE gdb-bz606185-obstack-1of5.patch, 1.1, NONE gdb-bz606185-obstack-2of5.patch, 1.1, NONE gdb-bz606185-obstack-3of5.patch, 1.1, NONE gdb-bz606185-obstack-4of5.patch, 1.1, NONE gdb-bz606185-obstack-5of5.patch, 1.1, NONE gdb-bz606660-print-object-nonvirtual.patch, 1.1, NONE gdb-fortran-logical8.patch, 1.1, NONE gdb-infcall-sp-underflow.patch, 1.1, NONE gdb-pie-1of6-reprelinked-bin.patch, 1.1, NONE gdb-pie-2of6-reprelinked-ld.patch, 1.1, NONE gdb-pie-3of6-relocate-once.patch, 1.1, NONE gdb-pie-rerun.patch, 1.1, NONE gdb-solib-memory-error-nonfatal.patch, 1.1, NONE gdb-unwind-debughook-safe-fail.patch, 1.1, NONE gdb-unwind-debughook-step-independent.patch, 1.1, NONE gdb-upstream.patch, 1.3, NONE gdb-using-directive-leak.patch, 1.1, NONE

Jan Kratochvil jkratoch at fedoraproject.org
Wed Jul 21 21:30:22 UTC 2010


Author: jkratoch

Update of /cvs/pkgs/rpms/gdb/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv22190

Modified Files:
	.cvsignore gdb-6.3-attach-see-vdso-test.patch 
	gdb-6.3-bt-past-zero-20051201.patch 
	gdb-6.3-bz140532-ppc-unwinding-test.patch 
	gdb-6.3-ia64-info-frame-fix-20050725.patch 
	gdb-6.3-ia64-sigill-20051115.patch 
	gdb-6.3-inferior-notification-20050721.patch 
	gdb-6.3-inheritancetest-20050726.patch 
	gdb-6.3-large-core-20051206.patch 
	gdb-6.3-readnever-20050907.patch 
	gdb-6.3-rh-testversion-20041202.patch 
	gdb-6.3-security-errata-20050610.patch 
	gdb-6.3-step-thread-exit-20050211-test.patch 
	gdb-6.3-test-dtorfix-20050121.patch 
	gdb-6.3-test-movedir-20050125.patch 
	gdb-6.3-test-pie-20050107.patch 
	gdb-6.3-threaded-watchpoints2-20050225.patch 
	gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch 
	gdb-6.5-bz216711-clone-is-outermost.patch 
	gdb-6.5-bz243845-stale-testing-zombie-test.patch 
	gdb-6.5-dwarf-stack-overflow.patch 
	gdb-6.5-gcore-buffer-limit-test.patch 
	gdb-6.5-ia64-libunwind-leak-test.patch 
	gdb-6.5-missed-trap-on-step-test.patch 
	gdb-6.6-buildid-locate-core-as-arg.patch 
	gdb-6.6-buildid-locate-rpm.patch gdb-6.6-buildid-locate.patch 
	gdb-6.6-bz229517-gcore-without-terminal.patch 
	gdb-6.6-bz235197-fork-detach-info.patch 
	gdb-6.6-scheduler_locking-step-is-default.patch 
	gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch 
	gdb-6.6-threads-static-test.patch 
	gdb-6.7-bz426600-DW_TAG_interface_type-test.patch 
	gdb-6.7-charsign-test.patch 
	gdb-6.7-ppc-clobbered-registers-O2-test.patch 
	gdb-6.7-testsuite-stable-results.patch 
	gdb-6.8-bz254229-gcore-prpsinfo.patch 
	gdb-6.8-bz466901-backtrace-full-prelinked.patch 
	gdb-6.8-fortran-tag-constant.patch 
	gdb-archer-next-over-throw-cxx-exec.patch 
	gdb-archer-pie-addons-keep-disabled.patch 
	gdb-archer-pie-addons.patch gdb-archer.patch 
	gdb-bz541866-rwatch-before-run.patch 
	gdb-bz575292-delayed-physname.patch 
	gdb-core-open-vdso-warning.patch 
	gdb-fortran-common-reduce.patch gdb-fortran-common.patch 
	gdb-rhel5-gcc44.patch gdb.spec sources 
Removed Files:
	gdb-6.5-gcore-i386-on-amd64.patch 
	gdb-6.5-tls-of-separate-debuginfo.patch 
	gdb-6.6-bz225783-prelink-path.patch gdb-6.6-gcore32-test.patch 
	gdb-6.7-testsuite-stable-results-prelink.patch 
	gdb-6.8-constant-watchpoints.patch 
	gdb-archer-vla-ref-optimizedout.patch 
	gdb-archer-vla-test-oom.patch 
	gdb-bz562763-pretty-print-2d-vectors-prereq.patch 
	gdb-bz562975-std-terminate-double-free.patch 
	gdb-bz570635-prettyprint-doc1.patch 
	gdb-bz570635-prettyprint-doc2.patch 
	gdb-bz574483-display-sepdebug.patch 
	gdb-bz575292-void-workaround.patch 
	gdb-bz578250-avx-01of10.patch gdb-bz578250-avx-02of10.patch 
	gdb-bz578250-avx-03of10.patch gdb-bz578250-avx-04of10.patch 
	gdb-bz578250-avx-05of10.patch gdb-bz578250-avx-06of10.patch 
	gdb-bz578250-avx-07of10.patch gdb-bz578250-avx-08of10.patch 
	gdb-bz578250-avx-09of10.patch 
	gdb-bz578250-avx-10of10-ppc.patch 
	gdb-bz578250-avx-10of10.patch 
	gdb-bz589467-pieces-vla-compat.patch 
	gdb-bz589467-pieces01of4.patch gdb-bz589467-pieces02of4.patch 
	gdb-bz589467-pieces03of4.patch gdb-bz589467-pieces1of4.patch 
	gdb-bz589467-pieces2of4.patch gdb-bz589467-pieces3of4.patch 
	gdb-bz589467-pieces4of4.patch gdb-bz595475-tui-layout.patch 
	gdb-bz600746-koenig-crash.patch gdb-bz601887-dwarf4-1of2.patch 
	gdb-bz601887-dwarf4-2of2.patch 
	gdb-bz602314-ptype-class-typedef-1of3.patch 
	gdb-bz602314-ptype-class-typedef-2of3.patch 
	gdb-bz602314-ptype-class-typedef-3of3.patch 
	gdb-bz606185-obstack-1of5.patch 
	gdb-bz606185-obstack-2of5.patch 
	gdb-bz606185-obstack-3of5.patch 
	gdb-bz606185-obstack-4of5.patch 
	gdb-bz606185-obstack-5of5.patch 
	gdb-bz606660-print-object-nonvirtual.patch 
	gdb-fortran-logical8.patch gdb-infcall-sp-underflow.patch 
	gdb-pie-1of6-reprelinked-bin.patch 
	gdb-pie-2of6-reprelinked-ld.patch 
	gdb-pie-3of6-relocate-once.patch gdb-pie-rerun.patch 
	gdb-solib-memory-error-nonfatal.patch 
	gdb-unwind-debughook-safe-fail.patch 
	gdb-unwind-debughook-step-independent.patch gdb-upstream.patch 
	gdb-using-directive-leak.patch 
Log Message:
* Wed Jul 21 2010 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.1.90.20100721-1.fc14
- Rebase to FSF GDB 7.1.90.20100721 (which is 7.2 pre-release).



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/.cvsignore,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -p -r1.49 -r1.50
--- .cvsignore	11 Jul 2010 18:06:29 -0000	1.49
+++ .cvsignore	21 Jul 2010 21:30:13 -0000	1.50
@@ -1,2 +1 @@
-gdb-7.1.tar.bz2
-libstdc++-v3-python-r155978.tar.bz2
+gdb-7.1.90.20100721.tar.bz2

gdb-6.3-attach-see-vdso-test.patch:
 attach-see-vdso.c   |   25 ++++++++++++++++++
 attach-see-vdso.exp |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

Index: gdb-6.3-attach-see-vdso-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-attach-see-vdso-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.3-attach-see-vdso-test.patch	8 Jul 2007 10:45:30 -0000	1.1
+++ gdb-6.3-attach-see-vdso-test.patch	21 Jul 2010 21:30:13 -0000	1.2
@@ -28,7 +28,7 @@
 +}
 --- /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,79 @@
+@@ -0,0 +1,72 @@
 +# Copyright 2007
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -47,13 +47,6 @@
 +
 +# This file was created by Jan Kratochvil <jan.kratochvil at redhat.com>.
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# This test only works on Linux
 +if { ![istarget "*-*-linux-gnu*"] } {
 +    return 0

gdb-6.3-bt-past-zero-20051201.patch:
 frame.c                        |   25 ++++++++++++++++++++++---
 testsuite/gdb.base/setshow.exp |   10 ++++++++++
 2 files changed, 32 insertions(+), 3 deletions(-)

Index: gdb-6.3-bt-past-zero-20051201.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-bt-past-zero-20051201.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.3-bt-past-zero-20051201.patch	1 Nov 2007 20:24:20 -0000	1.3
+++ gdb-6.3-bt-past-zero-20051201.patch	21 Jul 2010 21:30:13 -0000	1.4
@@ -15,11 +15,11 @@ testsuite/gdb.base:
 
 	Port to GDB-6.7.
 
-Index: gdb-6.7/gdb/testsuite/gdb.base/setshow.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp
 ===================================================================
---- gdb-6.7.orig/gdb/testsuite/gdb.base/setshow.exp	2007-08-23 20:14:17.000000000 +0200
-+++ gdb-6.7/gdb/testsuite/gdb.base/setshow.exp	2007-10-15 21:34:52.000000000 +0200
-@@ -106,6 +106,16 @@ if { ![target_info exists use_gdb_stub] 
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/setshow.exp	2010-06-11 22:56:06.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp	2010-07-12 10:46:06.000000000 +0200
+@@ -96,6 +96,16 @@ if { ![target_info exists use_gdb_stub] 
      delete_breakpoints
      gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args"
  }
@@ -34,13 +34,13 @@ Index: gdb-6.7/gdb/testsuite/gdb.base/se
 +#test show backtrace past-zero-pc
 +gdb_test "show backtrace past-zero-pc" "Whether backtraces should continue past a zero pc value is off." "show backtrace past-zero-pc (off)"
  #test set check range on
- gdb_test "set check range on" "" "set check range on" 
+ gdb_test "set check range on" ".*" "set check range on" 
  #test show check range on
-Index: gdb-6.7/gdb/frame.c
+Index: gdb-7.1.90.20100711/gdb/frame.c
 ===================================================================
---- gdb-6.7.orig/gdb/frame.c	2007-10-12 22:35:58.000000000 +0200
-+++ gdb-6.7/gdb/frame.c	2007-10-15 21:34:52.000000000 +0200
-@@ -133,6 +133,16 @@ Whether backtraces should continue past 
+--- gdb-7.1.90.20100711.orig/gdb/frame.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/frame.c	2010-07-12 10:45:18.000000000 +0200
+@@ -185,6 +185,16 @@ Whether backtraces should continue past 
  		    value);
  }
  
@@ -57,7 +57,7 @@ Index: gdb-6.7/gdb/frame.c
  static int backtrace_past_entry;
  static void
  show_backtrace_past_entry (struct ui_file *file, int from_tty,
-@@ -1483,9 +1493,7 @@ get_prev_frame (struct frame_info *this_
+@@ -1784,9 +1794,7 @@ get_prev_frame (struct frame_info *this_
      }
  
    if (this_frame->level > 0
@@ -68,7 +68,7 @@ Index: gdb-6.7/gdb/frame.c
        && get_frame_type (this_frame) == NORMAL_FRAME
        && get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME
        && get_frame_pc (this_frame) == 0)
-@@ -1850,6 +1858,17 @@ the rest of the stack trace."),
+@@ -2271,6 +2279,17 @@ the rest of the stack trace."),
  			   &set_backtrace_cmdlist,
  			   &show_backtrace_cmdlist);
  

gdb-6.3-bz140532-ppc-unwinding-test.patch:
 ./gdb/testsuite/gdb.arch/powerpc-prologue.exp               |    5 
 gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm32.S |   78 +++++++++
 gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue-asm64.S |   98 ++++++++++++
 gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.c       |   29 +++
 gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp     |   72 ++++++++
 5 files changed, 280 insertions(+), 2 deletions(-)

Index: gdb-6.3-bz140532-ppc-unwinding-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-bz140532-ppc-unwinding-test.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.3-bz140532-ppc-unwinding-test.patch	24 Jan 2008 16:45:56 -0000	1.2
+++ gdb-6.3-bz140532-ppc-unwinding-test.patch	21 Jul 2010 21:30:13 -0000	1.3
@@ -218,7 +218,7 @@ diff -u -ruNp gdb-6.3-unpatched/gdb/test
 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,79 @@
+@@ -0,0 +1,72 @@
 +#   Copyright 2006, 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -238,13 +238,6 @@ diff -u -ruNp gdb-6.3-unpatched/gdb/test
 +# Test unwinding fixes of the PPC platform, specifically on the coping with BCL
 +# jump of the PIE code.
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +if ![istarget "powerpc*-*-linux*"] then {
 +    verbose "Skipping powerpc-linux prologue tests."
 +    return

gdb-6.3-ia64-info-frame-fix-20050725.patch:
 ia64-sigtramp.c   |   23 +++++++++++++++++++
 ia64-sigtramp.exp |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Index: gdb-6.3-ia64-info-frame-fix-20050725.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-ia64-info-frame-fix-20050725.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.3-ia64-info-frame-fix-20050725.patch	12 Jan 2010 22:15:54 -0000	1.3
+++ gdb-6.3-ia64-info-frame-fix-20050725.patch	21 Jul 2010 21:30:13 -0000	1.4
@@ -41,7 +41,7 @@ testsuite:
 +
 --- 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,73 @@
+@@ -0,0 +1,63 @@
 +#   Copyright 2005 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -63,16 +63,6 @@ testsuite:
 +
 +# This file was written by Jeff Johnston (jjohnstn at redhat.com)
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+#
-+# test running programs
-+#
-+set prms_id 0
-+set bug_id 0
-+
 +if ![istarget "ia64-*-*"] then {
 +    return
 +}

gdb-6.3-ia64-sigill-20051115.patch:
 linux-nat.c                        |    7 +++--
 testsuite/gdb.arch/ia64-sigill.c   |    8 ++++++
 testsuite/gdb.arch/ia64-sigill.exp |   49 +++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 2 deletions(-)

Index: gdb-6.3-ia64-sigill-20051115.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-ia64-sigill-20051115.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- gdb-6.3-ia64-sigill-20051115.patch	14 Dec 2008 14:05:14 -0000	1.4
+++ gdb-6.3-ia64-sigill-20051115.patch	21 Jul 2010 21:30:13 -0000	1.5
@@ -16,7 +16,7 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-6.8.50.20081128/gdb/testsuite/gdb.arch/ia64-sigill.exp	2008-12-02 21:10:57.000000000 +0100
-@@ -0,0 +1,59 @@
+@@ -0,0 +1,49 @@
 +#   Copyright 2005 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -38,16 +38,6 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 +
 +# This file was written by Jeff Johnston (jjohnstn at redhat.com)
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+#
-+# test running programs
-+#
-+set prms_id 0
-+set bug_id 0
-+
 +if ![istarget "ia64-*-*"] then {
 +    return
 +}

gdb-6.3-inferior-notification-20050721.patch:
 attach-32.c   |   20 ++++
 attach-32.exp |  245 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 attach-32b.c  |   24 +++++
 3 files changed, 289 insertions(+)

Index: gdb-6.3-inferior-notification-20050721.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-inferior-notification-20050721.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- gdb-6.3-inferior-notification-20050721.patch	14 Dec 2008 14:05:14 -0000	1.4
+++ gdb-6.3-inferior-notification-20050721.patch	21 Jul 2010 21:30:13 -0000	1.5
@@ -38,7 +38,7 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-6.8.50.20081128/gdb/testsuite/gdb.base/attach-32.exp	2008-12-07 10:08:52.000000000 +0100
-@@ -0,0 +1,252 @@
+@@ -0,0 +1,245 @@
 +# Copyright 2005 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -57,13 +57,6 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 +#
 +# This test was based on attach.exp and modified for 32/64 bit Linux systems. */
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# 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

gdb-6.3-inheritancetest-20050726.patch:
 b146835.cc  |   32 ++++++++++++++++++++++++++++++++
 b146835.exp |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 b146835.h   |   36 ++++++++++++++++++++++++++++++++++++
 b146835b.cc |   11 +++++++++++
 4 files changed, 126 insertions(+)

Index: gdb-6.3-inheritancetest-20050726.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-inheritancetest-20050726.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.3-inheritancetest-20050726.patch	12 Aug 2009 14:36:09 -0000	1.2
+++ gdb-6.3-inheritancetest-20050726.patch	21 Jul 2010 21:30:13 -0000	1.3
@@ -62,7 +62,7 @@ Index: gdb-6.8.50.20090811/gdb/testsuite
 ===================================================================
 --- /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,54 @@
+@@ -0,0 +1,47 @@
 +# This testcase is part of GDB, the GNU debugger.
 +
 +# Copyright 2005 Free Software Foundation, Inc.
@@ -84,13 +84,6 @@ Index: gdb-6.8.50.20090811/gdb/testsuite
 +# Check that GDB can properly print an inherited member variable
 +# (Bugzilla 146835)
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile "b146835"
 +set srcfile ${testfile}.cc
 +set srcfile2 ${testfile}b.cc

gdb-6.3-large-core-20051206.patch:
 dcache.c      |    4 ++--
 dcache.h      |    4 ++--
 exec.c        |    2 +-
 exec.h        |    2 +-
 linux-nat.c   |    2 +-
 remote-sim.c  |    7 +++++--
 remote.c      |   14 +++++++++++---
 symfile-mem.c |   10 +++++++++-
 target.c      |   20 ++++++++++----------
 target.h      |   14 +++++++-------
 10 files changed, 49 insertions(+), 30 deletions(-)

Index: gdb-6.3-large-core-20051206.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-large-core-20051206.patch,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- gdb-6.3-large-core-20051206.patch	16 Jan 2010 22:32:05 -0000	1.11
+++ gdb-6.3-large-core-20051206.patch	21 Jul 2010 21:30:13 -0000	1.12
@@ -25,10 +25,10 @@
 
 	Port to GDB-6.7.
 
-Index: gdb-7.0.50.20100115/gdb/symfile-mem.c
+Index: gdb-7.1.90.20100711/gdb/symfile-mem.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/symfile-mem.c	2010-01-01 08:31:42.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/symfile-mem.c	2010-01-15 03:22:23.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/symfile-mem.c	2010-01-01 08:31:42.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/symfile-mem.c	2010-07-12 10:46:24.000000000 +0200
 @@ -57,6 +57,14 @@
  #include "elf/common.h"
  
@@ -53,20 +53,20 @@ Index: gdb-7.0.50.20100115/gdb/symfile-m
    if (nbfd == NULL)
      error (_("Failed to read a valid object file image from memory."));
  
-Index: gdb-7.0.50.20100115/gdb/target.c
+Index: gdb-7.1.90.20100711/gdb/target.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/target.c	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/target.c	2010-01-15 03:22:23.000000000 +0100
-@@ -59,7 +59,7 @@ static int nosymbol (char *, CORE_ADDR *
+--- gdb-7.1.90.20100711.orig/gdb/target.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/target.c	2010-07-12 10:47:04.000000000 +0200
+@@ -58,7 +58,7 @@ static int nosymbol (char *, CORE_ADDR *
  
- static void tcomplain (void) ATTR_NORETURN;
+ static void tcomplain (void) ATTRIBUTE_NORETURN;
  
 -static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
 +static LONGEST nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
  
  static int return_zero (void);
  
-@@ -494,7 +494,7 @@ target_terminal_inferior (void)
+@@ -513,7 +513,7 @@ target_terminal_inferior (void)
    (*current_target.to_terminal_inferior) ();
  }
  
@@ -75,7 +75,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  nomemory (CORE_ADDR memaddr, char *myaddr, int len, int write,
  	  struct target_ops *t)
  {
-@@ -726,7 +726,7 @@ update_current_target (void)
+@@ -718,7 +718,7 @@ update_current_target (void)
  	    (void (*) (struct regcache *))
  	    noprocess);
    de_fault (deprecated_xfer_memory,
@@ -84,7 +84,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  	    nomemory);
    de_fault (to_files_info,
  	    (void (*) (struct target_ops *))
-@@ -1497,7 +1497,7 @@ target_xfer_partial (struct target_ops *
+@@ -1526,7 +1526,7 @@ target_xfer_partial (struct target_ops *
     it makes no progress, and then return how much was transferred). */
  
  int
@@ -93,7 +93,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  {
    /* Dispatch to the topmost target, not the flattened current_target.
       Memory accesses check target->to_has_(all_)memory, and the
-@@ -1513,7 +1513,7 @@ target_read_memory (CORE_ADDR memaddr, g
+@@ -1542,7 +1542,7 @@ target_read_memory (CORE_ADDR memaddr, g
     the target's stack.  This may trigger different cache behavior.  */
  
  int
@@ -102,7 +102,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  {
    /* Dispatch to the topmost target, not the flattened current_target.
       Memory accesses check target->to_has_(all_)memory, and the
-@@ -1532,7 +1532,7 @@ target_read_stack (CORE_ADDR memaddr, gd
+@@ -1561,7 +1561,7 @@ target_read_stack (CORE_ADDR memaddr, gd
     Callers that can deal with partial writes should call target_write.  */
  
  int
@@ -111,7 +111,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  {
    /* Dispatch to the topmost target, not the flattened current_target.
       Memory accesses check target->to_has_(all_)memory, and the
-@@ -3098,8 +3098,8 @@ debug_to_prepare_to_store (struct regcac
+@@ -3218,8 +3218,8 @@ debug_to_prepare_to_store (struct regcac
    fprintf_unfiltered (gdb_stdlog, "target_prepare_to_store ()\n");
  }
  
@@ -122,7 +122,7 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  			      int write, struct mem_attrib *attrib,
  			      struct target_ops *target)
  {
-@@ -3109,8 +3109,8 @@ deprecated_debug_xfer_memory (CORE_ADDR 
+@@ -3229,8 +3229,8 @@ deprecated_debug_xfer_memory (CORE_ADDR 
  						attrib, target);
  
    fprintf_unfiltered (gdb_stdlog,
@@ -133,11 +133,11 @@ Index: gdb-7.0.50.20100115/gdb/target.c
  		      write ? "write" : "read", retval);
  
    if (retval > 0)
-Index: gdb-7.0.50.20100115/gdb/target.h
+Index: gdb-7.1.90.20100711/gdb/target.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/target.h	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/target.h	2010-01-15 03:22:23.000000000 +0100
-@@ -406,10 +406,10 @@ struct target_ops
+--- gdb-7.1.90.20100711.orig/gdb/target.h	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/target.h	2010-07-12 10:46:24.000000000 +0200
+@@ -417,10 +417,10 @@ struct target_ops
         NOTE: cagney/2004-10-01: This has been entirely superseeded by
         to_xfer_partial and inferior inheritance.  */
  
@@ -152,7 +152,7 @@ Index: gdb-7.0.50.20100115/gdb/target.h
  
      void (*to_files_info) (struct target_ops *);
      int (*to_insert_breakpoint) (struct gdbarch *, struct bp_target_info *);
-@@ -786,12 +786,12 @@ extern void target_dcache_invalidate (vo
+@@ -838,12 +838,12 @@ extern void target_dcache_invalidate (vo
  
  extern int target_read_string (CORE_ADDR, char **, int, int *);
  
@@ -168,11 +168,11 @@ Index: gdb-7.0.50.20100115/gdb/target.h
  
  /* Fetches the target's memory map.  If one is found it is sorted
     and returned, after some consistency checking.  Otherwise, NULL
-Index: gdb-7.0.50.20100115/gdb/dcache.c
+Index: gdb-7.1.90.20100711/gdb/dcache.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/dcache.c	2010-01-01 08:31:30.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/dcache.c	2010-01-15 03:22:23.000000000 +0100
-@@ -468,10 +468,10 @@ dcache_free (DCACHE *dcache)
+--- gdb-7.1.90.20100711.orig/gdb/dcache.c	2010-05-14 19:53:15.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dcache.c	2010-07-12 10:46:24.000000000 +0200
+@@ -465,10 +465,10 @@ dcache_free (DCACHE *dcache)
     NOTE: This is different than the to_xfer_partial interface, in which
     positive values less than LEN mean further transfers may be possible.  */
  
@@ -185,10 +185,10 @@ Index: gdb-7.0.50.20100115/gdb/dcache.c
  {
    int i;
    int res;
-Index: gdb-7.0.50.20100115/gdb/dcache.h
+Index: gdb-7.1.90.20100711/gdb/dcache.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/dcache.h	2010-01-01 08:31:30.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/dcache.h	2010-01-15 03:22:23.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/dcache.h	2010-01-01 08:31:30.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/dcache.h	2010-07-12 10:46:24.000000000 +0200
 @@ -35,8 +35,8 @@ void dcache_free (DCACHE *);
  
  /* Simple to call from <remote>_xfer_memory */
@@ -200,11 +200,11 @@ Index: gdb-7.0.50.20100115/gdb/dcache.h
  
  void dcache_update (DCACHE *dcache, CORE_ADDR memaddr, gdb_byte *myaddr,
  		    int len);
-Index: gdb-7.0.50.20100115/gdb/exec.c
+Index: gdb-7.1.90.20100711/gdb/exec.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/exec.c	2010-01-14 22:01:24.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/exec.c	2010-01-15 03:22:23.000000000 +0100
-@@ -578,7 +578,7 @@ map_vmap (bfd *abfd, bfd *arch)
+--- gdb-7.1.90.20100711.orig/gdb/exec.c	2010-05-14 20:35:11.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/exec.c	2010-07-12 10:46:24.000000000 +0200
+@@ -571,7 +571,7 @@ map_vmap (bfd *abfd, bfd *arch)
  }
  
  
@@ -213,11 +213,11 @@ Index: gdb-7.0.50.20100115/gdb/exec.c
  section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf,
  				   ULONGEST offset, LONGEST len,
  				   struct target_section *sections,
-Index: gdb-7.0.50.20100115/gdb/linux-nat.c
+Index: gdb-7.1.90.20100711/gdb/linux-nat.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/linux-nat.c	2010-01-15 03:22:14.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/linux-nat.c	2010-01-15 03:22:23.000000000 +0100
-@@ -5117,7 +5117,7 @@ linux_xfer_partial (struct target_ops *o
+--- gdb-7.1.90.20100711.orig/gdb/linux-nat.c	2010-07-12 10:44:36.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/linux-nat.c	2010-07-12 10:46:24.000000000 +0200
+@@ -5197,7 +5197,7 @@ linux_xfer_partial (struct target_ops *o
  #endif
        if (iterate_over_lwps (ia64_linux_check_stack_region, &range) != NULL)
  	{ /* This region contains ia64 rse registers, we have to re-read.  */
@@ -226,10 +226,10 @@ Index: gdb-7.0.50.20100115/gdb/linux-nat
  
  	  /* Re-read register stack area.  */
  	  xxfer = super_xfer_partial (ops, object, annex,
-Index: gdb-7.0.50.20100115/gdb/remote.c
+Index: gdb-7.1.90.20100711/gdb/remote.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/remote.c	2010-01-12 22:40:24.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/remote.c	2010-01-15 03:22:23.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/remote.c	2010-07-07 18:15:16.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/remote.c	2010-07-12 10:46:24.000000000 +0200
 @@ -25,6 +25,7 @@
  #include "gdb_string.h"
  #include <ctype.h>
@@ -238,7 +238,7 @@ Index: gdb-7.0.50.20100115/gdb/remote.c
  #include "inferior.h"
  #include "bfd.h"
  #include "symfile.h"
-@@ -6175,12 +6176,19 @@ handle_notification (char *buf, size_t l
+@@ -6515,12 +6516,19 @@ handle_notification (char *buf, size_t l
     if SHOULD_WRITE is nonzero.  Returns length of data written or
     read; 0 for error.  TARGET is unused.  */
  
@@ -260,7 +260,7 @@ Index: gdb-7.0.50.20100115/gdb/remote.c
  
    set_general_thread (inferior_ptid);
  
-@@ -6189,7 +6197,7 @@ remote_xfer_memory (CORE_ADDR mem_addr, 
+@@ -6529,7 +6537,7 @@ remote_xfer_memory (CORE_ADDR mem_addr, 
    else
      res = remote_read_bytes (mem_addr, buffer, mem_len);
  
@@ -269,11 +269,11 @@ Index: gdb-7.0.50.20100115/gdb/remote.c
  }
  
  /* Sends a packet with content determined by the printf format string
-Index: gdb-7.0.50.20100115/gdb/remote-sim.c
+Index: gdb-7.1.90.20100711/gdb/remote-sim.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/remote-sim.c	2010-01-01 08:31:40.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/remote-sim.c	2010-01-15 03:22:23.000000000 +0100
-@@ -752,11 +752,14 @@ gdbsim_prepare_to_store (struct regcache
+--- gdb-7.1.90.20100711.orig/gdb/remote-sim.c	2010-05-16 23:11:14.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/remote-sim.c	2010-07-12 10:46:24.000000000 +0200
+@@ -759,11 +759,14 @@ gdbsim_prepare_to_store (struct regcache
  
     Returns the number of bytes transferred. */
  
@@ -290,10 +290,10 @@ Index: gdb-7.0.50.20100115/gdb/remote-si
    /* If no program is running yet, then ignore the simulator for
       memory.  Pass the request down to the next target, hopefully
       an exec file.  */
-Index: gdb-7.0.50.20100115/gdb/exec.h
+Index: gdb-7.1.90.20100711/gdb/exec.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/exec.h	2010-01-01 08:31:31.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/exec.h	2010-01-15 03:22:23.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/exec.h	2010-01-01 08:31:31.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/exec.h	2010-07-12 10:46:24.000000000 +0200
 @@ -60,7 +60,7 @@ extern int resize_section_table (struct 
  
     One, and only one, of readbuf or writebuf must be non-NULL.  */

gdb-6.3-readnever-20050907.patch:
 doc/gdb.texinfo |    6 ++++++
 dwarf2read.c    |    6 ++++--
 main.c          |    2 ++
 symfile.c       |    1 +
 top.h           |    1 +
 5 files changed, 14 insertions(+), 2 deletions(-)

Index: gdb-6.3-readnever-20050907.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-readnever-20050907.patch,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- gdb-6.3-readnever-20050907.patch	11 Jul 2010 18:06:30 -0000	1.12
+++ gdb-6.3-readnever-20050907.patch	21 Jul 2010 21:30:13 -0000	1.13
@@ -11,11 +11,11 @@
 
         * gdb.texinfo (File Options): Document --readnever.
 
-Index: gdb-7.0.90.20100306/gdb/doc/gdb.texinfo
+Index: gdb-7.1.90.20100711/gdb/doc/gdb.texinfo
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/doc/gdb.texinfo	2010-03-06 23:19:13.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/doc/gdb.texinfo	2010-03-06 23:20:35.000000000 +0100
-@@ -995,6 +995,12 @@ Read each symbol file's entire symbol ta
+--- gdb-7.1.90.20100711.orig/gdb/doc/gdb.texinfo	2010-07-01 19:40:04.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/doc/gdb.texinfo	2010-07-12 10:41:11.000000000 +0200
+@@ -998,6 +998,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.
  
@@ -28,11 +28,11 @@ Index: gdb-7.0.90.20100306/gdb/doc/gdb.t
  @end table
  
  @node Mode Options
-Index: gdb-7.0.90.20100306/gdb/main.c
+Index: gdb-7.1.90.20100711/gdb/main.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/main.c	2010-03-06 23:20:23.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/main.c	2010-03-06 23:20:35.000000000 +0100
-@@ -382,6 +382,7 @@ captured_main (void *data)
+--- gdb-7.1.90.20100711.orig/gdb/main.c	2010-07-12 10:17:26.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/main.c	2010-07-12 10:41:34.000000000 +0200
+@@ -388,6 +388,7 @@ captured_main (void *data)
        {"xdb", no_argument, &xdb_commands, 1},
        {"dbx", no_argument, &dbx_commands, 1},
        {"readnow", no_argument, &readnow_symbol_files, 1},
@@ -40,19 +40,19 @@ Index: gdb-7.0.90.20100306/gdb/main.c
        {"r", no_argument, &readnow_symbol_files, 1},
        {"quiet", no_argument, &quiet, 1},
        {"q", no_argument, &quiet, 1},
-@@ -1033,6 +1034,7 @@ Options:\n\n\
-   fputs_unfiltered (_("\
+@@ -980,6 +981,7 @@ Options:\n\n\
+   fputs_unfiltered (_(" file.\n\
    --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.0.90.20100306/gdb/symfile.c
+Index: gdb-7.1.90.20100711/gdb/symfile.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/symfile.c	2010-03-06 23:19:13.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/symfile.c	2010-03-06 23:20:35.000000000 +0100
-@@ -79,6 +79,7 @@ static void clear_symtab_users_cleanup (
+--- gdb-7.1.90.20100711.orig/gdb/symfile.c	2010-06-03 01:01:00.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/symfile.c	2010-07-12 10:41:11.000000000 +0200
+@@ -80,6 +80,7 @@ static void clear_symtab_users_cleanup (
  
  /* Global variables owned by this file */
  int readnow_symbol_files;	/* Read full symbols immediately */
@@ -60,33 +60,35 @@ Index: gdb-7.0.90.20100306/gdb/symfile.c
  
  /* External variables and functions referenced. */
  
-Index: gdb-7.0.90.20100306/gdb/dwarf2read.c
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/dwarf2read.c	2010-03-06 23:19:13.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/dwarf2read.c	2010-03-06 23:20:54.000000000 +0100
-@@ -52,6 +52,7 @@
- #include "f-lang.h"
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-12 10:43:53.000000000 +0200
+@@ -51,6 +51,7 @@
  #include "typeprint.h"
  #include "jv-lang.h"
+ #include "psympriv.h"
 +#include "top.h"
  
  #include <fcntl.h>
  #include "gdb_string.h"
-@@ -1222,7 +1223,8 @@ dwarf2_has_info (struct objfile *objfile
- 
+@@ -1161,8 +1162,9 @@ dwarf2_has_info (struct objfile *objfile
        bfd_map_over_sections (objfile->obfd, dwarf2_locate_sections, NULL);
+       dwarf2_per_objfile->objfile = objfile;
      }
 -  return (dwarf2_per_objfile->info.asection != NULL
-+  return !readnever_symbol_files
-+      && (dwarf2_per_objfile->info.asection != NULL
- 	  && dwarf2_per_objfile->abbrev.asection != NULL);
+-	  && dwarf2_per_objfile->abbrev.asection != NULL);
++  return (! readnever_symbol_files
++	  && (dwarf2_per_objfile->info.asection != NULL
++	      && dwarf2_per_objfile->abbrev.asection != NULL));
  }
  
-Index: gdb-7.0.90.20100306/gdb/top.h
+ /* When loading sections, we can either look for ".<name>", or for
+Index: gdb-7.1.90.20100711/gdb/top.h
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/top.h	2010-01-01 08:31:42.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/top.h	2010-03-06 23:20:35.000000000 +0100
-@@ -63,6 +63,7 @@ extern void set_prompt (char *);
+--- gdb-7.1.90.20100711.orig/gdb/top.h	2010-04-07 18:54:39.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/top.h	2010-07-12 10:41:11.000000000 +0200
+@@ -61,6 +61,7 @@ extern void set_prompt (char *);
  
  /* From random places.  */
  extern int readnow_symbol_files;

gdb-6.3-rh-testversion-20041202.patch:
 selftest.exp |    3 +++
 1 file changed, 3 insertions(+)

Index: gdb-6.3-rh-testversion-20041202.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-rh-testversion-20041202.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- gdb-6.3-rh-testversion-20041202.patch	12 Jan 2010 22:15:54 -0000	1.4
+++ gdb-6.3-rh-testversion-20041202.patch	21 Jul 2010 21:30:13 -0000	1.5
@@ -3,17 +3,17 @@
         * gdb.gdb/selftest.exp: Add matching on specific Red Hat only version
         string.
 
-Index: gdb-6.8/gdb/testsuite/gdb.gdb/selftest.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.gdb/selftest.exp
 ===================================================================
---- gdb-6.8.orig/gdb/testsuite/gdb.gdb/selftest.exp	2008-01-26 14:56:37.000000000 +0100
-+++ gdb-6.8/gdb/testsuite/gdb.gdb/selftest.exp	2008-07-14 10:23:50.000000000 +0200
-@@ -354,6 +354,9 @@ proc test_with_self { executable } {
+--- 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"
 +	}
- 	-re ".*$gdb_prompt $"	{ fail "printed version" }
- 	timeout		{ fail "(timeout) printed version" }
      }
+ 
+     do_steps_and_nexts

gdb-6.3-security-errata-20050610.patch:
 cli/cli-cmds.c                    |   34 ++++++++++++--
 cli/cli-cmds.h                    |    3 -
 main.c                            |    4 -
 python/py-auto-load.c             |    2 
 testsuite/gdb.base/gdbinit.exp    |   91 ++++++++++++++++++++++++++++++++++++++
 testsuite/gdb.base/gdbinit.sample |    1 
 6 files changed, 128 insertions(+), 7 deletions(-)

Index: gdb-6.3-security-errata-20050610.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-security-errata-20050610.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- gdb-6.3-security-errata-20050610.patch	21 Jan 2010 16:09:09 -0000	1.9
+++ gdb-6.3-security-errata-20050610.patch	21 Jul 2010 21:30:13 -0000	1.10
@@ -19,21 +19,30 @@ Proposed upstream but never committed up
         (source_command): Update documentation.  Check permissions if
         FROM_TTY is -1.
 
-Index: gdb-7.0.50.20100121/gdb/cli/cli-cmds.c
+Index: gdb-7.1.90.20100720/gdb/cli/cli-cmds.c
 ===================================================================
---- gdb-7.0.50.20100121.orig/gdb/cli/cli-cmds.c	2010-01-18 07:25:22.000000000 +0100
-+++ gdb-7.0.50.20100121/gdb/cli/cli-cmds.c	2010-01-21 15:12:28.000000000 +0100
-@@ -38,6 +38,7 @@
- #include "objfiles.h"
+--- gdb-7.1.90.20100720.orig/gdb/cli/cli-cmds.c	2010-05-17 21:28:12.000000000 +0200
++++ gdb-7.1.90.20100720/gdb/cli/cli-cmds.c	2010-07-21 20:30:30.000000000 +0200
+@@ -39,6 +39,7 @@
  #include "source.h"
  #include "disasm.h"
+ #include "tracepoint.h"
 +#include "gdb_stat.h"
- extern void disconnect_or_stop_tracing (int from_tty);
  
  #include "ui-out.h"
-@@ -488,6 +489,29 @@ find_and_open_script (int from_tty, char
- 	      file, O_RDONLY, &full_pathname);
-   make_cleanup (xfree, full_pathname);
+ 
+@@ -487,7 +488,7 @@ Script filename extension recognition is
+ 
+ int
+ find_and_open_script (const char *script_file, int search_path,
+-		      FILE **streamp, char **full_pathp)
++		      FILE **streamp, char **full_pathp, int from_tty)
+ {
+   char *file;
+   int fd;
+@@ -513,6 +514,32 @@ find_and_open_script (const char *script
+       return 0;
+     }
  
 +#ifdef HAVE_GETUID
 +  if (from_tty == -1)
@@ -42,10 +51,12 @@ Index: gdb-7.0.50.20100121/gdb/cli/cli-c
 +
 +      if (fstat (fd, &statbuf) < 0)
 +	{
++	  int save_errno = errno;
++
 +	  close (fd);
-+	  /* Do not do_cleanups (old_cleanups) as FILE is allocated there.
-+	     perror_with_name calls error which should call the cleanups.  */
-+	  perror_with_name (file);
++	  do_cleanups (old_cleanups);
++	  errno = save_errno;
++	  return 0;
 +	}
 +      if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH))
 +	{
@@ -53,36 +64,37 @@ Index: gdb-7.0.50.20100121/gdb/cli/cli-c
 +	  warning (_("not using untrusted file \"%s\""), file);
 +	  close (fd);
 +	  do_cleanups (old_cleanups);
++	  errno = EPERM;
 +	  return 0;
 +	}
 +    }
 +#endif
 +
-   /* Use the full path name, if it is found.  */
-   if (full_pathname != NULL && fd != -1)
-     {
-@@ -496,7 +520,7 @@ find_and_open_script (int from_tty, char
+   do_cleanups (old_cleanups);
  
-   if (fd == -1)
+   *streamp = fdopen (fd, FOPEN_RT);
+@@ -572,13 +599,14 @@ source_script_with_search (const char *f
+   if (file == NULL || *file == 0)
+     error (_("source command requires file name of file to source."));
+ 
+-  if (!find_and_open_script (file, search_path, &stream, &full_path))
++  if (!find_and_open_script (file, search_path, &stream, &full_path,
++			     from_tty))
      {
+       /* The script wasn't found, or was otherwise inaccessible.
+ 	 If the source command was invoked interactively, throw an error.
+ 	 Otherwise (e.g. if it was invoked by a script), silently ignore
+ 	 the error.  */
 -      if (from_tty)
 +      if (from_tty > 0)
  	perror_with_name (file);
        else
- 	{
-@@ -554,6 +578,7 @@ source_script (char *file, int from_tty)
-   else
-     script_from_file (stream, file);
- 
-+  /* FILE gets freed by do_cleanups (old_cleanups).  */
-   do_cleanups (old_cleanups);
- }
- 
-Index: gdb-7.0.50.20100121/gdb/testsuite/gdb.base/gdbinit.exp
+ 	return;
+Index: gdb-7.1.90.20100720/gdb/testsuite/gdb.base/gdbinit.exp
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.0.50.20100121/gdb/testsuite/gdb.base/gdbinit.exp	2010-01-21 15:11:18.000000000 +0100
-@@ -0,0 +1,98 @@
++++ gdb-7.1.90.20100720/gdb/testsuite/gdb.base/gdbinit.exp	2010-07-20 22:25:40.000000000 +0200
+@@ -0,0 +1,91 @@
 +#   Copyright 2005
 +#   Free Software Foundation, Inc.
 +
@@ -105,13 +117,6 @@ Index: gdb-7.0.50.20100121/gdb/testsuite
 +
 +# This file was written by Jeff Johnston <jjohnstn at redhat.com>.
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# are we on a target board
 +if [is_remote target] {
 +    return
@@ -181,17 +186,17 @@ Index: gdb-7.0.50.20100121/gdb/testsuite
 +}
 +
 +remote_exec build "rm .gdbinit"
-Index: gdb-7.0.50.20100121/gdb/testsuite/gdb.base/gdbinit.sample
+Index: gdb-7.1.90.20100720/gdb/testsuite/gdb.base/gdbinit.sample
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.0.50.20100121/gdb/testsuite/gdb.base/gdbinit.sample	2010-01-21 15:11:18.000000000 +0100
++++ gdb-7.1.90.20100720/gdb/testsuite/gdb.base/gdbinit.sample	2010-07-20 22:25:40.000000000 +0200
 @@ -0,0 +1 @@
 +echo "\nin gdbinit"
-Index: gdb-7.0.50.20100121/gdb/main.c
+Index: gdb-7.1.90.20100720/gdb/main.c
 ===================================================================
---- gdb-7.0.50.20100121.orig/gdb/main.c	2010-01-21 15:11:09.000000000 +0100
-+++ gdb-7.0.50.20100121/gdb/main.c	2010-01-21 15:11:18.000000000 +0100
-@@ -818,7 +818,7 @@ Excess command line arguments ignored. (
+--- gdb-7.1.90.20100720.orig/gdb/main.c	2010-06-26 08:44:47.000000000 +0200
++++ gdb-7.1.90.20100720/gdb/main.c	2010-07-21 20:09:03.000000000 +0200
+@@ -794,7 +794,7 @@ Excess command line arguments ignored. (
       debugging or what directory you are in.  */
  
    if (home_gdbinit && !inhibit_gdbinit)
@@ -200,12 +205,39 @@ Index: gdb-7.0.50.20100121/gdb/main.c
  
    /* Now perform all the actions indicated by the arguments.  */
    if (cdarg != NULL)
-@@ -887,7 +887,7 @@ Can't attach to process and specify a co
+@@ -868,7 +868,7 @@ Can't attach to process and specify a co
    /* Read the .gdbinit file in the current directory, *if* it isn't
       the same as the $HOME/.gdbinit file (it should exist, also).  */
    if (local_gdbinit && !inhibit_gdbinit)
 -    catch_command_errors (source_script, local_gdbinit, 0, RETURN_MASK_ALL);
 +    catch_command_errors (source_script, local_gdbinit, -1, RETURN_MASK_ALL);
  
-   for (i = 0; i < ncmd; i++)
-     {
+   /* Now that all .gdbinit's have been read and all -d options have been
+      processed, we can read any scripts mentioned in SYMARG.
+Index: gdb-7.1.90.20100720/gdb/python/py-auto-load.c
+===================================================================
+--- gdb-7.1.90.20100720.orig/gdb/python/py-auto-load.c	2010-05-17 23:23:25.000000000 +0200
++++ gdb-7.1.90.20100720/gdb/python/py-auto-load.c	2010-07-20 22:25:40.000000000 +0200
+@@ -219,7 +219,7 @@ source_section_scripts (struct objfile *
+ 	}
+ 
+       opened = find_and_open_script (file, 1 /*search_path*/,
+-				     &stream, &full_path);
++				     &stream, &full_path, 1 /* from_tty */);
+ 
+       /* If the file is not found, we still record the file in the hash table,
+ 	 we only want to print an error message once.
+Index: gdb-7.1.90.20100720/gdb/cli/cli-cmds.h
+===================================================================
+--- gdb-7.1.90.20100720.orig/gdb/cli/cli-cmds.h	2010-05-03 01:52:14.000000000 +0200
++++ gdb-7.1.90.20100720/gdb/cli/cli-cmds.h	2010-07-20 22:25:40.000000000 +0200
+@@ -126,7 +126,8 @@ extern void source_script (char *, int);
+ /* Exported to objfiles.c.  */
+ 
+ extern int find_and_open_script (const char *file, int search_path,
+-				 FILE **streamp, char **full_path);
++				 FILE **streamp, char **full_path,
++				 int from_tty);
+ 
+ /* Command tracing state.  */
+ 

gdb-6.3-step-thread-exit-20050211-test.patch:
 step-thread-exit.c   |   50 ++++++++++++++++++++
 step-thread-exit.exp |  123 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 173 insertions(+)

Index: gdb-6.3-step-thread-exit-20050211-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-step-thread-exit-20050211-test.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.3-step-thread-exit-20050211-test.patch	14 Dec 2008 14:05:15 -0000	1.3
+++ gdb-6.3-step-thread-exit-20050211-test.patch	21 Jul 2010 21:30:13 -0000	1.4
@@ -62,7 +62,7 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-6.8.50.20081128/gdb/testsuite/gdb.threads/step-thread-exit.exp	2008-12-08 22:22:14.000000000 +0100
-@@ -0,0 +1,130 @@
+@@ -0,0 +1,123 @@
 +# This testcase is part of GDB, the GNU debugger.
 +
 +# Copyright 2005 Free Software Foundation, Inc.
@@ -83,13 +83,6 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 +
 +# Check that GDB can step over a thread exit.
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile "step-thread-exit"
 +set srcfile ${testfile}.c
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.3-test-dtorfix-20050121.patch:
 constructortest.cc  |   99 +++++++++++++++++++++++++++++++++++++++
 constructortest.exp |  130 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 229 insertions(+)

Index: gdb-6.3-test-dtorfix-20050121.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-test-dtorfix-20050121.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- gdb-6.3-test-dtorfix-20050121.patch	12 Jan 2010 22:15:54 -0000	1.9
+++ gdb-6.3-test-dtorfix-20050121.patch	21 Jul 2010 21:30:14 -0000	1.10
@@ -129,7 +129,7 @@ Index: gdb/testsuite/ChangeLog
 +}
 --- gdb-6.3/gdb/testsuite/gdb.cp/constructortest.exp.fix	Fri Jan 21 17:07:02 2005
 +++ gdb-6.3/gdb/testsuite/gdb.cp/constructortest.exp	Fri Jan 21 17:05:29 2005
-@@ -0,0 +1,137 @@
+@@ -0,0 +1,130 @@
 +# This testcase is part of GDB, the GNU debugger.
 +
 +# Copyright 2005, 2007 Free Software Foundation, Inc.
@@ -150,13 +150,6 @@ Index: gdb/testsuite/ChangeLog
 +
 +# Check that GDB can break at multiple forms of constructors.
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile "constructortest"
 +set srcfile ${testfile}.cc
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.3-test-movedir-20050125.patch:
 move-dir.c   |   10 ++++++++++
 move-dir.exp |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 move-dir.h   |    7 +++++++
 3 files changed, 74 insertions(+)

Index: gdb-6.3-test-movedir-20050125.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-test-movedir-20050125.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.3-test-movedir-20050125.patch	14 Dec 2008 14:05:15 -0000	1.2
+++ gdb-6.3-test-movedir-20050125.patch	21 Jul 2010 21:30:14 -0000	1.3
@@ -23,7 +23,7 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 ===================================================================
 --- /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,67 @@
+@@ -0,0 +1,57 @@
 +#   Copyright 2005
 +#   Free Software Foundation, Inc.
 +
@@ -41,16 +41,6 @@ Index: gdb-6.8.50.20081128/gdb/testsuite
 +# 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
-+
-+if $tracelevel then {
-+        strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile "move-dir"
 +set srcfile ${testfile}.c
 +set incfile ${testfile}.h

gdb-6.3-test-pie-20050107.patch:
 configure            |    3 
 configure.ac         |    2 
 gdb.pie/Makefile.in  |   19 +
 gdb.pie/attach.c     |   20 +
 gdb.pie/attach.exp   |  423 ++++++++++++++++++++++
 gdb.pie/attach2.c    |   24 +
 gdb.pie/break.c      |  146 +++++++
 gdb.pie/break.exp    |  966 +++++++++++++++++++++++++++++++++++++++++++++++++++
 gdb.pie/break1.c     |   44 ++
 gdb.pie/corefile.exp |  233 ++++++++++++
 gdb.pie/coremaker.c  |  142 +++++++
 11 files changed, 2020 insertions(+), 2 deletions(-)

Index: gdb-6.3-test-pie-20050107.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-test-pie-20050107.patch,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- gdb-6.3-test-pie-20050107.patch	11 Jul 2010 18:06:30 -0000	1.14
+++ gdb-6.3-test-pie-20050107.patch	21 Jul 2010 21:30:14 -0000	1.15
@@ -436,7 +436,7 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.0.90.20100306/gdb/testsuite/gdb.pie/attach.exp	2010-03-06 23:19:31.000000000 +0100
-@@ -0,0 +1,433 @@
+@@ -0,0 +1,423 @@
 +#   Copyright 1997, 1999, 2002 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -453,16 +453,6 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 +# 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
-+
-+if $tracelevel then {
-+	strace $tracelevel
-+	}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# 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
@@ -874,7 +864,7 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.0.90.20100306/gdb/testsuite/gdb.pie/break.exp	2010-03-06 23:19:31.000000000 +0100
-@@ -0,0 +1,977 @@
+@@ -0,0 +1,966 @@
 +#   Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999,
 +#   2000, 2002, 2003, 2004
 +#   Free Software Foundation, Inc.
@@ -900,17 +890,6 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 +
 +# Test the same stuff but with PIE executables
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+
-+#
-+# test running programs
-+#
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile "break"
 +set srcfile ${testfile}.c
 +set srcfile1 ${testfile}1.c
@@ -1856,7 +1835,7 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.0.90.20100306/gdb/testsuite/gdb.pie/corefile.exp	2010-03-06 23:19:31.000000000 +0100
-@@ -0,0 +1,243 @@
+@@ -0,0 +1,233 @@
 +# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
 +# Free Software Foundation, Inc.
 +
@@ -1874,18 +1853,8 @@ Index: gdb-7.0.90.20100306/gdb/testsuite
 +# 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 Fred Fish. (fnf at cygnus.com)
 +
-+if $tracelevel then {
-+	strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# are we on a target board
 +if ![isnative] then {
 +    return

gdb-6.3-threaded-watchpoints2-20050225.patch:
 watchthreads-threaded.c   |   66 ++++++++++++++++++++++++
 watchthreads-threaded.exp |  126 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 192 insertions(+)

Index: gdb-6.3-threaded-watchpoints2-20050225.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-threaded-watchpoints2-20050225.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- gdb-6.3-threaded-watchpoints2-20050225.patch	4 Aug 2009 05:37:28 -0000	1.9
+++ gdb-6.3-threaded-watchpoints2-20050225.patch	21 Jul 2010 21:30:14 -0000	1.10
@@ -114,7 +114,7 @@ Index: gdb-6.5/gdb/testsuite/gdb.threads
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-6.5/gdb/testsuite/gdb.threads/watchthreads-threaded.exp	2006-07-12 01:54:29.000000000 -0300
-@@ -0,0 +1,133 @@
+@@ -0,0 +1,126 @@
 +# This testcase is part of GDB, the GNU debugger.
 +
 +# Copyright 2005 Free Software Foundation, Inc.
@@ -135,13 +135,6 @@ Index: gdb-6.5/gdb/testsuite/gdb.threads
 +
 +# Check that GDB can support multiple watchpoints across threads.
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# This test verifies that a watchpoint is detected in the proper thread
 +# so the test is only meaningful on a system with hardware watchpoints.
 +if [target_info exists gdb,no_hardware_watchpoints] {

gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch:
 gdbtypes.c                         |    3 +
 gdbtypes.h                         |    2 +
 parse.c                            |    6 +++
 target.c                           |   42 +++++++++++++++++++++++++
 testsuite/gdb.dwarf2/dw2-errno.c   |   28 +++++++++++++++++
 testsuite/gdb.dwarf2/dw2-errno.exp |   60 +++++++++++++++++++++++++++++++++++++
 6 files changed, 139 insertions(+), 2 deletions(-)

Index: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch	28 Jan 2010 22:26:13 -0000	1.12
+++ gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch	21 Jul 2010 21:30:14 -0000	1.13
@@ -171,7 +171,7 @@ Index: gdb-7.0.50.20100128/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.0.50.20100128/gdb/testsuite/gdb.dwarf2/dw2-errno.exp	2010-01-28 12:52:48.000000000 +0100
-@@ -0,0 +1,67 @@
+@@ -0,0 +1,60 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -187,13 +187,6 @@ Index: gdb-7.0.50.20100128/gdb/testsuite
 +# You should have received a copy of the GNU General Public License
 +# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 +
-+if $tracelevel then {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile dw2-errno
 +set srcfile ${testfile}.c
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.5-bz216711-clone-is-outermost.patch:
 bt-clone-stop.c   |   39 ++++++++++++++++++++++++++++++++++
 bt-clone-stop.exp |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Index: gdb-6.5-bz216711-clone-is-outermost.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-bz216711-clone-is-outermost.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- gdb-6.5-bz216711-clone-is-outermost.patch	11 Jul 2010 18:06:30 -0000	1.7
+++ gdb-6.5-bz216711-clone-is-outermost.patch	21 Jul 2010 21:30:14 -0000	1.8
@@ -23,296 +23,6 @@ instead.
 
 	Port to GDB-6.7.
 
-Index: gdb-6.8.50.20090802/gdb/amd64-linux-tdep.c
-===================================================================
---- gdb-6.8.50.20090802.orig/gdb/amd64-linux-tdep.c	2009-07-02 19:25:52.000000000 +0200
-+++ gdb-6.8.50.20090802/gdb/amd64-linux-tdep.c	2009-08-03 15:50:08.000000000 +0200
-@@ -238,6 +238,80 @@ amd64_linux_register_reggroup_p (struct 
- 
- /* Set the program counter for process PTID to PC.  */
- 
-+/* Detect the outermost frame; during unwind of
-+   	#5  0x000000305cec68c3 in clone () from /lib64/tls/libc.so.6
-+   avoid the additional bogus frame
-+   	#6  0x0000000000000000 in ??
-+   We compare if the `linux_clone_code' block is _before_ unwound PC.  */
-+
-+static const unsigned char linux_clone_code[] =
-+{
-+/* libc/sysdeps/unix/sysv/linux/x86_64/clone.S */
-+/* #ifdef RESET_PID */
-+/* ... */
-+/* 	mov	$SYS_ify(getpid), %eax */
-+/* 0xb8, 0x27, 0x00, 0x00, 0x00 */
-+/* OR */
-+/* 	mov	$SYS_ify(getpid), %rax */
-+/* 0x48, 0xc7, 0xc0, 0x27, 0x00, 0x00, 0x00 */
-+/* so just: */
-+  0x27, 0x00, 0x00, 0x00,
-+/* 	syscall */
-+  0x0f, 0x05,
-+/* 	movl	%eax, %fs:PID */
-+  0x64, 0x89, 0x04, 0x25, 0x94, 0x00, 0x00, 0x00,
-+/* 	movl	%eax, %fs:TID */
-+  0x64, 0x89, 0x04, 0x25, 0x90, 0x00, 0x00, 0x00,
-+/* #endif */
-+/* 	|* Set up arguments for the function call.  *| */
-+/* 	popq	%rax		|* Function to call.  *| */
-+  0x58,
-+/* 	popq	%rdi		|* Argument.  *| */
-+  0x5f,
-+/* 	call	*%rax$   */
-+  0xff, 0xd0
-+};
-+
-+#define LINUX_CLONE_LEN (sizeof linux_clone_code)
-+
-+static int
-+amd64_linux_clone_running (struct frame_info *this_frame)
-+{
-+  CORE_ADDR pc = get_frame_pc (this_frame);
-+  unsigned char buf[LINUX_CLONE_LEN];
-+
-+  if (!safe_frame_unwind_memory (this_frame, pc - LINUX_CLONE_LEN, buf,
-+				 LINUX_CLONE_LEN))
-+    return 0;
-+
-+  if (memcmp (buf, linux_clone_code, LINUX_CLONE_LEN) != 0)
-+    return 0;
-+
-+  return 1;
-+}
-+
-+static int
-+amd64_linux_outermost_frame (struct frame_info *this_frame)
-+{
-+  CORE_ADDR pc = get_frame_pc (this_frame);
-+  char *name;
-+
-+  find_pc_partial_function (pc, &name, NULL, NULL);
-+
-+  /* If we have NAME, we can optimize the search.
-+     `clone' NAME still needs to have the code checked as its name may be
-+     present in the user code.
-+     `__clone' NAME should not be present in the user code but in the initial
-+     parts of the `__clone' implementation the unwind still makes sense.
-+     More detailed unwinding decision would be too much sensitive to possible
-+     subtle changes in specific glibc revisions.  */
-+  if (name == NULL || strcmp (name, "clone") == 0
-+      || strcmp ("__clone", name) == 0)
-+    return (amd64_linux_clone_running (this_frame) != 0);
-+
-+  return 0;
-+}
-+
- static void
- amd64_linux_write_pc (struct regcache *regcache, CORE_ADDR pc)
- {
-@@ -276,6 +350,8 @@ amd64_linux_init_abi (struct gdbarch_inf
-   tdep->sc_reg_offset = amd64_linux_sc_reg_offset;
-   tdep->sc_num_regs = ARRAY_SIZE (amd64_linux_sc_reg_offset);
- 
-+  tdep->outermost_frame_p = amd64_linux_outermost_frame;
-+
-   /* GNU/Linux uses SVR4-style shared libraries.  */
-   set_solib_svr4_fetch_link_map_offsets
-     (gdbarch, svr4_lp64_fetch_link_map_offsets);
-Index: gdb-6.8.50.20090802/gdb/amd64-tdep.c
-===================================================================
---- gdb-6.8.50.20090802.orig/gdb/amd64-tdep.c	2009-07-02 19:25:52.000000000 +0200
-+++ gdb-6.8.50.20090802/gdb/amd64-tdep.c	2009-08-03 15:50:08.000000000 +0200
-@@ -1736,11 +1736,16 @@ amd64_frame_this_id (struct frame_info *
- {
-   struct amd64_frame_cache *cache =
-     amd64_frame_cache (this_frame, this_cache);
-+  struct gdbarch_tdep *tdep = gdbarch_tdep (get_frame_arch (this_frame));
- 
-   /* This marks the outermost frame.  */
-   if (cache->base == 0)
-     return;
- 
-+  /* Detect OS dependent outermost frames; such as `clone'.  */
-+  if (tdep->outermost_frame_p && tdep->outermost_frame_p (this_frame))
-+    return;
-+
-   (*this_id) = frame_id_build (cache->base + 16, cache->pc);
- }
- 
---- gdb-6.8.50.20090811/gdb/i386-tdep.c.orig	2009-08-10 05:02:39.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/i386-tdep.c	2009-08-11 16:33:51.000000000 +0200
-@@ -5432,6 +5432,9 @@ i386_gdbarch_init (struct gdbarch_info i
-   tdep->sc_pc_offset = -1;
-   tdep->sc_sp_offset = -1;
- 
-+  /* Unwinding stops on i386 automatically.  */
-+  tdep->outermost_frame_p = NULL;
-+
-   tdep->record_regmap = i386_record_regmap;
- 
-   /* The format used for `long double' on almost all i386 targets is
---- gdb-6.8.50.20090811/gdb/i386-tdep.h.orig	2009-08-10 05:02:39.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/i386-tdep.h	2009-08-11 16:34:08.000000000 +0200
-@@ -120,6 +120,9 @@ struct gdbarch_tdep
-   int (*i386_sysenter_record) (struct regcache *regcache);
-   /* Parse syscall args.  */
-   int (*i386_syscall_record) (struct regcache *regcache);
-+
-+  /* Detect OS dependent outermost frames; such as `clone'.  */
-+  int (*outermost_frame_p) (struct frame_info *this_frame);
- };
- 
- /* Floating-point registers.  */
---- a/gdb/ia64-tdep.c
-+++ b/gdb/ia64-tdep.c
-@@ -2122,6 +2122,138 @@ static const struct frame_unwind ia64_frame_unwind =
-   default_frame_sniffer
- };
- 
-+/* Detect the outermost frame; during unwind of
-+   	#6  0x2000000000347100 in __clone2 () from /lib/libc.so.6.1
-+   avoid the additional bogus frame
-+   	#7  0x0000000000000000 in ?? ()  */
-+
-+static char linux_clone2_code[] =
-+{
-+/* libc/sysdeps/unix/sysv/linux/ia64/clone2.S */
-+  0x09, 0x00, 0x20, 0x12, 0x90, 0x11, 0x00, 0x40,
-+  0x28, 0x20, 0x23, 0x00, 0x00, 0x00, 0x04, 0x00,
-+/*         st4 [r9]=r8 */
-+/*         st4 [r10]=r8 */
-+/*         ;; */
-+/* #endif */
-+  0x02, 0x50, 0x21, 0x40, 0x18, 0x14, 0x90, 0x02,
-+  0x90, 0x00, 0x42, 0x00, 0x00, 0x00, 0x04, 0x00,
-+/* 1:      ld8 out1=[in0],8        |* Retrieve code pointer.       *| */
-+/*         mov out0=in4            |* Pass proper argument to fn *| */
-+/*         ;; */
-+  0x11, 0x08, 0x00, 0x40, 0x18, 0x10, 0x60, 0x50,
-+  0x05, 0x80, 0x03, 0x00, 0x68, 0x00, 0x80, 0x12,
-+/*         ld8 gp=[in0]            |* Load function gp.            *| */
-+/*         mov b6=out1 */
-+/*         br.call.dptk.many rp=b6 |* Call fn(arg) in the child    *| */
-+/*         ;; */
-+  0x10, 0x48, 0x01, 0x10, 0x00, 0x21, 0x10, 0x00,
-+  0xa0, 0x00, 0x42, 0x00, 0x98, 0xdf, 0xf7, 0x5b,
-+/*         mov out0=r8             |* Argument to _exit            *| */
-+/*         mov gp=loc0 */
-+/*         .globl HIDDEN_JUMPTARGET(_exit) */
-+/*         br.call.dpnt.many rp=HIDDEN_JUMPTARGET(_exit) */
-+/*                                 |* call _exit with result from fn.      *| */
-+  0x11, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
-+  0x00, 0x02, 0x00, 0x80, 0x00, 0x00, 0x84, 0x00
-+/*         ret                     |* Not reached.         *| */
-+};
-+
-+#define LINUX_CLONE_PRE_SLOTS 3	/* Number of slots before PC.  */
-+#define LINUX_CLONE_LEN (sizeof linux_clone2_code)
-+
-+static int
-+ia64_linux_clone2_running (struct frame_info *this_frame)
-+{
-+  CORE_ADDR pc = get_frame_pc (this_frame);
-+  char buf[LINUX_CLONE_LEN];
-+  struct minimal_symbol *minsym;
-+  long long instr;
-+
-+  if (!safe_frame_unwind_memory (this_frame, pc - LINUX_CLONE_PRE_SLOTS * 16,
-+				 buf, LINUX_CLONE_LEN))
-+    return 0;
-+
-+  if (memcmp (buf, linux_clone2_code, LINUX_CLONE_PRE_SLOTS * 16) != 0)
-+    return 0;
-+
-+  /* Adjust the expected "_exit" address.  */
-+  minsym = lookup_minimal_symbol_text ("_exit", NULL);
-+  if (minsym == NULL)
-+    return 0;
-+
-+  instr = slotN_contents (&linux_clone2_code[LINUX_CLONE_PRE_SLOTS * 16], 2);
-+  instr &= ~(((1L << 20) - 1) << 13);
-+  /* Address is relative to the jump instruction slot, not the next one.  */
-+  instr |= (((SYMBOL_VALUE_ADDRESS (minsym) - (pc & ~0xfL)) >> 4)
-+	    & ((1L << 20) - 1)) << 13;
-+  replace_slotN_contents (&linux_clone2_code[LINUX_CLONE_PRE_SLOTS * 16], instr,
-+			  2);
-+
-+  if (memcmp (&buf[LINUX_CLONE_PRE_SLOTS * 16],
-+              &linux_clone2_code[LINUX_CLONE_PRE_SLOTS * 16],
-+	      LINUX_CLONE_LEN - (LINUX_CLONE_PRE_SLOTS * 16)) != 0)
-+    return 0;
-+
-+  return 1;
-+}
-+
-+static int
-+ia64_outermost_frame (struct frame_info *this_frame)
-+{
-+  CORE_ADDR pc = get_frame_pc (this_frame);
-+  char *name;
-+
-+  find_pc_partial_function (pc, &name, NULL, NULL);
-+
-+  /* If we have NAME, we can optimize the search.
-+     `clone' NAME still needs to have the code checked as its name may be
-+     present in the user code.
-+     `__clone' NAME should not be present in the user code but in the initial
-+     parts of the `__clone' implementation the unwind still makes sense.
-+     More detailed unwinding decision would be too much sensitive to possible
-+     subtle changes in specific glibc revisions.  */
-+  if (name == NULL || strcmp (name, "clone2") == 0
-+      || strcmp ("__clone2", name) == 0)
-+    return (ia64_linux_clone2_running (this_frame) != 0);
-+
-+  return 0;
-+}
-+
-+static void
-+ia64_clone2_frame_this_id (struct frame_info *this_frame, void **this_cache,
-+			   struct frame_id *this_id)
-+{
-+  /* Leave the default outermost frame at *THIS_ID.  */
-+}
-+
-+static struct value *
-+ia64_clone2_frame_prev_register (struct frame_info *this_frame,
-+				 void **this_cache, int regnum)
-+{
-+  return frame_unwind_got_register (this_frame, regnum, regnum);
-+}
-+
-+static int
-+ia64_clone2_frame_sniffer (const struct frame_unwind *self,
-+			   struct frame_info *this_frame,
-+			   void **this_prologue_cache)
-+{
-+  if (ia64_outermost_frame (this_frame))
-+    return 1;
-+
-+  return 0;
-+}
-+
-+static const struct frame_unwind ia64_clone2_frame_unwind =
-+{
-+  NORMAL_FRAME,
-+  &ia64_clone2_frame_this_id,
-+  &ia64_clone2_frame_prev_register,
-+  NULL,
-+  &ia64_clone2_frame_sniffer
-+};
-+
- /* Signal trampolines.  */
- 
- static void
-@@ -3824,6 +3955,7 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
-   set_gdbarch_dummy_id (gdbarch, ia64_dummy_id);
- 
-   set_gdbarch_unwind_pc (gdbarch, ia64_unwind_pc);
-+  frame_unwind_append_unwinder (gdbarch, &ia64_clone2_frame_unwind);
- #ifdef HAVE_LIBUNWIND_IA64_H
-   frame_unwind_append_unwinder (gdbarch,
-                                 &ia64_libunwind_sigtramp_frame_unwind);
-Index: gdb-6.8.50.20090802/gdb/testsuite/gdb.threads/bt-clone-stop.c
-===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-6.8.50.20090802/gdb/testsuite/gdb.threads/bt-clone-stop.c	2009-08-03 15:50:08.000000000 +0200
 @@ -0,0 +1,39 @@

gdb-6.5-bz243845-stale-testing-zombie-test.patch:
 tracefork-zombie.exp |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

Index: gdb-6.5-bz243845-stale-testing-zombie-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-bz243845-stale-testing-zombie-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.5-bz243845-stale-testing-zombie-test.patch	27 Aug 2008 11:07:47 -0000	1.1
+++ gdb-6.5-bz243845-stale-testing-zombie-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -1,7 +1,7 @@
 diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.base/tracefork-zombie.exp gdb-6.3/gdb/testsuite/gdb.base/tracefork-zombie.exp
 --- gdb-6.3-unpatched/gdb/testsuite/gdb.base/tracefork-zombie.exp	1969-12-31 19:00:00.000000000 -0500
 +++ gdb-6.3/gdb/testsuite/gdb.base/tracefork-zombie.exp	2007-07-31 13:04:12.000000000 -0400
-@@ -0,0 +1,82 @@
+@@ -0,0 +1,75 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -18,13 +18,6 @@ diff -u -ruNp gdb-6.3-unpatched/gdb/test
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +# are we on a target board
 +if [is_remote target] then {
 +    return 0

gdb-6.5-dwarf-stack-overflow.patch:
 dwarf2read.c |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Index: gdb-6.5-dwarf-stack-overflow.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-dwarf-stack-overflow.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.5-dwarf-stack-overflow.patch	1 Nov 2007 20:24:20 -0000	1.2
+++ gdb-6.5-dwarf-stack-overflow.patch	21 Jul 2010 21:30:14 -0000	1.3
@@ -10,11 +10,11 @@ for gdb/ChangeLog:
 
 	Port to GDB-6.7.
 
-Index: gdb-6.7/gdb/dwarf2read.c
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
 ===================================================================
---- gdb-6.7.orig/gdb/dwarf2read.c	2007-10-15 00:08:30.000000000 +0200
-+++ gdb-6.7/gdb/dwarf2read.c	2007-10-15 21:42:43.000000000 +0200
-@@ -9070,8 +9070,7 @@ dwarf2_fundamental_type (struct objfile 
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-12 10:43:53.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-12 10:49:32.000000000 +0200
+@@ -11382,8 +11382,7 @@ read_signatured_type (struct objfile *ob
     callers will only want a very basic result and this can become a
     complaint.
  
@@ -24,7 +24,7 @@ Index: gdb-6.7/gdb/dwarf2read.c
  
  static CORE_ADDR
  decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu)
-@@ -9088,7 +9087,7 @@ decode_locdesc (struct dwarf_block *blk,
+@@ -11399,7 +11398,7 @@ decode_locdesc (struct dwarf_block *blk,
  
    i = 0;
    stacki = 0;
@@ -33,8 +33,8 @@ Index: gdb-6.7/gdb/dwarf2read.c
  
    while (i < size)
      {
-@@ -9270,6 +9269,16 @@ decode_locdesc (struct dwarf_block *blk,
- 		     dwarf_stack_op_name (op));
+@@ -11581,6 +11580,16 @@ decode_locdesc (struct dwarf_block *blk,
+ 		     dwarf_stack_op_name (op, 1));
  	  return (stack[stacki]);
  	}
 +      /* Enforce maximum stack depth of size-1 to avoid ++stacki writing

gdb-6.5-gcore-buffer-limit-test.patch:
 gcore-excessive-memory.c   |   37 +++++++++++++++++
 gcore-excessive-memory.exp |   94 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+)

Index: gdb-6.5-gcore-buffer-limit-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-gcore-buffer-limit-test.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.5-gcore-buffer-limit-test.patch	12 Jan 2008 16:16:46 -0000	1.2
+++ gdb-6.5-gcore-buffer-limit-test.patch	21 Jul 2010 21:30:14 -0000	1.3
@@ -42,7 +42,7 @@ diff -u -X /home/jkratoch/.diffi.list -r
 diff -u -X /home/jkratoch/.diffi.list -ruNp gdb-6.5/gdb/testsuite/gdb.base/gcore-excessive-memory.exp gdb-6.5-unknown/gdb/testsuite/gdb.base/gcore-excessive-memory.exp
 --- gdb-6.5/gdb/testsuite/gdb.base/gcore-excessive-memory.exp	1970-01-01 01:00:00.000000000 +0100
 +++ gdb-6.5-unknown/gdb/testsuite/gdb.base/gcore-excessive-memory.exp	2008-01-08 11:47:32.000000000 +0100
-@@ -0,0 +1,101 @@
+@@ -0,0 +1,94 @@
 +# Copyright 2008 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -59,13 +59,6 @@ diff -u -X /home/jkratoch/.diffi.list -r
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile gcore-excessive-memory
 +set srcfile ${testfile}.c
 +set shfile ${objdir}/${subdir}/${testfile}-gdb.sh

gdb-6.5-ia64-libunwind-leak-test.patch:
 unwind-leak.c   |   29 +++++++++++++++++++
 unwind-leak.exp |   83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Index: gdb-6.5-ia64-libunwind-leak-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-ia64-libunwind-leak-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.5-ia64-libunwind-leak-test.patch	10 Jan 2008 17:17:49 -0000	1.1
+++ gdb-6.5-ia64-libunwind-leak-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -34,7 +34,7 @@ diff -u -rup gdb-6.3-orig/gdb/testsuite/
 diff -u -rup gdb-6.3-orig/gdb/testsuite/gdb.base/unwind-leak.exp gdb-6.3/gdb/testsuite/gdb.base/unwind-leak.exp
 --- gdb-6.3-orig/gdb/testsuite/gdb.base/unwind-leak.exp	2007-12-19 15:12:53.000000000 -0500
 +++ gdb-6.3/gdb/testsuite/gdb.base/unwind-leak.exp	2007-12-19 15:11:35.000000000 -0500
-@@ -0,0 +1,90 @@
+@@ -0,0 +1,83 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -51,13 +51,6 @@ diff -u -rup gdb-6.3-orig/gdb/testsuite/
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile unwind-leak
 +set srcfile ${testfile}.c
 +set shfile ${objdir}/${subdir}/${testfile}-gdb.sh

gdb-6.5-missed-trap-on-step-test.patch:
 watchpoint-during-step.c   |   30 ++++++++++++++++++++++++++++++
 watchpoint-during-step.exp |   44 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Index: gdb-6.5-missed-trap-on-step-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.5-missed-trap-on-step-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.5-missed-trap-on-step-test.patch	30 Mar 2008 18:58:47 -0000	1.1
+++ gdb-6.5-missed-trap-on-step-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -3,7 +3,7 @@ Fix has been committed to:
 
 --- /dev/null	2007-12-14 20:45:09.113039517 +0100
 +++ gdb-6.5/gdb/testsuite/gdb.base/watchpoint-during-step.exp	2007-12-24 19:42:00.000000000 +0100
-@@ -0,0 +1,51 @@
+@@ -0,0 +1,44 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -20,13 +20,6 @@ Fix has been committed to:
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile watchpoint-during-step
 +set srcfile ${testfile}.c
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.6-buildid-locate-core-as-arg.patch:
 exceptions.h |    3 +++
 exec.c       |   22 +++++++++++++++++++---
 main.c       |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++---
 3 files changed, 72 insertions(+), 6 deletions(-)

Index: gdb-6.6-buildid-locate-core-as-arg.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-buildid-locate-core-as-arg.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.6-buildid-locate-core-as-arg.patch	11 Jul 2010 18:06:30 -0000	1.3
+++ gdb-6.6-buildid-locate-core-as-arg.patch	21 Jul 2010 21:30:14 -0000	1.4
@@ -58,8 +58,10 @@ Http://sourceware.org/ml/gdb-patches/201
 	* exec.c (exec_file_attach): Print a more useful error message if the
 	user did "gdb core".
 
---- ./gdb/exceptions.h	2010-04-11 22:31:30.000000000 +0200
-+++ ./gdb/exceptions.h	2010-04-11 22:31:47.000000000 +0200
+Index: gdb-7.1.90.20100711/gdb/exceptions.h
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/exceptions.h	2010-05-03 01:52:14.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/exceptions.h	2010-07-13 22:56:29.000000000 +0200
 @@ -78,6 +78,9 @@ enum errors {
    /* Feature is not supported in this copy of GDB.  */
    UNSUPPORTED_ERROR,
@@ -70,8 +72,10 @@ Http://sourceware.org/ml/gdb-patches/201
    /* Add more errors here.  */
    NR_ERRORS
  };
---- ./gdb/exec.c	2010-04-11 22:31:30.000000000 +0200
-+++ ./gdb/exec.c	2010-04-11 22:41:26.000000000 +0200
+Index: gdb-7.1.90.20100711/gdb/exec.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/exec.c	2010-07-12 23:07:34.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/exec.c	2010-07-13 22:56:29.000000000 +0200
 @@ -34,6 +34,7 @@
  #include "arch-utils.h"
  #include "gdbthread.h"
@@ -80,7 +84,7 @@ Http://sourceware.org/ml/gdb-patches/201
  
  #include <fcntl.h>
  #include "readline/readline.h"
-@@ -256,12 +257,27 @@ exec_file_attach (char *filename, int fr
+@@ -253,12 +254,27 @@ exec_file_attach (char *filename, int fr
  
        if (!bfd_check_format_matches (exec_bfd, bfd_object, &matching))
  	{
@@ -111,8 +115,10 @@ Http://sourceware.org/ml/gdb-patches/201
  	}
  
        /* FIXME - This should only be run for RS6000, but the ifdef is a poor
---- ./gdb/main.c	2010-04-11 22:31:30.000000000 +0200
-+++ ./gdb/main.c	2010-04-11 22:31:47.000000000 +0200
+Index: gdb-7.1.90.20100711/gdb/main.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/main.c	2010-07-12 23:07:34.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/main.c	2010-07-13 22:58:20.000000000 +0200
 @@ -241,6 +241,36 @@ captured_command_loop (void *data)
    return 1;
  }
@@ -150,7 +156,7 @@ Http://sourceware.org/ml/gdb-patches/201
  static int
  captured_main (void *data)
  {
-@@ -703,6 +733,8 @@ extern int gdbtk_test (char *);
+@@ -678,6 +708,8 @@ extern int gdbtk_test (char *);
  	{
  	  symarg = argv[optind];
  	  execarg = argv[optind];
@@ -159,7 +165,7 @@ Http://sourceware.org/ml/gdb-patches/201
  	  optind++;
  	}
  
-@@ -835,10 +867,25 @@ Excess command line arguments ignored. (
+@@ -816,10 +848,25 @@ Excess command line arguments ignored. (
        && symarg != NULL
        && strcmp (execarg, symarg) == 0)
      {
@@ -178,13 +184,13 @@ Http://sourceware.org/ml/gdb-patches/201
        /* The exec file and the symbol-file are the same.  If we can't
 -         open it, better only print one error message.
 -         catch_command_errors returns non-zero on success! */
--      if (catch_command_errors (exec_file_attach, execarg, !batch, RETURN_MASK_ALL))
+-      if (catch_command_errors (exec_file_attach, execarg, !batch_flag, RETURN_MASK_ALL))
 +	 open it, better only print one error message.
 +	 catch_command_errors returns non-zero on success!
 +	 Do not load EXECARG as a symbol file if it has been already processed
 +	 as a core file.  */
-+      if (catch_command_errors (func, execarg, !batch, RETURN_MASK_ALL)
++      if (catch_command_errors (func, execarg, !batch_flag, RETURN_MASK_ALL)
 +	  && core_bfd == NULL)
- 	catch_command_errors (symbol_file_add_main, symarg, !batch, RETURN_MASK_ALL);
+ 	catch_command_errors (symbol_file_add_main, symarg, !batch_flag, RETURN_MASK_ALL);
      }
    else

gdb-6.6-buildid-locate-rpm.patch:
 acinclude.m4                 |    4 
 aclocal.m4                   |  156 +++++++++++++
 config.in                    |    6 
 configure                    |  492 +++++++++++++++++++++++++++++++++++++++++++
 configure.ac                 |  193 ++++++++++++++++
 elfread.c                    |  388 +++++++++++++++++++++++++++++++++
 event-top.c                  |    5 
 symfile.h                    |    1 
 testsuite/lib/gdb.exp        |    2 
 testsuite/lib/mi-support.exp |    2 
 tui/tui-interp.c             |    3 
 11 files changed, 1240 insertions(+), 12 deletions(-)

Index: gdb-6.6-buildid-locate-rpm.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-buildid-locate-rpm.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- gdb-6.6-buildid-locate-rpm.patch	16 Jan 2010 22:32:06 -0000	1.8
+++ gdb-6.6-buildid-locate-rpm.patch	21 Jul 2010 21:30:14 -0000	1.9
@@ -1,7 +1,7 @@
-Index: gdb-7.0.50.20100115/gdb/event-top.c
+Index: gdb-7.1.90.20100711/gdb/event-top.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/event-top.c	2010-01-01 08:31:31.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/event-top.c	2010-01-15 11:45:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/event-top.c	2010-06-26 08:44:47.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/event-top.c	2010-07-12 11:37:04.000000000 +0200
 @@ -33,6 +33,7 @@
  #include "cli/cli-script.h"     /* for reset_command_nest_depth */
  #include "main.h"
@@ -28,11 +28,11 @@ Index: gdb-7.0.50.20100115/gdb/event-top
    /* Each interpreter has its own rules on displaying the command
       prompt.  */
    if (!current_interp_display_prompt_p ())
-Index: gdb-7.0.50.20100115/gdb/elfread.c
+Index: gdb-7.1.90.20100711/gdb/elfread.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/elfread.c	2010-01-15 11:43:30.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/elfread.c	2010-01-15 11:45:34.000000000 +0100
-@@ -40,6 +40,7 @@
+--- gdb-7.1.90.20100711.orig/gdb/elfread.c	2010-07-12 11:30:30.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/elfread.c	2010-07-12 11:37:04.000000000 +0200
+@@ -42,6 +42,7 @@
  #include "gdbcore.h"
  #include "gdbcmd.h"
  #include "observer.h"
@@ -40,7 +40,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
  extern void _initialize_elfread (void);
  
-@@ -1119,8 +1120,353 @@ build_id_to_filename (struct build_id *b
+@@ -1368,8 +1369,353 @@ build_id_to_filename (struct build_id *b
    return retval;
  }
  
@@ -395,7 +395,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
     avoidance.  */
  
  struct missing_filepair
-@@ -1174,11 +1520,17 @@ missing_filepair_change (void)
+@@ -1423,11 +1769,17 @@ missing_filepair_change (void)
        /* All their memory came just from missing_filepair_OBSTACK.  */
        missing_filepair_hash = NULL;
      }
@@ -413,7 +413,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
    missing_filepair_change ();
  }
  
-@@ -1245,14 +1597,34 @@ debug_print_missing (const char *binary,
+@@ -1494,14 +1846,34 @@ debug_print_missing (const char *binary,
  
    *slot = missing_filepair;
  
@@ -455,11 +455,11 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  }
  
  static char *
-Index: gdb-7.0.50.20100115/gdb/symfile.h
+Index: gdb-7.1.90.20100711/gdb/symfile.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/symfile.h	2010-01-15 11:12:33.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/symfile.h	2010-01-15 11:45:20.000000000 +0100
-@@ -398,6 +398,7 @@ extern struct build_id *build_id_addr_ge
+--- gdb-7.1.90.20100711.orig/gdb/symfile.h	2010-07-12 11:06:18.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/symfile.h	2010-07-12 11:37:04.000000000 +0200
+@@ -568,6 +568,7 @@ extern struct build_id *build_id_addr_ge
  extern char *build_id_to_filename (struct build_id *build_id,
  				   char **link_return, int add_debug_suffix);
  extern void debug_print_missing (const char *binary, const char *debug);
@@ -467,11 +467,11 @@ Index: gdb-7.0.50.20100115/gdb/symfile.h
  
  /* From dwarf2read.c */
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/lib/gdb.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/lib/gdb.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/lib/gdb.exp	2010-01-15 11:12:33.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/lib/gdb.exp	2010-01-15 11:45:20.000000000 +0100
-@@ -1248,7 +1248,7 @@ proc default_gdb_start { } {
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/lib/gdb.exp	2010-07-12 11:05:57.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/lib/gdb.exp	2010-07-12 11:37:04.000000000 +0200
+@@ -1353,7 +1353,7 @@ proc default_gdb_start { } {
  	    warning "Couldn't set the width to 0."
  	}
      }
@@ -480,10 +480,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      send_gdb "set build-id-verbose 0\n"
      gdb_expect 10 {
  	-re "$gdb_prompt $" {
-Index: gdb-7.0.50.20100115/gdb/testsuite/lib/mi-support.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/lib/mi-support.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/lib/mi-support.exp	2010-01-15 11:12:33.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/lib/mi-support.exp	2010-01-15 11:45:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/lib/mi-support.exp	2010-07-12 11:05:57.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/lib/mi-support.exp	2010-07-12 11:37:04.000000000 +0200
 @@ -221,7 +221,7 @@ proc default_mi_gdb_start { args } {
  	    }
      	}
@@ -493,10 +493,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      send_gdb "190-gdb-set build-id-verbose 0\n"
      gdb_expect 10 {
  	-re ".*190-gdb-set build-id-verbose 0\r\n190\\\^done\r\n$mi_gdb_prompt$" {
-Index: gdb-7.0.50.20100115/gdb/tui/tui-interp.c
+Index: gdb-7.1.90.20100711/gdb/tui/tui-interp.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/tui/tui-interp.c	2010-01-01 08:32:07.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/tui/tui-interp.c	2010-01-15 11:45:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/tui/tui-interp.c	2010-05-18 00:21:43.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/tui/tui-interp.c	2010-07-12 11:37:04.000000000 +0200
 @@ -30,6 +30,7 @@
  #include "tui/tui.h"
  #include "tui/tui-io.h"
@@ -505,7 +505,7 @@ Index: gdb-7.0.50.20100115/gdb/tui/tui-i
  
  /* Set to 1 when the TUI mode must be activated when we first start
     gdb.  */
-@@ -128,6 +129,8 @@ tui_command_loop (void *data)
+@@ -146,6 +147,8 @@ tui_command_loop (void *data)
        char *a_prompt;
        char *gdb_prompt = get_prompt ();
  
@@ -514,10 +514,10 @@ Index: gdb-7.0.50.20100115/gdb/tui/tui-i
        /* Tell readline what the prompt to display is and what function
           it will need to call after a whole line is read. This also
           displays the first prompt.  */
-Index: gdb-7.0.50.20100115/gdb/aclocal.m4
+Index: gdb-7.1.90.20100711/gdb/aclocal.m4
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/aclocal.m4	2009-11-11 05:42:39.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/aclocal.m4	2010-01-15 11:45:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/aclocal.m4	2010-05-23 02:56:59.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/aclocal.m4	2010-07-12 11:37:04.000000000 +0200
 @@ -19,6 +19,162 @@ You have another version of autoconf.  I
  If you have problems, you may need to regenerate the build system entirely.
  To do so, use the procedure documented by the package, typically `autoreconf'.])])
@@ -681,11 +681,11 @@ Index: gdb-7.0.50.20100115/gdb/aclocal.m
  # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
  #
  # This file is free software; the Free Software Foundation
-Index: gdb-7.0.50.20100115/gdb/config.in
+Index: gdb-7.1.90.20100711/gdb/config.in
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/config.in	2010-01-15 03:22:31.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/config.in	2010-01-15 11:45:20.000000000 +0100
-@@ -42,6 +42,9 @@
+--- gdb-7.1.90.20100711.orig/gdb/config.in	2010-07-06 21:03:11.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/config.in	2010-07-12 11:38:30.000000000 +0200
+@@ -46,6 +46,9 @@
  /* Define to BFD's default target vector. */
  #undef DEFAULT_BFD_VEC
  
@@ -695,9 +695,9 @@ Index: gdb-7.0.50.20100115/gdb/config.in
  /* Define to 1 if translation of program messages to the user's native
     language is requested. */
  #undef ENABLE_NLS
-@@ -221,6 +224,9 @@
- /* Define if Python 2.6 is being used. */
- #undef HAVE_LIBPYTHON2_6
+@@ -232,6 +235,9 @@
+ /* Define if Python 2.7 is being used. */
+ #undef HAVE_LIBPYTHON2_7
  
 +/* Define if librpm library is being used. */
 +#undef HAVE_LIBRPM
@@ -705,29 +705,29 @@ Index: gdb-7.0.50.20100115/gdb/config.in
  /* Define if libunwind library is being used. */
  #undef HAVE_LIBUNWIND
  
-Index: gdb-7.0.50.20100115/gdb/configure
+Index: gdb-7.1.90.20100711/gdb/configure
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/configure	2010-01-15 03:22:31.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/configure	2010-01-15 11:45:20.000000000 +0100
-@@ -676,6 +676,9 @@ REPORT_BUGS_TO
+--- gdb-7.1.90.20100711.orig/gdb/configure	2010-07-07 19:36:39.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/configure	2010-07-12 11:38:15.000000000 +0200
+@@ -679,6 +679,9 @@ REPORT_BUGS_TO
  PKGVERSION
  TARGET_OBS
  subdirs
 +RPM_LIBS
 +RPM_CFLAGS
 +PKG_CONFIG
- pythondir
- GDB_DATADIR_PATH
  GDB_DATADIR
-@@ -888,6 +891,7 @@ with_separate_debug_dir
+ DEBUGDIR
+ am__fastdepCC_FALSE
+@@ -945,6 +948,7 @@ enable_dependency_tracking
+ with_separate_debug_dir
  with_gdb_datadir
  with_relocated_sources
- with_pythondir
 +with_rpm
  enable_targets
  enable_64_bit_bfd
  enable_gdbcli
-@@ -928,6 +932,9 @@ LDFLAGS
+@@ -985,6 +989,9 @@ LDFLAGS
  LIBS
  CPPFLAGS
  CPP
@@ -737,16 +737,16 @@ Index: gdb-7.0.50.20100115/gdb/configure
  YACC
  YFLAGS
  XMKMF'
-@@ -1593,6 +1600,8 @@ Optional Packages:
+@@ -1646,6 +1653,8 @@ Optional Packages:
                            [DATADIR/gdb]
-   --with-pythondir        install Python data files in this path
-                           [DATADIR/gdb/python]
+   --with-relocated-sources=PATH
+                           automatically relocate this path for source files
 +  --with-rpm              query rpm database for missing debuginfos (yes/no,
 +                          def. auto=librpm.so)
    --with-libunwind        use libunwind frame unwinding support
    --with-curses           use the curses library instead of the termcap
                            library
-@@ -1627,6 +1636,9 @@ Some influential environment variables:
+@@ -1681,6 +1690,9 @@ Some influential environment variables:
    CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                you have headers in a nonstandard directory <include dir>
    CPP         C preprocessor
@@ -756,7 +756,7 @@ Index: gdb-7.0.50.20100115/gdb/configure
    YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                the first program found out of: `bison -y', `byacc', `yacc'.
    YFLAGS      The list of arguments that will be passed by default to $YACC.
-@@ -6760,6 +6772,486 @@ else
+@@ -7878,6 +7890,486 @@ _ACEOF
  fi
  
  
@@ -1242,290 +1242,14 @@ Index: gdb-7.0.50.20100115/gdb/configure
 +
  
  
- 
-@@ -10043,265 +10535,25 @@ $as_echo "#define STDC_HEADERS 1" >>conf
- 
- fi
- 
--
--
- for ac_header in sys/user32.h sys/procfs32.h
--do
--as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
--  echo "$as_me:$LINENO: checking for $ac_header" >&5
--echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--fi
--echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
--echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
--else
--  # Is the header compilable?
--echo "$as_me:$LINENO: checking $ac_header usability" >&5
--echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--$ac_includes_default
--#include <$ac_header>
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--	 { ac_try='test -z "$ac_c_werror_flag"
--			 || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--	 { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_header_compiler=yes
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_header_compiler=no
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
--echo "${ECHO_T}$ac_header_compiler" >&6
--
--# Is the header present?
--echo "$as_me:$LINENO: checking $ac_header presence" >&5
--echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--#include <$ac_header>
--_ACEOF
--if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
--  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } >/dev/null; then
--  if test -s conftest.err; then
--    ac_cpp_err=$ac_c_preproc_warn_flag
--    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
--  else
--    ac_cpp_err=
--  fi
--else
--  ac_cpp_err=yes
--fi
--if test -z "$ac_cpp_err"; then
--  ac_header_preproc=yes
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--  ac_header_preproc=no
--fi
--rm -f conftest.err conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
--echo "${ECHO_T}$ac_header_preproc" >&6
--
--# So?  What about this header?
--case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
--  yes:no: )
--    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
--echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
--echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
--    ac_header_preproc=yes
--    ;;
--  no:yes:* )
--    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
--echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
--echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
--echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
--echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
--echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
--    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
--echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
--    (
--      cat <<\_ASBOX
--## ------------------------------------------ ##
--## Report this to the AC_PACKAGE_NAME lists.  ##
--## ------------------------------------------ ##
--_ASBOX
--    ) |
--      sed "s/^/$as_me: WARNING:     /" >&2
--    ;;
--esac
--echo "$as_me:$LINENO: checking for $ac_header" >&5
--echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  eval "$as_ac_Header=\$ac_header_preproc"
--fi
--echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
--echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
--
--fi
--if test `eval echo '${'$as_ac_Header'}'` = yes; then
-+do :
-+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-+eval as_val=\$$as_ac_Header
-+   if test "x$as_val" = x""yes; then :
-   cat >>confdefs.h <<_ACEOF
--#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- 
- fi
- 
- done
- 
--echo "$as_me:$LINENO: checking for struct elf_prstatus32.pr_reg" >&5
--echo $ECHO_N "checking for struct elf_prstatus32.pr_reg... $ECHO_C" >&6
--if test "${ac_cv_member_struct_elf_prstatus32_pr_reg+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--#include <sys/procfs.h>
--
--int
--main ()
--{
--static struct elf_prstatus32 ac_aggr;
--if (ac_aggr.pr_reg)
--return 0;
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--	 { ac_try='test -z "$ac_c_werror_flag"
--			 || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--	 { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_cv_member_struct_elf_prstatus32_pr_reg=yes
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--#include <sys/procfs.h>
--
--int
--main ()
--{
--static struct elf_prstatus32 ac_aggr;
--if (sizeof ac_aggr.pr_reg)
--return 0;
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--	 { ac_try='test -z "$ac_c_werror_flag"
--			 || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--	 { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_cv_member_struct_elf_prstatus32_pr_reg=yes
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_cv_member_struct_elf_prstatus32_pr_reg=no
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--fi
--echo "$as_me:$LINENO: result: $ac_cv_member_struct_elf_prstatus32_pr_reg" >&5
--echo "${ECHO_T}$ac_cv_member_struct_elf_prstatus32_pr_reg" >&6
--if test $ac_cv_member_struct_elf_prstatus32_pr_reg = yes; then
-+ac_fn_c_check_member "$LINENO" "struct elf_prstatus32" "pr_reg" "ac_cv_member_struct_elf_prstatus32_pr_reg" "#include <sys/procfs.h>
-+"
-+if test "x$ac_cv_member_struct_elf_prstatus32_pr_reg" = x""yes; then :
- 
--cat >>confdefs.h <<\_ACEOF
--#define HAVE_ELF_PRSTATUS32 1
--_ACEOF
-+$as_echo "#define HAVE_ELF_PRSTATUS32 1" >>confdefs.h
- 
- fi
- 
-Index: gdb-7.0.50.20100115/gdb/configure.ac
+ subdirs="$subdirs doc testsuite"
+Index: gdb-7.1.90.20100711/gdb/configure.ac
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/configure.ac	2010-01-15 03:22:31.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/configure.ac	2010-01-15 11:45:20.000000000 +0100
-@@ -152,6 +152,199 @@ else
- fi
- AC_SUBST(pythondir)
+--- gdb-7.1.90.20100711.orig/gdb/configure.ac	2010-07-07 19:36:39.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/configure.ac	2010-07-12 11:38:02.000000000 +0200
+@@ -108,6 +108,199 @@ AS_HELP_STRING([--with-relocated-sources
+               [Relocated directory for source files. ])
+ ])
  
 +# Integration with rpm library to support missing debuginfo suggestions.
 +# --without-rpm: Disable any rpm support.
@@ -1720,13 +1444,13 @@ Index: gdb-7.0.50.20100115/gdb/configure
 +  fi
 +fi
 +
- 
  AC_CONFIG_SUBDIRS(doc testsuite)
  
-Index: gdb-7.0.50.20100115/gdb/acinclude.m4
+ # Check whether to support alternative target configurations
+Index: gdb-7.1.90.20100711/gdb/acinclude.m4
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/acinclude.m4	2010-01-08 08:16:43.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/acinclude.m4	2010-01-15 11:45:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/acinclude.m4	2010-05-27 05:40:45.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/acinclude.m4	2010-07-12 11:37:04.000000000 +0200
 @@ -1,3 +1,5 @@
 +# serial 1
 +

gdb-6.6-buildid-locate.patch:
 corelow.c                    |   62 ++++
 doc/gdb.texinfo              |   21 +
 elfread.c                    |  624 +++++++++++++++++++++++++++++++++++++++++--
 objfiles.h                   |    4 
 solib-svr4.c                 |   46 ++-
 symfile.h                    |    7 
 testsuite/lib/gdb.exp        |   10 
 testsuite/lib/mi-support.exp |   10 
 8 files changed, 766 insertions(+), 18 deletions(-)

Index: gdb-6.6-buildid-locate.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-buildid-locate.patch,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -r1.29 -r1.30
--- gdb-6.6-buildid-locate.patch	16 Jan 2010 22:32:06 -0000	1.29
+++ gdb-6.6-buildid-locate.patch	21 Jul 2010 21:30:14 -0000	1.30
@@ -1,19 +1,18 @@
-Index: gdb-7.0.50.20100115/gdb/corelow.c
+Index: gdb-7.1.90.20100711/gdb/corelow.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/corelow.c	2010-01-04 15:57:43.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/corelow.c	2010-01-15 11:14:05.000000000 +0100
-@@ -46,6 +46,10 @@
- #include "solib.h"
+--- gdb-7.1.90.20100711.orig/gdb/corelow.c	2010-05-14 01:53:32.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/corelow.c	2010-07-12 11:07:33.000000000 +0200
+@@ -47,6 +47,9 @@
  #include "filenames.h"
  #include "progspace.h"
+ #include "objfiles.h"
 +#include "auxv.h"
 +#include "elf/common.h"
-+#include "objfiles.h"
 +#include "gdbcmd.h"
  
  
  #ifndef O_LARGEFILE
-@@ -290,6 +294,52 @@ add_to_thread_list (bfd *abfd, asection 
+@@ -289,6 +292,52 @@ add_to_thread_list (bfd *abfd, asection 
      inferior_ptid = ptid;			 /* Yes, make it current */
  }
  
@@ -66,7 +65,7 @@ Index: gdb-7.0.50.20100115/gdb/corelow.c
  /* This routine opens and sets up the core file bfd.  */
  
  static void
-@@ -387,6 +437,12 @@ core_open (char *filename, int from_tty)
+@@ -386,6 +435,12 @@ core_open (char *filename, int from_tty)
    push_target (&core_ops);
    discard_cleanups (old_chain);
  
@@ -79,7 +78,7 @@ Index: gdb-7.0.50.20100115/gdb/corelow.c
    /* Do this before acknowledging the inferior, so if
       post_create_inferior throws (can happen easilly if you're loading
       a core file with the wrong exec), we aren't left with threads
-@@ -925,4 +981,11 @@ _initialize_corelow (void)
+@@ -924,4 +979,11 @@ _initialize_corelow (void)
    init_core_ops ();
  
    add_target (&core_ops);
@@ -91,11 +90,11 @@ Index: gdb-7.0.50.20100115/gdb/corelow.c
 +			   NULL, NULL, NULL,
 +			   &setlist, &showlist);
  }
-Index: gdb-7.0.50.20100115/gdb/doc/gdb.texinfo
+Index: gdb-7.1.90.20100711/gdb/doc/gdb.texinfo
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/doc/gdb.texinfo	2010-01-15 03:23:50.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/doc/gdb.texinfo	2010-01-15 11:12:33.000000000 +0100
-@@ -14258,6 +14258,27 @@ information files.
+--- gdb-7.1.90.20100711.orig/gdb/doc/gdb.texinfo	2010-07-12 10:59:30.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/doc/gdb.texinfo	2010-07-12 11:05:57.000000000 +0200
+@@ -14980,6 +14980,27 @@ information files.
  
  @end table
  
@@ -123,11 +122,11 @@ Index: gdb-7.0.50.20100115/gdb/doc/gdb.t
  @cindex @code{.gnu_debuglink} sections
  @cindex debug link sections
  A debug link is a special section of the executable file named
-Index: gdb-7.0.50.20100115/gdb/solib-svr4.c
+Index: gdb-7.1.90.20100711/gdb/solib-svr4.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/solib-svr4.c	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/solib-svr4.c	2010-01-15 11:12:33.000000000 +0100
-@@ -1116,9 +1116,49 @@ svr4_current_sos (void)
+--- gdb-7.1.90.20100711.orig/gdb/solib-svr4.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/solib-svr4.c	2010-07-12 11:05:57.000000000 +0200
+@@ -1181,9 +1181,49 @@ svr4_current_sos (void)
  		     safe_strerror (errcode));
  	  else
  	    {
@@ -180,14 +179,14 @@ Index: gdb-7.0.50.20100115/gdb/solib-svr
  	    }
  	  xfree (buffer);
  
-Index: gdb-7.0.50.20100115/gdb/elfread.c
+Index: gdb-7.1.90.20100711/gdb/elfread.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/elfread.c	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/elfread.c	2010-01-15 11:43:30.000000000 +0100
-@@ -36,6 +36,10 @@
- #include "gdb-stabs.h"
- #include "complaints.h"
+--- gdb-7.1.90.20100711.orig/gdb/elfread.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/elfread.c	2010-07-12 11:30:30.000000000 +0200
+@@ -38,6 +38,10 @@
  #include "demangle.h"
+ #include "psympriv.h"
+ #include "gdbtypes.h"
 +#include "libbfd.h"
 +#include "gdbcore.h"
 +#include "gdbcmd.h"
@@ -195,10 +194,10 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
  extern void _initialize_elfread (void);
  
-@@ -567,6 +571,20 @@ elf_symtab_read (struct objfile *objfile
- 	}
-     }
+@@ -818,16 +822,65 @@ resolve_gnu_ifunc (const char *function_
+   return 0;
  }
+ 
 +/* Locate NT_GNU_BUILD_ID and return its matching debug filename.
 +   FIXME: NOTE decoding should be unified with the BFD core notes decoding.  */
 +
@@ -213,10 +212,10 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
 +  fprintf_filtered (file, _("Verbosity level of the build-id locator is %s.\n"),
 +		    value);
 +}
- 
++
  struct build_id
    {
-@@ -574,10 +592,44 @@ struct build_id
+     size_t size;
      gdb_byte data[1];
    };
  
@@ -263,7 +262,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  {
    struct build_id *retval;
  
-@@ -593,6 +645,348 @@ build_id_bfd_get (bfd *abfd)
+@@ -843,6 +896,348 @@ build_id_bfd_get (bfd *abfd)
    return retval;
  }
  
@@ -612,7 +611,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  /* Return if FILENAME has NT_GNU_BUILD_ID matching the CHECK value.  */
  
  static int
-@@ -607,7 +1001,7 @@ build_id_verify (const char *filename, s
+@@ -857,7 +1252,7 @@ build_id_verify (const char *filename, s
    if (abfd == NULL)
      return 0;
  
@@ -621,7 +620,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
    if (found == NULL)
      warning (_("File \"%s\" has no build-id, file skipped"), filename);
-@@ -626,14 +1020,16 @@ build_id_verify (const char *filename, s
+@@ -874,14 +1269,16 @@ build_id_verify (const char *filename, s
    return retval;
  }
  
@@ -642,7 +641,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
    /* Keep backward compatibility so that DEBUG_FILE_DIRECTORY being "" will
       cause "/.build-id/..." lookups.  */
-@@ -664,7 +1060,10 @@ build_id_to_debug_filename (struct build
+@@ -912,7 +1309,10 @@ build_id_to_debug_filename (struct build
  	*s++ = '/';
        while (size-- > 0)
  	s += sprintf (s, "%02x", (unsigned) *data++);
@@ -654,7 +653,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
        /* lrealpath() is expensive even for the usually non-existent files.  */
        if (access (link, F_OK) == 0)
-@@ -677,17 +1076,188 @@ build_id_to_debug_filename (struct build
+@@ -925,26 +1325,201 @@ build_id_to_debug_filename (struct build
  	}
  
        if (retval != NULL)
@@ -699,9 +698,9 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
 +  xfree (link);
 +  xfree (link_all);
 +
-   return retval;
- }
- 
++  return retval;
++}
++
 +/* This MISSING_FILEPAIR_HASH tracker is used only for the duplicite messages
 +     Try to install the hash file ...
 +   avoidance.  */
@@ -724,9 +723,9 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
 +
 +  retval = obstack_alloc (&missing_filepair_obstack, size);
 +  memset (retval, 0, size);
-+  return retval;
-+}
-+
+   return retval;
+ }
+ 
 +static hashval_t
 +missing_filepair_hash_func (const struct missing_filepair *elem)
 +{
@@ -843,10 +842,6 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
 +find_separate_debug_file_by_buildid (struct objfile *objfile,
 +				     char **build_id_filename_return)
  {
-   asection *sect;
-   char *basename, *name_copy, *debugdir;
-@@ -699,12 +1269,16 @@ find_separate_debug_file_by_buildid (str
-   int i;
    struct build_id *build_id;
  
 -  build_id = build_id_bfd_get (objfile->obfd);
@@ -864,7 +859,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
        xfree (build_id);
        /* Prevent looping on a stripped .debug file.  */
        if (build_id_name != NULL && strcmp (build_id_name, objfile->name) == 0)
-@@ -714,7 +1288,7 @@ find_separate_debug_file_by_buildid (str
+@@ -954,7 +1529,7 @@ find_separate_debug_file_by_buildid (str
  	  xfree (build_id_name);
  	}
        else if (build_id_name != NULL)
@@ -873,9 +868,9 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
      }
    return NULL;
  }
-@@ -887,9 +1461,10 @@ elf_symfile_read (struct objfile *objfil
+@@ -1131,9 +1706,10 @@ elf_symfile_read (struct objfile *objfil
       `.gnu_debuglink' may no longer be present with `.note.gnu.build-id'.  */
-   else
+   if (!objfile_has_partial_symbols (objfile))
      {
 -      char *debugfile;
 +      char *debugfile, *build_id_filename;
@@ -886,7 +881,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
  
        if (debugfile == NULL)
  	debugfile = find_separate_debug_file_by_debuglink (objfile);
-@@ -900,6 +1475,12 @@ elf_symfile_read (struct objfile *objfil
+@@ -1145,6 +1721,12 @@ elf_symfile_read (struct objfile *objfil
  	  symbol_file_add_separate (abfd, symfile_flags, objfile);
  	  xfree (debugfile);
  	}
@@ -899,7 +894,7 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
      }
  }
  
-@@ -1072,4 +1653,16 @@ void
+@@ -1304,4 +1886,16 @@ void
  _initialize_elfread (void)
  {
    add_symtab_fns (&elf_sym_fns);
@@ -916,13 +911,13 @@ Index: gdb-7.0.50.20100115/gdb/elfread.c
 +
 +  observer_attach_executable_changed (debug_print_executable_changed);
  }
-Index: gdb-7.0.50.20100115/gdb/symfile.h
+Index: gdb-7.1.90.20100711/gdb/symfile.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/symfile.h	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/symfile.h	2010-01-15 11:12:33.000000000 +0100
-@@ -392,6 +392,13 @@ extern int symfile_map_offsets_to_segmen
- struct symfile_segment_data *get_symfile_segment_data (bfd *abfd);
- void free_symfile_segment_data (struct symfile_segment_data *data);
+--- gdb-7.1.90.20100711.orig/gdb/symfile.h	2010-05-08 06:58:45.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/symfile.h	2010-07-12 11:06:18.000000000 +0200
+@@ -562,6 +562,13 @@ void free_symfile_segment_data (struct s
+ 
+ extern struct cleanup *increment_reading_symtab (void);
  
 +/* build-id support.  */
 +struct build_id;
@@ -934,11 +929,11 @@ Index: gdb-7.0.50.20100115/gdb/symfile.h
  /* From dwarf2read.c */
  
  extern int dwarf2_has_info (struct objfile *);
-Index: gdb-7.0.50.20100115/gdb/testsuite/lib/gdb.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/lib/gdb.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/lib/gdb.exp	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/lib/gdb.exp	2010-01-15 11:12:33.000000000 +0100
-@@ -1248,6 +1248,16 @@ proc default_gdb_start { } {
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/lib/gdb.exp	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/lib/gdb.exp	2010-07-12 11:05:57.000000000 +0200
+@@ -1353,6 +1353,16 @@ proc default_gdb_start { } {
  	    warning "Couldn't set the width to 0."
  	}
      }
@@ -955,10 +950,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return 0;
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/lib/mi-support.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/lib/mi-support.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/lib/mi-support.exp	2010-01-12 22:40:25.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/lib/mi-support.exp	2010-01-15 11:12:33.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/lib/mi-support.exp	2010-03-15 04:43:13.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/lib/mi-support.exp	2010-07-12 11:05:57.000000000 +0200
 @@ -221,6 +221,16 @@ proc default_mi_gdb_start { args } {
  	    }
      	}
@@ -976,13 +971,13 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
  
      detect_async
  
-Index: gdb-7.0.50.20100115/gdb/objfiles.h
+Index: gdb-7.1.90.20100711/gdb/objfiles.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/objfiles.h	2010-01-15 03:22:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/objfiles.h	2010-01-15 11:14:42.000000000 +0100
-@@ -440,6 +440,10 @@ struct objfile
+--- gdb-7.1.90.20100711.orig/gdb/objfiles.h	2010-04-14 19:26:11.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/objfiles.h	2010-07-12 11:07:08.000000000 +0200
+@@ -426,6 +426,10 @@ struct objfile
  
- #define OBJF_MAIN (1 << 7)
+ #define OBJF_USERLOADED	(1 << 3)	/* User loaded */
  
 +/* This file was loaded according to the BUILD_ID_CORE_LOADS rules.  */
 +

gdb-6.6-bz229517-gcore-without-terminal.patch:
 ./gdb/testsuite/gdb.base/gcorebg.c   |   43 +++++++++++++
 ./gdb/testsuite/gdb.base/gcorebg.exp |  113 +++++++++++++++++++++++++++++++++++
 gdb/gdb_gcore.sh                     |    4 -
 3 files changed, 159 insertions(+), 1 deletion(-)

Index: gdb-6.6-bz229517-gcore-without-terminal.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-bz229517-gcore-without-terminal.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.6-bz229517-gcore-without-terminal.patch	22 Apr 2007 13:13:52 -0000	1.1
+++ gdb-6.6-bz229517-gcore-without-terminal.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -68,7 +68,7 @@
 +}
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ ./gdb/testsuite/gdb.base/gcorebg.exp	25 Feb 2007 12:21:20 -0000
-@@ -0,0 +1,120 @@
+@@ -0,0 +1,113 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -93,13 +93,6 @@
 +# It also tests a regression with `gdb_gcore.sh' being run without its
 +# accessible terminal.
 +
-+if $tracelevel then {
-+	strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +if ![info exists GCORE] {
 +    set GCORE "${srcdir}/../gdb_gcore.sh"
 +}

gdb-6.6-bz235197-fork-detach-info.patch:
 linux-nat.c                        |    2 -
 testsuite/gdb.base/fork-detach.c   |   57 +++++++++++++++++++++++++++++++++++++
 testsuite/gdb.base/fork-detach.exp |   36 +++++++++++++++++++++++
 3 files changed, 94 insertions(+), 1 deletion(-)

Index: gdb-6.6-bz235197-fork-detach-info.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-bz235197-fork-detach-info.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.6-bz235197-fork-detach-info.patch	16 Jan 2010 22:32:06 -0000	1.3
+++ gdb-6.6-bz235197-fork-detach-info.patch	21 Jul 2010 21:30:14 -0000	1.4
@@ -82,7 +82,7 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.0.50.20100115/gdb/testsuite/gdb.base/fork-detach.exp	2010-01-15 03:22:52.000000000 +0100
-@@ -0,0 +1,43 @@
+@@ -0,0 +1,36 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -99,13 +99,6 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile fork-detach
 +set srcfile ${testfile}.c
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.6-scheduler_locking-step-is-default.patch:
 infrun.c                         |    2 +-
 testsuite/gdb.mi/mi-cli.exp      |    2 +-
 testsuite/gdb.mi/mi-console.exp  |    3 +++
 testsuite/gdb.mi/mi2-console.exp |    3 +++
 4 files changed, 8 insertions(+), 2 deletions(-)

Index: gdb-6.6-scheduler_locking-step-is-default.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-scheduler_locking-step-is-default.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-6.6-scheduler_locking-step-is-default.patch	12 Aug 2009 14:36:09 -0000	1.3
+++ gdb-6.6-scheduler_locking-step-is-default.patch	21 Jul 2010 21:30:14 -0000	1.4
@@ -1,8 +1,8 @@
-Index: gdb-6.8.50.20090811/gdb/infrun.c
+Index: gdb-7.1.90.20100711/gdb/infrun.c
 ===================================================================
---- gdb-6.8.50.20090811.orig/gdb/infrun.c	2009-08-12 06:56:29.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/infrun.c	2009-08-12 07:13:08.000000000 +0200
-@@ -1075,7 +1075,7 @@ static const char *scheduler_enums[] = {
+--- gdb-7.1.90.20100711.orig/gdb/infrun.c	2010-07-12 10:05:26.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/infrun.c	2010-07-12 10:58:56.000000000 +0200
+@@ -1491,7 +1491,7 @@ static const char *scheduler_enums[] = {
    schedlock_step,
    NULL
  };
@@ -11,10 +11,10 @@ Index: gdb-6.8.50.20090811/gdb/infrun.c
  static void
  show_scheduler_mode (struct ui_file *file, int from_tty,
  		     struct cmd_list_element *c, const char *value)
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi-console.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-console.exp
 ===================================================================
---- gdb-6.8.50.20090811.orig/gdb/testsuite/gdb.mi/mi-console.exp	2009-08-12 06:56:29.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi-console.exp	2009-08-12 06:58:45.000000000 +0200
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi-console.exp	2010-01-01 08:32:03.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-console.exp	2010-07-12 10:58:56.000000000 +0200
 @@ -47,6 +47,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
  
  mi_run_to_main
@@ -25,10 +25,10 @@ Index: gdb-6.8.50.20090811/gdb/testsuite
  # Next over the hello() call which will produce lots of output
  mi_gdb_test "220-exec-next" \
  	    "220\\^running(\r\n\\*running,thread-id=\"all\")?" \
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi2-console.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi2-console.exp
 ===================================================================
---- gdb-6.8.50.20090811.orig/gdb/testsuite/gdb.mi/mi2-console.exp	2009-08-12 06:56:29.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi2-console.exp	2009-08-12 06:58:45.000000000 +0200
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi2-console.exp	2010-05-26 20:12:13.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi2-console.exp	2010-07-12 10:59:14.000000000 +0200
 @@ -47,6 +47,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
  
  mi_run_to_main
@@ -37,13 +37,13 @@ Index: gdb-6.8.50.20090811/gdb/testsuite
 +mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
 +
  # Next over the hello() call which will produce lots of output
- send_gdb "220-exec-next\n"
- gdb_expect {
-Index: gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi-cli.exp
+ gdb_test_multiple "220-exec-next" "Started step over hello" {
+     -re "220\\^running\r\n(\\*running,thread-id=\"all\"\r\n)?$mi_gdb_prompt" {
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-cli.exp
 ===================================================================
---- gdb-6.8.50.20090811.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2009-06-09 19:12:42.000000000 +0200
-+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.mi/mi-cli.exp	2009-08-12 07:13:32.000000000 +0200
-@@ -173,7 +173,7 @@ mi_execute_to "exec-continue" "breakpoin
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2010-01-19 09:00:39.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-cli.exp	2010-07-12 10:58:56.000000000 +0200
+@@ -176,7 +176,7 @@ mi_execute_to "exec-continue" "breakpoin
  # Test that the token is output even for CLI commands
  # Also test that *stopped includes frame information.
  mi_gdb_test "34 next" \

gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch:
 inferior.h  |   10 +++++++++-
 infrun.c    |   51 ++++++++++++++++++++++++++++++++-------------------
 linux-nat.c |    5 ++++-
 linux-nat.h |    4 ++--
 4 files changed, 47 insertions(+), 23 deletions(-)

Index: gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch	16 Jan 2010 22:32:06 -0000	1.7
+++ gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch	21 Jul 2010 21:30:14 -0000	1.8
@@ -21,11 +21,11 @@
 
 	Port to GDB-6.8pre.
 
-Index: gdb-7.0.50.20100115/gdb/inferior.h
+Index: gdb-7.1.90.20100711/gdb/inferior.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/inferior.h	2010-01-15 03:16:43.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/inferior.h	2010-01-15 03:17:07.000000000 +0100
-@@ -188,7 +188,15 @@ extern void reopen_exec_file (void);
+--- gdb-7.1.90.20100711.orig/gdb/inferior.h	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/inferior.h	2010-07-12 10:04:25.000000000 +0200
+@@ -198,7 +198,15 @@ extern void reopen_exec_file (void);
  /* The `resume' routine should only be called in special circumstances.
     Normally, use `proceed', which handles a lot of bookkeeping.  */
  
@@ -42,11 +42,11 @@ Index: gdb-7.0.50.20100115/gdb/inferior.
  
  /* From misc files */
  
-Index: gdb-7.0.50.20100115/gdb/infrun.c
+Index: gdb-7.1.90.20100711/gdb/infrun.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/infrun.c	2010-01-15 03:16:43.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/infrun.c	2010-01-15 03:17:32.000000000 +0100
-@@ -77,7 +77,7 @@ static int follow_fork (void);
+--- gdb-7.1.90.20100711.orig/gdb/infrun.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/infrun.c	2010-07-12 10:05:26.000000000 +0200
+@@ -76,7 +76,7 @@ static int follow_fork (void);
  static void set_schedlock_func (char *args, int from_tty,
  				struct cmd_list_element *c);
  
@@ -55,7 +55,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  
  static int currently_stepping_or_nexting_callback (struct thread_info *tp,
  						   void *data);
-@@ -1363,7 +1363,7 @@ maybe_software_singlestep (struct gdbarc
+@@ -1549,7 +1549,7 @@ maybe_software_singlestep (struct gdbarc
     STEP nonzero if we should step (zero to continue instead).
     SIG is the signal to give the inferior (zero for none).  */
  void
@@ -64,7 +64,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  {
    int should_resume = 1;
    struct cleanup *old_cleanups = make_cleanup (resume_cleanups, 0);
-@@ -1376,10 +1376,12 @@ resume (int step, enum target_signal sig
+@@ -1562,10 +1562,12 @@ resume (int step, enum target_signal sig
    QUIT;
  
    if (debug_infrun)
@@ -79,9 +79,9 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
 +			                            : "RESUME_STEP_NEEDED")),
 +			sig, tp->trap_expected);
  
-   /* Some targets (e.g. Solaris x86) have a kernel bug when stepping
-      over an instruction that causes a page fault without triggering
-@@ -1501,9 +1503,10 @@ a command like `return' or `jump' to con
+   /* Normally, by the time we reach `resume', the breakpoints are either
+      removed or inserted, as appropriate.  The exception is if we're sitting
+@@ -1678,9 +1680,10 @@ a command like `return' or `jump' to con
  	     individually.  */
  	  resume_ptid = inferior_ptid;
  	}
@@ -94,7 +94,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  	{
  	  /* User-settable 'scheduler' mode requires solo thread resume. */
  	  resume_ptid = inferior_ptid;
-@@ -1709,7 +1712,7 @@ proceed (CORE_ADDR addr, enum target_sig
+@@ -1889,7 +1892,7 @@ proceed (CORE_ADDR addr, enum target_sig
    struct thread_info *tp;
    CORE_ADDR pc;
    struct address_space *aspace;
@@ -103,7 +103,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  
    /* If we're stopped at a fork/vfork, follow the branch set by the
       "set follow-fork-mode" command; otherwise, we'll just proceed
-@@ -1744,13 +1747,13 @@ proceed (CORE_ADDR addr, enum target_sig
+@@ -1924,13 +1927,13 @@ proceed (CORE_ADDR addr, enum target_sig
  	   actually be executing the breakpoint insn anyway.
  	   We'll be (un-)executing the previous instruction.  */
  
@@ -119,7 +119,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
      }
    else
      {
-@@ -1781,13 +1784,13 @@ proceed (CORE_ADDR addr, enum target_sig
+@@ -1971,13 +1974,13 @@ proceed (CORE_ADDR addr, enum target_sig
  	 is required it returns TRUE and sets the current thread to
  	 the old thread. */
        if (prepare_to_proceed (step))
@@ -135,7 +135,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
      {
        tp->trap_expected = 1;
        /* If displaced stepping is enabled, we can step over the
-@@ -1873,8 +1876,13 @@ proceed (CORE_ADDR addr, enum target_sig
+@@ -2064,8 +2067,13 @@ proceed (CORE_ADDR addr, enum target_sig
    /* Reset to normal state.  */
    init_infwait_state ();
  
@@ -150,7 +150,7 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  
    /* Wait for it to stop (if not standalone)
       and in any case decode why it stopped, and act accordingly.  */
-@@ -4655,13 +4663,18 @@ infrun: not switching back to stepped th
+@@ -4903,13 +4911,18 @@ infrun: not switching back to stepped th
  
  /* Is thread TP in the middle of single-stepping?  */
  
@@ -174,11 +174,11 @@ Index: gdb-7.0.50.20100115/gdb/infrun.c
  }
  
  /* Returns true if any thread *but* the one passed in "data" is in the
-Index: gdb-7.0.50.20100115/gdb/linux-nat.c
+Index: gdb-7.1.90.20100711/gdb/linux-nat.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/linux-nat.c	2010-01-15 03:16:43.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/linux-nat.c	2010-01-15 03:17:07.000000000 +0100
-@@ -2883,7 +2883,10 @@ count_events_callback (struct lwp_info *
+--- gdb-7.1.90.20100711.orig/gdb/linux-nat.c	2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/linux-nat.c	2010-07-12 10:04:25.000000000 +0200
+@@ -2827,7 +2827,10 @@ count_events_callback (struct lwp_info *
  static int
  select_singlestep_lwp_callback (struct lwp_info *lp, void *data)
  {
@@ -190,10 +190,10 @@ Index: gdb-7.0.50.20100115/gdb/linux-nat
      return 1;
    else
      return 0;
-Index: gdb-7.0.50.20100115/gdb/linux-nat.h
+Index: gdb-7.1.90.20100711/gdb/linux-nat.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/linux-nat.h	2010-01-12 22:40:24.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/linux-nat.h	2010-01-15 03:17:07.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/linux-nat.h	2010-06-11 14:10:12.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/linux-nat.h	2010-07-12 10:04:25.000000000 +0200
 @@ -55,8 +55,8 @@ struct lwp_info
    /* If non-zero, a pending wait status.  */
    int status;

gdb-6.6-threads-static-test.patch:
 staticthreads.exp |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: gdb-6.6-threads-static-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.6-threads-static-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.6-threads-static-test.patch	12 Jan 2008 16:16:46 -0000	1.1
+++ gdb-6.6-threads-static-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -1,10 +1,11 @@
---- gdb-6.6/gdb/testsuite/gdb.threads/staticthreads.exp-orig	2005-04-30 21:56:47.000000000 +0200
-+++ gdb-6.6/gdb/testsuite/gdb.threads/staticthreads.exp	2008-01-11 14:30:15.000000000 +0100
-@@ -44,9 +44,21 @@ gdb_load ${binfile}
- gdb_test "set print sevenbit-strings" ""
- 
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.threads/staticthreads.exp
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.threads/staticthreads.exp	2010-06-02 23:53:28.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.threads/staticthreads.exp	2010-07-12 11:43:26.000000000 +0200
+@@ -44,6 +44,18 @@ gdb_test_no_output "set print sevenbit-s
+ # See if the static multi-threaded program runs.
  
-+runto_main
+ runto_main
 +
 +# See if we get excessive LWP there (patched glibc with unpatched GDB):
 +# * 2 Thread 135661664 (LWP 3856)  main () at threadloop.c:41
@@ -17,9 +18,6 @@
 +    }
 +}
 +
- # See if the static multi-threaded program runs.
- 
--runto_main
  gdb_test "break sem_post"
  set test "Continue to main's call of sem_post"
  gdb_test_multiple "continue" "$test" {

gdb-6.7-bz426600-DW_TAG_interface_type-test.patch:
 i386-interface.S   |  628 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 i386-interface.exp |   59 ++++
 2 files changed, 687 insertions(+)

Index: gdb-6.7-bz426600-DW_TAG_interface_type-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.7-bz426600-DW_TAG_interface_type-test.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-6.7-bz426600-DW_TAG_interface_type-test.patch	3 Mar 2008 16:13:47 -0000	1.2
+++ gdb-6.7-bz426600-DW_TAG_interface_type-test.patch	21 Jul 2010 21:30:14 -0000	1.3
@@ -641,7 +641,7 @@ http://sourceware.org/ml/gdb-patches/200
 +	.section	.note.GNU-stack,"", at progbits
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ ./gdb/testsuite/gdb.arch/i386-interface.exp	22 Dec 2007 19:07:28 -0000
-@@ -0,0 +1,66 @@
+@@ -0,0 +1,59 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -665,13 +665,6 @@ http://sourceware.org/ml/gdb-patches/200
 +# Test basis recognization of DW_TAG_interface_type.
 +# GCC java_classify_record() produces it if returns RECORD_IS_INTERFACE.
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +if {![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]} then {
 +    verbose "Skipping i386 Java DW_TAG_interface_type test."
 +    return

gdb-6.7-charsign-test.patch:
 charsign.c   |   37 ++++++++++++++++++++++++++++++++++
 charsign.exp |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Index: gdb-6.7-charsign-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.7-charsign-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.7-charsign-test.patch	1 Nov 2007 20:24:20 -0000	1.1
+++ gdb-6.7-charsign-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -52,7 +52,7 @@ https://bugzilla.redhat.com/bugzilla/sho
 +char_u u_typed[]="A";
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ ./gdb/testsuite/gdb.base/charsign.exp	26 Jan 2007 10:32:00 -0000
-@@ -0,0 +1,70 @@
+@@ -0,0 +1,63 @@
 +# Copyright 2007 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -69,13 +69,6 @@ https://bugzilla.redhat.com/bugzilla/sho
 +# 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
-+}
-+
-+set prms_id 0
-+set bug_id 0
-+
 +set testfile charsign
 +set srcfile ${testfile}.c
 +set binfile ${objdir}/${subdir}/${testfile}

gdb-6.7-ppc-clobbered-registers-O2-test.patch:
 ppc-clobbered-registers-O2.c   |   21 +++++++++++++++
 ppc-clobbered-registers-O2.exp |   54 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Index: gdb-6.7-ppc-clobbered-registers-O2-test.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.7-ppc-clobbered-registers-O2-test.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-6.7-ppc-clobbered-registers-O2-test.patch	4 Nov 2007 17:55:57 -0000	1.1
+++ gdb-6.7-ppc-clobbered-registers-O2-test.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -39,7 +39,7 @@ http://sourceware.org/ml/gdb-patches/200
 +}
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ ./gdb/testsuite/gdb.arch/ppc-clobbered-registers-O2.exp	3 Nov 2007 22:22:28 -0000
-@@ -0,0 +1,61 @@
+@@ -0,0 +1,54 @@
 +# Copyright 2006 Free Software Foundation, Inc.
 +#
 +# This program is free software; you can redistribute it and/or modify
@@ -58,16 +58,9 @@ http://sourceware.org/ml/gdb-patches/200
 +#
 +# This file is part of the gdb testsuite.
 +
-+if $tracelevel {
-+    strace $tracelevel
-+}
-+
 +# Test displaying call clobbered registers in optimized binaries for ppc.
 +# GDB should not show incorrect values.
 +
-+set prms_id 0
-+set bug_id 0
-+
 +if ![istarget "powerpc*-*"] then {
 +    verbose "Skipping powerpc* call clobbered registers testing."
 +    return

gdb-6.7-testsuite-stable-results.patch:
 fileio.c   |   33 +++++++++++++++++++++++++++++++++
 fileio.exp |   10 +++++-----
 2 files changed, 38 insertions(+), 5 deletions(-)

Index: gdb-6.7-testsuite-stable-results.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.7-testsuite-stable-results.patch,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- gdb-6.7-testsuite-stable-results.patch	21 Jan 2010 16:09:09 -0000	1.10
+++ gdb-6.7-testsuite-stable-results.patch	21 Jul 2010 21:30:14 -0000	1.11
@@ -20,8 +20,10 @@ random FAIL: gdb.base/auxv.exp: matching
 gdb-6.8.50.20090209/gdb/testsuite/gdb.base/annota1.exp:
 frames-invalid can happen asynchronously.
 
---- ./gdb/testsuite/gdb.base/fileio.c	13 Jun 2006 08:55:22 -0000	1.10
-+++ ./gdb/testsuite/gdb.base/fileio.c	8 Dec 2007 16:04:10 -0000
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/fileio.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/fileio.c	2009-10-01 17:39:13.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/fileio.c	2010-07-12 11:41:43.000000000 +0200
 @@ -58,6 +58,8 @@ system (const char * string);
  1) Invalid string/command. -  returns 127.  */
  static const char *strerrno (int err);
@@ -69,9 +71,11 @@ frames-invalid can happen asynchronously
    /* Don't change the order of the calls.  They partly depend on each other */
    test_open ();
    test_write ();
---- ./gdb/testsuite/gdb.base/fileio.exp	23 Aug 2007 18:14:16 -0000	1.12
-+++ ./gdb/testsuite/gdb.base/fileio.exp	8 Dec 2007 16:04:10 -0000
-@@ -46,8 +46,8 @@ if [get_compiler_info ${binfile}] {
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/fileio.exp
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/fileio.exp	2010-06-09 00:58:03.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/fileio.exp	2010-07-12 11:42:07.000000000 +0200
+@@ -42,8 +42,8 @@ if [get_compiler_info ${binfile}] {
      return -1;
  }
  
@@ -82,16 +86,16 @@ frames-invalid can happen asynchronously
  
  set oldtimeout $timeout
  set timeout [expr "$timeout + 60"]
-@@ -88,7 +88,7 @@ gdb_test continue \
- "Opening nonexistant file returns ENOENT"
+@@ -85,7 +85,7 @@ gdb_test continue \
+ 
+ gdb_test "continue" ".*" ""
  
- send_gdb "continue\n" ; gdb_expect -re "$gdb_prompt $"
 -catch "system \"chmod -f -w nowrt.fileio.test\""
 +catch "system \"chmod -f -w fileio.dir/nowrt.fileio.test\""
  
  gdb_test continue \
  "Continuing\\..*open 5:.*EACCES$stop_msg" \
-@@ -252,8 +252,8 @@ gdb_test continue \
+@@ -250,8 +250,8 @@ gdb_test continue \
  send_gdb "quit\n"
  send_gdb "y\n"
  

gdb-6.8-bz254229-gcore-prpsinfo.patch:
 bfd/elf-bfd.h   |    3 -
 bfd/elf.c       |   50 ++++++++++---------
 gdb/linux-nat.c |  146 +++++++++++++++++++++++++++++++++++++++++++++++++-------
 gdb/procfs.c    |    1 
 4 files changed, 159 insertions(+), 41 deletions(-)

Index: gdb-6.8-bz254229-gcore-prpsinfo.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.8-bz254229-gcore-prpsinfo.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- gdb-6.8-bz254229-gcore-prpsinfo.patch	11 Jul 2010 18:06:30 -0000	1.7
+++ gdb-6.8-bz254229-gcore-prpsinfo.patch	21 Jul 2010 21:30:14 -0000	1.8
@@ -1,146 +1,118 @@
-Index: gdb-7.1/bfd/elf-bfd.h
+Index: gdb-7.1.90.20100711/bfd/elf-bfd.h
 ===================================================================
---- gdb-7.1.orig/bfd/elf-bfd.h	2010-02-09 13:14:42.000000000 +0100
-+++ gdb-7.1/bfd/elf-bfd.h	2010-05-16 20:22:38.000000000 +0200
-@@ -2160,7 +2160,7 @@ extern Elf_Internal_Phdr * _bfd_elf_find
+--- gdb-7.1.90.20100711.orig/bfd/elf-bfd.h	2010-06-27 06:07:51.000000000 +0200
++++ gdb-7.1.90.20100711/bfd/elf-bfd.h	2010-07-12 23:00:04.000000000 +0200
+@@ -2171,8 +2171,9 @@ extern Elf_Internal_Phdr * _bfd_elf_find
+ /* Exported interface for writing elf corefile notes. */
  extern char *elfcore_write_note
    (bfd *, char *, int *, const char *, int, const void *, int);
++#include <sys/procfs.h>
  extern char *elfcore_write_prpsinfo
 -  (bfd *, char *, int *, const char *, const char *);
-+  (bfd *, char *, int *, void *, const char *, const char *);
++  (bfd *, char *, int *, const prpsinfo_t *);
  extern char *elfcore_write_prstatus
    (bfd *, char *, int *, long, int, const void *);
  extern char * elfcore_write_pstatus
-Index: gdb-7.1/bfd/elf.c
+Index: gdb-7.1.90.20100711/bfd/elf.c
 ===================================================================
---- gdb-7.1.orig/bfd/elf.c	2010-02-18 01:09:06.000000000 +0100
-+++ gdb-7.1/bfd/elf.c	2010-05-16 20:25:15.000000000 +0200
-@@ -8545,6 +8545,7 @@ char *
+--- gdb-7.1.90.20100711.orig/bfd/elf.c	2010-05-18 05:31:05.000000000 +0200
++++ gdb-7.1.90.20100711/bfd/elf.c	2010-07-12 22:51:17.000000000 +0200
+@@ -8582,13 +8582,12 @@ elfcore_write_note (bfd *abfd,
+   return buf;
+ }
+ 
+-#if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T)
++#if defined (HAVE_PRPSINFO_T)
+ char *
  elfcore_write_prpsinfo (bfd  *abfd,
  			char *buf,
  			int  *bufsiz,
-+			void *info,
- 			const char *fname,
- 			const char *psargs)
+-			const char *fname,
+-			const char *psargs)
++			const prpsinfo_t *input)
  {
-@@ -8571,26 +8572,40 @@ elfcore_write_prpsinfo (bfd  *abfd,
+   const char *note_name = "CORE";
+   const struct elf_backend_data *bed = get_elf_backend_data (abfd);
+@@ -8596,48 +8595,55 @@ elfcore_write_prpsinfo (bfd  *abfd,
+   if (bed->elf_backend_write_core_note != NULL)
+     {
+       char *ret;
++      char fname[sizeof (input->pr_fname) + 1];
++      char psargs[sizeof (input->pr_psargs) + 1];
++
++      strncpy (fname, input->pr_fname, sizeof (input->pr_fname));
++      fname[sizeof (input->pr_fname)] = 0;
++      strncpy (psargs, input->pr_psargs, sizeof (input->pr_psargs));
++      psargs[sizeof (input->pr_psargs)] = 0;
++
+       ret = (*bed->elf_backend_write_core_note) (abfd, buf, bufsiz,
+ 						 NT_PRPSINFO, fname, psargs);
+       if (ret != NULL)
+ 	return ret;
+     }
+ 
+-#if defined (HAVE_PRPSINFO32_T) || defined (HAVE_PSINFO32_T)
++#if defined (HAVE_PRPSINFO32_T)
+   if (bed->s->elfclass == ELFCLASS32)
+     {
+-#if defined (HAVE_PSINFO32_T)
+-      psinfo32_t data;
+-      int note_type = NT_PSINFO;
+-#else
+       prpsinfo32_t data;
        int note_type = NT_PRPSINFO;
- #endif
+-#endif
  
--      memset (&data, 0, sizeof (data));
+       memset (&data, 0, sizeof (data));
 -      strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
 -      strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+      if (info)
-+	memcpy (&data, info, sizeof (data));
-+      else
-+	{
-+	  memset (&data, 0, sizeof (data));
-+	  strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
-+	  strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+	}
-+
++      data.pr_state = input->pr_state;
++      data.pr_sname = input->pr_sname;
++      data.pr_zomb = input->pr_zomb;
++      data.pr_nice = input->pr_nice;
++      data.pr_flag = input->pr_flag;
++      data.pr_uid = input->pr_uid;
++      data.pr_gid = input->pr_gid;
++      data.pr_pid = input->pr_pid;
++      data.pr_ppid = input->pr_ppid;
++      data.pr_pgrp = input->pr_pgrp;
++      data.pr_sid = input->pr_sid;
++      BFD_ASSERT (sizeof (data.pr_fname) == sizeof (input->pr_fname));
++      memcpy (data.pr_fname, input->pr_fname, sizeof (data.pr_fname));
++      BFD_ASSERT (sizeof (data.pr_psargs) == sizeof (input->pr_psargs));
++      memcpy (data.pr_psargs, input->pr_psargs, sizeof (data.pr_psargs));
        return elfcore_write_note (abfd, buf, bufsiz,
  				 note_name, note_type, &data, sizeof (data));
      }
    else
  #endif
      {
-+/* gdb-6.8-bz254229-gcore-prpsinfo.patch misapplication glue.  */
- #if defined (HAVE_PSINFO_T)
-       psinfo_t data;
-+/* gdb-6.8-bz254229-gcore-prpsinfo.patch misapplication glue.  */
-       int note_type = NT_PSINFO;
- #else
-       prpsinfo_t data;
+-#if defined (HAVE_PSINFO_T)
+-      psinfo_t data;
+-      int note_type = NT_PSINFO;
+-#else
+-      prpsinfo_t data;
        int note_type = NT_PRPSINFO;
- #endif
+-#endif
  
 -      memset (&data, 0, sizeof (data));
 -      strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
 -      strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+      if (info)
-+	memcpy (&data, info, sizeof (data));
-+      else
-+	{
-+	  memset (&data, 0, sizeof (data));
-+	  strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
-+	  strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+	}
-+
-       return elfcore_write_note (abfd, buf, bufsiz,
- 				 note_name, note_type, &data, sizeof (data));
-     }
-Index: gdb-7.1/gdb/amd64-linux-nat.c
-===================================================================
---- gdb-7.1.orig/gdb/amd64-linux-nat.c	2010-05-16 20:22:38.000000000 +0200
-+++ gdb-7.1/gdb/amd64-linux-nat.c	2010-05-16 20:22:38.000000000 +0200
-@@ -140,6 +140,7 @@ static int amd64_linux_gregset32_reg_off
- 
- static char *
- amd64_linux_elfcore_write_prpsinfo (bfd *abfd, char *buf, int *bufsiz,
-+				    void *info,
- 				    const char *fname, const char *psargs)
- {
-   if (gdbarch_ptr_bit (target_gdbarch) == 32)
-@@ -149,14 +150,20 @@ amd64_linux_elfcore_write_prpsinfo (bfd 
-       struct elf_prpsinfo32 data;
-       note_type = NT_PRPSINFO;
- 
--      memset (&data, 0, sizeof (data));
--      strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
--      strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+      if (info)
-+	memcpy (&data, info, sizeof (data));
-+      else
-+	{
-+	  memset (&data, 0, sizeof (data));
-+	  strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
-+	  strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
-+	}
-+
        return elfcore_write_note (abfd, buf, bufsiz,
- 				 note_name, note_type, &data, sizeof (data));
+-				 note_name, note_type, &data, sizeof (data));
++				 note_name, note_type, input, sizeof (*input));
      }
-   else
--    return elfcore_write_prpsinfo (abfd, buf, bufsiz, fname, psargs);
-+    return elfcore_write_prpsinfo (abfd, buf, bufsiz, info, fname, psargs);
  }
+-#endif	/* PSINFO_T or PRPSINFO_T */
++#endif	/* PRPSINFO_T */
  
- static void
-Index: gdb-7.1/gdb/fbsd-nat.c
-===================================================================
---- gdb-7.1.orig/gdb/fbsd-nat.c	2010-01-01 08:31:31.000000000 +0100
-+++ gdb-7.1/gdb/fbsd-nat.c	2010-05-16 20:22:38.000000000 +0200
-@@ -211,6 +211,7 @@ fbsd_make_corefile_notes (bfd *obfd, int
- 	psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL);
- 
-       note_data = elfcore_write_prpsinfo (obfd, note_data, note_size,
-+				          NULL,
- 					  fname, psargs);
-     }
- 
-Index: gdb-7.1/gdb/linux-nat.c
+ #if defined (HAVE_PRSTATUS_T)
+ char *
+Index: gdb-7.1.90.20100711/gdb/linux-nat.c
 ===================================================================
---- gdb-7.1.orig/gdb/linux-nat.c	2010-05-16 20:22:38.000000000 +0200
-+++ gdb-7.1/gdb/linux-nat.c	2010-05-16 20:22:38.000000000 +0200
-@@ -56,6 +56,7 @@
- #include "terminal.h"
- #include <sys/vfs.h>
- #include "solib.h"
-+#include "gdb_procfs32.h"	/* for struct elf_prpsinfo32 */
- 
- #ifndef SPUFS_MAGIC
- #define SPUFS_MAGIC 0x23c9b64e
-@@ -228,7 +229,7 @@ static LONGEST (*super_xfer_partial) (st
- /* This functions make elfcore note sections.
-    They may get overriden by code adjusting data for multi-target builds.  */
- char *(*linux_elfcore_write_prpsinfo)
--  (bfd *, char *, int *, const char *, const char *) = elfcore_write_prpsinfo;
-+  (bfd *, char *, int *, void *, const char *, const char *) = elfcore_write_prpsinfo;
- char *(*linux_elfcore_write_prstatus)
-   (bfd *, char *, int *, long, int, const void *) = elfcore_write_prstatus;
- static char *
-@@ -4507,6 +4508,159 @@ linux_spu_make_corefile_notes (bfd *obfd
+--- gdb-7.1.90.20100711.orig/gdb/linux-nat.c	2010-07-12 23:05:22.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/linux-nat.c	2010-07-12 22:57:34.000000000 +0200
+@@ -4466,6 +4466,131 @@ linux_spu_make_corefile_notes (bfd *obfd
    return args.note_data;
  }
  
@@ -153,7 +125,7 @@ Index: gdb-7.1/gdb/linux-nat.c
 +   binfmt_elf.c.  Unknown values are filled with zeroes.  The structure is
 +   malloced.  */
 +
-+static void*
++static const prpsinfo_t *
 +fill_prpsinfo (void)
 +{
 +  struct stat sb;
@@ -173,6 +145,7 @@ Index: gdb-7.1/gdb/linux-nat.c
 +     obsolete there to <linux/sched.h> TASK_* constants.  */
 +  const char state_string[] = "RSDTZW";
 +  int state_num;
++  static prpsinfo_t retval;
 +
 +  /* Get /proc/$PID/stat.  */
 +  pid = ptid_get_pid (inferior_ptid);
@@ -249,108 +222,63 @@ Index: gdb-7.1/gdb/linux-nat.c
 +      state_num = 0;
 +    }
 +
-+#if ULONG_MAX > 0xffffffffU
-+  /* We skip this code on 32-bit gdb.  */
-+  if (gdbarch_ptr_bit (target_gdbarch) == 64)
-+    {
-+      struct elf_prpsinfo *info = xzalloc (sizeof (*info));
-+
-+      info->pr_state = state_num;
-+      info->pr_sname = proc_state[0];
-+      info->pr_zomb = (proc_state[0] == 'Z');
-+      info->pr_nice = proc_nice;
-+      info->pr_flag = flags;
-+      info->pr_uid = sb.st_uid;
-+      info->pr_gid = sb.st_gid;
-+      info->pr_pid = pid;
-+      info->pr_ppid = proc_ppid;
-+      info->pr_pgrp = proc_pgid;
-+      info->pr_sid = proc_sid;
-+      strncpy (info->pr_fname, proc_comm, sizeof (info->pr_fname));
-+      strncpy (info->pr_psargs, proc_cmdline, sizeof (info->pr_psargs));
++  memset (&retval, 0, sizeof (retval));
++  retval.pr_state = state_num;
++  retval.pr_sname = proc_state[0];
++  retval.pr_zomb = (proc_state[0] == 'Z');
++  retval.pr_nice = proc_nice;
++  retval.pr_flag = flags;
++  retval.pr_uid = sb.st_uid;
++  retval.pr_gid = sb.st_gid;
++  retval.pr_pid = pid;
++  retval.pr_ppid = proc_ppid;
++  retval.pr_pgrp = proc_pgid;
++  retval.pr_sid = proc_sid;
++  strncpy (retval.pr_fname, proc_comm, sizeof (retval.pr_fname));
++  strncpy (retval.pr_psargs, proc_cmdline, sizeof (retval.pr_psargs));
 +
-+      return info;
-+    }
-+#endif
-+  if (gdbarch_ptr_bit (target_gdbarch) == 32)
-+    {
-+      struct elf_prpsinfo32 *info = xzalloc (sizeof (*info));
-+
-+      info->pr_state = state_num;
-+      info->pr_sname = proc_state[0];
-+      info->pr_zomb = (proc_state[0] == 'Z');
-+      info->pr_nice = proc_nice;
-+      info->pr_flag = flags;
-+      info->pr_uid = sb.st_uid;
-+      info->pr_gid = sb.st_gid;
-+      info->pr_pid = pid;
-+      info->pr_ppid = proc_ppid;
-+      info->pr_pgrp = proc_pgid;
-+      info->pr_sid = proc_sid;
-+      strncpy (info->pr_fname, proc_comm, sizeof (info->pr_fname));
-+      strncpy (info->pr_psargs, proc_cmdline, sizeof (info->pr_psargs));
-+
-+      return info;
-+    }
-+
-+  return NULL;
++  return &retval;
 +}
 +#endif
 +
  /* Fills the "to_make_corefile_note" target vector.  Builds the note
     section for a corefile, and returns it in a malloc buffer.  */
  
-@@ -4527,8 +4681,14 @@ linux_nat_make_corefile_notes (bfd *obfd
+@@ -4484,26 +4609,11 @@ linux_nat_make_corefile_notes (bfd *obfd
  
    if (get_exec_file (0))
      {
-+#if defined (HAVE_PRPSINFO_T)
-+      void *data = fill_prpsinfo ();
-+#define DATAPTR data
-+#else
-+#define DATAPTR NULL
-       strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname));
-       strncpy (psargs, get_exec_file (0), sizeof (psargs));
-+#endif
-       if (get_inferior_args ())
- 	{
- 	  char *string_end;
-@@ -4544,9 +4704,15 @@ linux_nat_make_corefile_notes (bfd *obfd
- 		       psargs_end - string_end);
- 	    }
- 	}
--      note_data = (char *) linux_elfcore_write_prpsinfo (obfd, note_data,
--							 note_size, fname,
-+      note_data = (char *) linux_elfcore_write_prpsinfo (obfd,
-+							 note_data, note_size,
-+							 DATAPTR,
-+							 fname,
- 							 psargs);
-+#if defined (HAVE_PRPSINFO_T)
-+      xfree (DATAPTR);
-+#endif
-+#undef DATAPTR
+-      strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname));
+-      strncpy (psargs, get_exec_file (0), sizeof (psargs));
+-      if (get_inferior_args ())
+-	{
+-	  char *string_end;
+-	  char *psargs_end = psargs + sizeof (psargs);
+-
+-	  /* linux_elfcore_write_prpsinfo () handles zero unterminated
+-	     strings fine.  */
+-	  string_end = memchr (psargs, 0, sizeof (psargs));
+-	  if (string_end != NULL)
+-	    {
+-	      *string_end++ = ' ';
+-	      strncpy (string_end, get_inferior_args (),
+-		       psargs_end - string_end);
+-	    }
+-	}
++      const prpsinfo_t *data = fill_prpsinfo ();
++
+       note_data = (char *) elfcore_write_prpsinfo (obfd,
+ 						   note_data,
+-						   note_size, fname, psargs);
++						   note_size, data);
      }
  
    /* Dump information for threads.  */
-Index: gdb-7.1/gdb/linux-nat.h
-===================================================================
---- gdb-7.1.orig/gdb/linux-nat.h	2010-05-16 20:22:37.000000000 +0200
-+++ gdb-7.1/gdb/linux-nat.h	2010-05-16 20:22:38.000000000 +0200
-@@ -173,7 +173,7 @@ int linux_nat_core_of_thread_1 (ptid_t p
- /* These functions make elfcore note sections.
-    They may get overriden by code adjusting data for multi-target builds.  */
- extern char *(*linux_elfcore_write_prpsinfo)
--  (bfd *, char *, int *, const char *, const char *);
-+  (bfd *, char *, int *, void *, const char *, const char *);
- extern char *(*linux_elfcore_write_prstatus)
-   (bfd *, char *, int *, long, int, const void *);
- extern char *(*linux_elfcore_write_prfpreg)
-Index: gdb-7.1/gdb/procfs.c
+Index: gdb-7.1.90.20100711/gdb/procfs.c
 ===================================================================
---- gdb-7.1.orig/gdb/procfs.c	2010-02-15 18:35:49.000000000 +0100
-+++ gdb-7.1/gdb/procfs.c	2010-05-16 20:22:38.000000000 +0200
-@@ -6184,6 +6184,7 @@ procfs_make_note_section (bfd *obfd, int
+--- gdb-7.1.90.20100711.orig/gdb/procfs.c	2010-07-07 18:15:16.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/procfs.c	2010-07-12 23:05:23.000000000 +0200
+@@ -5770,6 +5770,7 @@ procfs_make_note_section (bfd *obfd, int
    note_data = (char *) elfcore_write_prpsinfo (obfd,
  					       note_data,
  					       note_size,

gdb-6.8-bz466901-backtrace-full-prelinked.patch:
 dw2-loclist-prelinked-func.S |  328 +++++++++++++++++++++++++++++++++++++++++++
 dw2-loclist-prelinked-main.c |   26 +++
 dw2-loclist-prelinked.exp    |  102 +++++++++++++
 3 files changed, 456 insertions(+)

Index: gdb-6.8-bz466901-backtrace-full-prelinked.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.8-bz466901-backtrace-full-prelinked.patch,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- gdb-6.8-bz466901-backtrace-full-prelinked.patch	10 Sep 2009 21:37:39 -0000	1.6
+++ gdb-6.8-bz466901-backtrace-full-prelinked.patch	21 Jul 2010 21:30:14 -0000	1.7
@@ -1,20 +1,5 @@
 Fix resolving of variables at locations lists in prelinked libs (BZ 466901).
 
-Index: gdb-6.8.50.20090909/gdb/dwarf2loc.c
-===================================================================
---- gdb-6.8.50.20090909.orig/gdb/dwarf2loc.c	2009-09-09 20:08:03.000000000 +0200
-+++ gdb-6.8.50.20090909/gdb/dwarf2loc.c	2009-09-09 20:10:35.000000000 +0200
-@@ -56,7 +56,9 @@ find_location_expression (struct dwarf2_
-   CORE_ADDR low, high;
-   gdb_byte *loc_ptr, *buf_end;
-   int length;
--  struct objfile *objfile = dwarf2_per_cu_objfile (baton->per_cu);
-+  struct objfile *objfile1 = dwarf2_per_cu_objfile (baton->per_cu);
-+  struct objfile *objfile = objfile1->separate_debug_objfile
-+			    ? objfile1->separate_debug_objfile : objfile1;
-   struct gdbarch *gdbarch = get_objfile_arch (objfile);
-   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-   unsigned int addr_size = dwarf2_per_cu_addr_size (baton->per_cu);
 Index: gdb-6.8.50.20090909/gdb/testsuite/gdb.dwarf2/dw2-loclist-prelinked.exp
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000

gdb-6.8-fortran-tag-constant.patch:
 dwarf2read.c |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

Index: gdb-6.8-fortran-tag-constant.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.8-fortran-tag-constant.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- gdb-6.8-fortran-tag-constant.patch	16 Jan 2010 22:32:06 -0000	1.8
+++ gdb-6.8-fortran-tag-constant.patch	21 Jul 2010 21:30:14 -0000	1.9
@@ -1,8 +1,8 @@
-Index: gdb-7.0.50.20100115/gdb/dwarf2read.c
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/dwarf2read.c	2010-01-15 11:52:59.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/dwarf2read.c	2010-01-15 11:53:57.000000000 +0100
-@@ -2529,6 +2529,7 @@ scan_partial_symbols (struct partial_die
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-12 23:07:35.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-13 00:13:02.000000000 +0200
+@@ -2251,6 +2251,7 @@ scan_partial_symbols (struct partial_die
  	      add_partial_subprogram (pdi, lowpc, highpc, need_pc, cu);
  	      break;
  	    case DW_TAG_variable:
@@ -10,7 +10,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
  	    case DW_TAG_typedef:
  	    case DW_TAG_union_type:
  	      if (!pdi->is_declaration)
-@@ -2719,6 +2720,7 @@ add_partial_symbol (struct partial_die_i
+@@ -2452,6 +2453,7 @@ add_partial_symbol (struct partial_die_i
  	}
        break;
      case DW_TAG_variable:
@@ -18,7 +18,15 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
        if (pdi->is_external)
  	{
  	  /* Global Variable.
-@@ -4770,7 +4772,8 @@ dwarf2_add_field (struct field_info *fip
+@@ -3289,6 +3291,7 @@ die_needs_namespace (struct die_info *di
+       return 1;
+ 
+     case DW_TAG_variable:
++    case DW_TAG_constant:
+       /* We only need to prefix "globally" visible variables.  These include
+ 	 any variable marked with DW_AT_external or any variable that
+ 	 lives in a namespace.  [Variables in anonymous namespaces
+@@ -4638,7 +4641,8 @@ dwarf2_add_field (struct field_info *fip
  	  fip->non_public_fields = 1;
  	}
      }
@@ -28,7 +36,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
      {
        /* C++ static member.  */
  
-@@ -5339,7 +5342,8 @@ read_structure_type (struct die_info *di
+@@ -5250,7 +5254,8 @@ read_structure_type (struct die_info *di
        while (child_die && child_die->tag)
  	{
  	  if (child_die->tag == DW_TAG_member
@@ -38,7 +46,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
  	    {
  	      /* NOTE: carlton/2002-11-05: A C++ static data member
  		 should be a DW_TAG_member that is a declaration, but
-@@ -5459,6 +5463,7 @@ process_structure_scope (struct die_info
+@@ -5396,6 +5401,7 @@ process_structure_scope (struct die_info
      {
        if (child_die->tag == DW_TAG_member
  	  || child_die->tag == DW_TAG_variable
@@ -46,7 +54,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
  	  || child_die->tag == DW_TAG_inheritance)
  	{
  	  /* Do nothing.  */
-@@ -7134,6 +7139,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
+@@ -7109,6 +7115,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
  	  && abbrev->tag != DW_TAG_subprogram
  	  && abbrev->tag != DW_TAG_lexical_block
  	  && abbrev->tag != DW_TAG_variable
@@ -54,7 +62,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
  	  && abbrev->tag != DW_TAG_namespace
  	  && abbrev->tag != DW_TAG_module
  	  && abbrev->tag != DW_TAG_member)
-@@ -7242,6 +7248,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
+@@ -7217,6 +7224,7 @@ load_partial_dies (bfd *abfd, gdb_byte *
        if (load_all
  	  || abbrev->tag == DW_TAG_subprogram
  	  || abbrev->tag == DW_TAG_variable
@@ -62,7 +70,7 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
  	  || abbrev->tag == DW_TAG_namespace
  	  || part_die->is_declaration)
  	{
-@@ -9016,6 +9023,11 @@ new_symbol (struct die_info *die, struct
+@@ -9059,6 +9067,11 @@ new_symbol (struct die_info *die, struct
  	  /* Do not add the symbol to any lists.  It will be found via
  	     BLOCK_FUNCTION from the blockvector.  */
  	  break;
@@ -72,5 +80,5 @@ Index: gdb-7.0.50.20100115/gdb/dwarf2rea
 +					    SYMBOL_TYPE (sym), NULL);
 +	  /* PASSTHRU */
  	case DW_TAG_variable:
+ 	case DW_TAG_member:
  	  /* Compilation with minimal debug info may result in variables
- 	     with missing type entries. Change the misleading `void' type

gdb-archer-next-over-throw-cxx-exec.patch:
 cxxexec.cc  |   25 +++++++++++++++++++++++++
 cxxexec.exp |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Index: gdb-archer-next-over-throw-cxx-exec.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-archer-next-over-throw-cxx-exec.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-archer-next-over-throw-cxx-exec.patch	11 Jul 2010 18:06:30 -0000	1.1
+++ gdb-archer-next-over-throw-cxx-exec.patch	21 Jul 2010 21:30:14 -0000	1.2
@@ -1,25 +1,6 @@
 Archer-upstreamed:
 http://sourceware.org/ml/archer/2010-q2/msg00031.html
 
---- ./gdb/breakpoint.c	2010-05-29 01:12:32.000000000 +0200
-+++ ./gdb/breakpoint.c	2010-05-29 01:22:21.000000000 +0200
-@@ -1679,14 +1679,11 @@ create_exception_master_breakpoint (void
-       debug_hook = lookup_minimal_symbol_text ("_Unwind_DebugHook", objfile);
-       if (debug_hook != NULL)
- 	{
--	  CORE_ADDR pc;
- 	  struct breakpoint *b;
- 
--	  pc = find_function_start_pc (get_objfile_arch (objfile),
--				       SYMBOL_VALUE_ADDRESS (debug_hook),
--				       SYMBOL_OBJ_SECTION (debug_hook));
- 	  b = create_internal_breakpoint (get_objfile_arch (objfile),
--					  pc, bp_exception_master);
-+					  SYMBOL_VALUE_ADDRESS (debug_hook),
-+					  bp_exception_master);
- 	  b->addr_string = xstrdup ("_Unwind_DebugHook");
- 	  b->enable_state = bp_disabled;
- 	}
 --- ./gdb/testsuite/gdb.cp/cxxexec.cc	1970-01-01 01:00:00.000000000 +0100
 +++ ./gdb/testsuite/gdb.cp/cxxexec.cc	2010-05-29 01:18:56.000000000 +0200
 @@ -0,0 +1,25 @@

gdb-archer-pie-addons-keep-disabled.patch:
 breakpoint.c |   44 ++++++++++++++++++++++++++++++++++++++++++++
 breakpoint.h |    3 +++
 objfiles.c   |    5 +++++
 3 files changed, 52 insertions(+)

Index: gdb-archer-pie-addons-keep-disabled.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-archer-pie-addons-keep-disabled.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-archer-pie-addons-keep-disabled.patch	16 Jan 2010 22:32:07 -0000	1.2
+++ gdb-archer-pie-addons-keep-disabled.patch	21 Jul 2010 21:30:14 -0000	1.3
@@ -1,8 +1,8 @@
-Index: gdb-7.0.50.20100115/gdb/breakpoint.c
+Index: gdb-7.1.90.20100711/gdb/breakpoint.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/breakpoint.c	2010-01-15 21:35:16.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/breakpoint.c	2010-01-15 21:51:20.000000000 +0100
-@@ -9167,6 +9167,49 @@ update_breakpoint_locations (struct brea
+--- gdb-7.1.90.20100711.orig/gdb/breakpoint.c	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/breakpoint.c	2010-07-13 00:38:04.000000000 +0200
+@@ -10159,6 +10159,50 @@ update_breakpoint_locations (struct brea
    update_global_location_list (1);
  }
  
@@ -49,26 +49,27 @@ Index: gdb-7.0.50.20100115/gdb/breakpoin
 +    qsort (bp_location, bp_location_count, sizeof (*bp_location),
 +	   bp_location_compare);
 +}
- 
++
  /* Reset a breakpoint given it's struct breakpoint * BINT.
     The value we return ends up being the return value from catch_errors.
-Index: gdb-7.0.50.20100115/gdb/breakpoint.h
+    Unused in this case.  */
+Index: gdb-7.1.90.20100711/gdb/breakpoint.h
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/breakpoint.h	2010-01-15 21:35:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/breakpoint.h	2010-01-15 21:50:12.000000000 +0100
-@@ -1015,4 +1015,7 @@ extern struct breakpoint *get_tracepoint
-    is newly allocated; the caller should free when done with it.  */
- extern VEC(breakpoint_p) *all_tracepoints (void);
+--- gdb-7.1.90.20100711.orig/gdb/breakpoint.h	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/breakpoint.h	2010-07-13 00:37:34.000000000 +0200
+@@ -1088,4 +1088,7 @@ extern void check_tracepoint_command (ch
+ extern void start_rbreak_breakpoints (void);
+ extern void end_rbreak_breakpoints (void);
  
 +extern void breakpoints_relocate (struct objfile *objfile,
 +				  struct section_offsets *delta);
 +
  #endif /* !defined (BREAKPOINT_H) */
-Index: gdb-7.0.50.20100115/gdb/objfiles.c
+Index: gdb-7.1.90.20100711/gdb/objfiles.c
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/objfiles.c	2010-01-15 21:35:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/objfiles.c	2010-01-15 21:50:45.000000000 +0100
-@@ -856,6 +856,11 @@ objfile_relocate1 (struct objfile *objfi
+--- gdb-7.1.90.20100711.orig/gdb/objfiles.c	2010-05-16 02:46:46.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/objfiles.c	2010-07-13 00:37:19.000000000 +0200
+@@ -834,6 +834,11 @@ objfile_relocate1 (struct objfile *objfi
  				obj_section_addr (s));
      }
  

gdb-archer-pie-addons.patch:
 dwarf2read.c |   17 +++++++++++++----
 gdbtypes.h   |    5 +++++
 jv-lang.c    |    6 ++++--
 value.c      |    6 ++++--
 4 files changed, 26 insertions(+), 8 deletions(-)

Index: gdb-archer-pie-addons.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-archer-pie-addons.patch,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- gdb-archer-pie-addons.patch	11 Jul 2010 18:06:31 -0000	1.5
+++ gdb-archer-pie-addons.patch	21 Jul 2010 21:30:14 -0000	1.6
@@ -1,8 +1,8 @@
-Index: gdb-7.0.90.20100306/gdb/dwarf2read.c
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/dwarf2read.c	2010-03-06 23:27:30.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/dwarf2read.c	2010-03-06 23:28:43.000000000 +0100
-@@ -5910,7 +5910,12 @@ read_common_block (struct die_info *die,
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-13 00:26:25.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-13 00:34:00.000000000 +0200
+@@ -5737,7 +5737,12 @@ read_common_block (struct die_info *die,
  {
    struct attribute *attr;
    struct symbol *sym;
@@ -16,7 +16,7 @@ Index: gdb-7.0.90.20100306/gdb/dwarf2rea
  
    attr = dwarf2_attr (die, DW_AT_location, cu);
    if (attr)
-@@ -5919,6 +5924,7 @@ read_common_block (struct die_info *die,
+@@ -5746,6 +5751,7 @@ read_common_block (struct die_info *die,
        if (attr_form_is_block (attr))
          {
            base = decode_locdesc (DW_BLOCK (attr), cu);
@@ -24,7 +24,7 @@ Index: gdb-7.0.90.20100306/gdb/dwarf2rea
          }
        else if (attr_form_is_section_offset (attr))
          {
-@@ -5980,12 +5986,15 @@ read_common_block (struct die_info *die,
+@@ -5807,12 +5813,15 @@ read_common_block (struct die_info *die,
  	      else
  		dwarf2_complex_location_expr_complaint ();
  
@@ -42,7 +42,7 @@ Index: gdb-7.0.90.20100306/gdb/dwarf2rea
  	  else
  	    SET_FIELD_PHYSNAME (*field, SYMBOL_LINKAGE_NAME (sym));
  	  FIELD_TYPE (*field) = SYMBOL_TYPE (sym);
-@@ -5999,7 +6008,7 @@ read_common_block (struct die_info *die,
+@@ -5826,7 +5835,7 @@ read_common_block (struct die_info *die,
  
        sym = new_symbol (die, type, cu);
        /* SYMBOL_VALUE_ADDRESS never gets used as all its fields are static.  */
@@ -51,11 +51,11 @@ Index: gdb-7.0.90.20100306/gdb/dwarf2rea
  
        set_die_type (die, type, cu);
      }
-Index: gdb-7.0.90.20100306/gdb/gdbtypes.h
+Index: gdb-7.1.90.20100711/gdb/gdbtypes.h
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/gdbtypes.h	2010-03-06 23:26:34.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/gdbtypes.h	2010-03-06 23:28:43.000000000 +0100
-@@ -412,6 +412,7 @@ enum type_instance_flag_value
+--- gdb-7.1.90.20100711.orig/gdb/gdbtypes.h	2010-07-12 23:07:34.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/gdbtypes.h	2010-07-13 00:34:00.000000000 +0200
+@@ -395,6 +395,7 @@ enum type_instance_flag_value
  enum field_loc_kind
    {
      FIELD_LOC_KIND_BITPOS,	/* bitpos */
@@ -63,7 +63,7 @@ Index: gdb-7.0.90.20100306/gdb/gdbtypes.
      FIELD_LOC_KIND_PHYSADDR,	/* physaddr */
      FIELD_LOC_KIND_PHYSNAME	/* physname */
    };
-@@ -591,6 +592,7 @@ struct main_type
+@@ -577,6 +578,7 @@ struct main_type
  	   is the location (in the target) of the static field.
  	   Otherwise, physname is the mangled label of the static field. */
  
@@ -71,7 +71,7 @@ Index: gdb-7.0.90.20100306/gdb/gdbtypes.
  	CORE_ADDR physaddr;
  	char *physname;
        }
-@@ -1091,6 +1093,7 @@ extern void allocate_gnat_aux_type (stru
+@@ -1073,6 +1075,7 @@ extern void allocate_gnat_aux_type (stru
  #define FIELD_LOC_KIND(thisfld) ((thisfld).loc_kind)
  #define FIELD_BITPOS(thisfld) ((thisfld).loc.bitpos)
  #define FIELD_STATIC_PHYSNAME(thisfld) ((thisfld).loc.physname)
@@ -79,7 +79,7 @@ Index: gdb-7.0.90.20100306/gdb/gdbtypes.
  #define FIELD_STATIC_PHYSADDR(thisfld) ((thisfld).loc.physaddr)
  #define SET_FIELD_BITPOS(thisfld, bitpos)			\
    (FIELD_LOC_KIND (thisfld) = FIELD_LOC_KIND_BITPOS,		\
-@@ -1098,6 +1101,7 @@ extern void allocate_gnat_aux_type (stru
+@@ -1080,6 +1083,7 @@ extern void allocate_gnat_aux_type (stru
  #define SET_FIELD_PHYSNAME(thisfld, name)			\
    (FIELD_LOC_KIND (thisfld) = FIELD_LOC_KIND_PHYSNAME,		\
     FIELD_STATIC_PHYSNAME (thisfld) = (name))
@@ -87,7 +87,7 @@ Index: gdb-7.0.90.20100306/gdb/gdbtypes.
  #define SET_FIELD_PHYSADDR(thisfld, addr)			\
    (FIELD_LOC_KIND (thisfld) = FIELD_LOC_KIND_PHYSADDR,		\
     FIELD_STATIC_PHYSADDR (thisfld) = (addr))
-@@ -1110,6 +1114,7 @@ extern void allocate_gnat_aux_type (stru
+@@ -1092,6 +1096,7 @@ extern void allocate_gnat_aux_type (stru
  #define TYPE_FIELD_LOC_KIND(thistype, n) FIELD_LOC_KIND (TYPE_FIELD (thistype, n))
  #define TYPE_FIELD_BITPOS(thistype, n) FIELD_BITPOS (TYPE_FIELD (thistype, n))
  #define TYPE_FIELD_STATIC_PHYSNAME(thistype, n) FIELD_STATIC_PHYSNAME (TYPE_FIELD (thistype, n))
@@ -95,11 +95,11 @@ Index: gdb-7.0.90.20100306/gdb/gdbtypes.
  #define TYPE_FIELD_STATIC_PHYSADDR(thistype, n) FIELD_STATIC_PHYSADDR (TYPE_FIELD (thistype, n))
  #define TYPE_FIELD_ARTIFICIAL(thistype, n) FIELD_ARTIFICIAL(TYPE_FIELD(thistype,n))
  #define TYPE_FIELD_BITSIZE(thistype, n) FIELD_BITSIZE(TYPE_FIELD(thistype,n))
-Index: gdb-7.0.90.20100306/gdb/jv-lang.c
+Index: gdb-7.1.90.20100711/gdb/jv-lang.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/jv-lang.c	2010-03-06 23:19:13.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/jv-lang.c	2010-03-06 23:28:43.000000000 +0100
-@@ -416,7 +416,8 @@ java_link_class_type (struct gdbarch *gd
+--- gdb-7.1.90.20100711.orig/gdb/jv-lang.c	2010-05-17 19:18:39.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/jv-lang.c	2010-07-13 00:34:00.000000000 +0200
+@@ -409,7 +409,8 @@ java_link_class_type (struct gdbarch *gd
  
    fields = NULL;
    nfields--;			/* First set up dummy "class" field. */
@@ -109,7 +109,7 @@ Index: gdb-7.0.90.20100306/gdb/jv-lang.c
    TYPE_FIELD_NAME (type, nfields) = "class";
    TYPE_FIELD_TYPE (type, nfields) = value_type (clas);
    SET_TYPE_FIELD_PRIVATE (type, nfields);
-@@ -462,7 +463,8 @@ java_link_class_type (struct gdbarch *gd
+@@ -457,7 +458,8 @@ java_link_class_type (struct gdbarch *gd
  	  SET_TYPE_FIELD_PROTECTED (type, i);
  	}
        if (accflags & 0x0008)	/* ACC_STATIC */
@@ -119,27 +119,27 @@ Index: gdb-7.0.90.20100306/gdb/jv-lang.c
        else
  	TYPE_FIELD_BITPOS (type, i) = 8 * boffset;
        if (accflags & 0x8000)	/* FIELD_UNRESOLVED_FLAG */
-Index: gdb-7.0.90.20100306/gdb/value.c
+Index: gdb-7.1.90.20100711/gdb/value.c
 ===================================================================
---- gdb-7.0.90.20100306.orig/gdb/value.c	2010-03-06 23:19:13.000000000 +0100
-+++ gdb-7.0.90.20100306/gdb/value.c	2010-03-06 23:28:43.000000000 +0100
-@@ -1897,7 +1897,8 @@ value_static_field (struct type *type, i
-   if (TYPE_FIELD_LOC_KIND (type, fieldno) == FIELD_LOC_KIND_PHYSADDR)
+--- gdb-7.1.90.20100711.orig/gdb/value.c	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/value.c	2010-07-13 00:35:21.000000000 +0200
+@@ -1943,7 +1943,8 @@ value_static_field (struct type *type, i
      {
-       retval = value_at (TYPE_FIELD_TYPE (type, fieldno),
--			 TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
-+			 TYPE_FIELD_STATIC_PHYSADDR (type, fieldno)
-+			   + (TYPE_OBJFILE (type) == NULL ? 0 : ANOFFSET (TYPE_OBJFILE (type)->section_offsets, SECT_OFF_TEXT (TYPE_OBJFILE (type)))));
-     }
-   else
+     case FIELD_LOC_KIND_PHYSADDR:
+       retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno),
+-			      TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
++			      TYPE_FIELD_STATIC_PHYSADDR (type, fieldno)
++			      + (TYPE_OBJFILE (type) == NULL ? 0 : ANOFFSET (TYPE_OBJFILE (type)->section_offsets, SECT_OFF_TEXT (TYPE_OBJFILE (type)))));
+       break;
+     case FIELD_LOC_KIND_PHYSNAME:
      {
-@@ -1927,7 +1928,8 @@ value_static_field (struct type *type, i
+@@ -1977,7 +1978,8 @@ value_static_field (struct type *type, i
   	}
        if (retval && VALUE_LVAL (retval) == lval_memory)
  	SET_FIELD_PHYSADDR (TYPE_FIELD (type, fieldno),
 -			    value_address (retval));
 +			    value_address (retval)
-+			      - (TYPE_OBJFILE (type) == NULL ? 0 : ANOFFSET (TYPE_OBJFILE (type)->section_offsets, SECT_OFF_TEXT (TYPE_OBJFILE (type)))));
++			    - (TYPE_OBJFILE (type) == NULL ? 0 : ANOFFSET (TYPE_OBJFILE (type)->section_offsets, SECT_OFF_TEXT (TYPE_OBJFILE (type)))));
+       break;
      }
-   return retval;
- }
+     default:

gdb-archer.patch:
 ada-lang.c                                               |    8 
 amd64-linux-nat.c                                        |   15 
 block.c                                                  |   18 
 block.h                                                  |    2 
 blockframe.c                                             |   12 
 breakpoint.c                                             |  434 +++++++-
 breakpoint.h                                             |   17 
 c-typeprint.c                                            |    8 
 doc/gdbint.texinfo                                       |   62 +
 doc/observer.texi                                        |    5 
 dwarf2expr.c                                             |    7 
 dwarf2expr.h                                             |    8 
 dwarf2loc.c                                              |  260 ++++-
 dwarf2loc.h                                              |    9 
 dwarf2read.c                                             |  523 ++++++++--
 elfread.c                                                |  255 +++++
 eval.c                                                   |   96 +
 f-lang.h                                                 |    4 
 f-typeprint.c                                            |   36 
 f-valprint.c                                             |   59 -
 findvar.c                                                |  132 +-
 gdbthread.h                                              |   10 
 gdbtypes.c                                               |  728 +++++++++++++--
 gdbtypes.h                                               |  156 ++-
 i386-linux-nat.c                                         |   16 
 i386-nat.c                                               |   12 
 i386-nat.h                                               |    5 
 infcall.c                                                |   81 +
 infcmd.c                                                 |   34 
 inferior.h                                               |    2 
 infrun.c                                                 |  197 +++-
 linux-nat.c                                              |   35 
 linux-tdep.c                                             |    2 
 mi/mi-cmd-var.c                                          |    1 
 minsyms.c                                                |   19 
 p-lang.c                                                 |    6 
 p-valprint.c                                             |   30 
 parse.c                                                  |   73 +
 parser-defs.h                                            |    7 
 ppc-linux-nat.c                                          |   19 
 printcmd.c                                               |   23 
 python/py-type.c                                         |  118 +-
 python/py-value.c                                        |   14 
 solib-svr4.c                                             |    3 
 symmisc.c                                                |    3 
 symtab.c                                                 |    2 
 symtab.h                                                 |   23 
 target.c                                                 |   20 
 target.h                                                 |   10 
 testsuite/gdb.arch/x86_64-vla-pointer-foo.S              |  457 +++++++++
 testsuite/gdb.arch/x86_64-vla-pointer.c                  |   43 
 testsuite/gdb.arch/x86_64-vla-pointer.exp                |   66 +
 testsuite/gdb.arch/x86_64-vla-typedef-foo.S              |  455 +++++++++
 testsuite/gdb.arch/x86_64-vla-typedef.c                  |   43 
 testsuite/gdb.arch/x86_64-vla-typedef.exp                |   64 +
 testsuite/gdb.base/arrayidx.c                            |    7 
 testsuite/gdb.base/arrayidx.exp                          |   10 
 testsuite/gdb.base/gnu-ifunc-lib.c                       |   33 
 testsuite/gdb.base/gnu-ifunc.c                           |   61 +
 testsuite/gdb.base/gnu-ifunc.exp                         |  110 ++
 testsuite/gdb.base/internal-var-field-address.c          |   20 
 testsuite/gdb.base/internal-var-field-address.exp        |   26 
 testsuite/gdb.base/vla-overflow.c                        |   30 
 testsuite/gdb.base/vla-overflow.exp                      |  109 ++
 testsuite/gdb.base/vla.c                                 |   55 +
 testsuite/gdb.base/vla.exp                               |   62 +
 testsuite/gdb.cp/gdb9593.cc                              |  180 +++
 testsuite/gdb.cp/gdb9593.exp                             |  182 +++
 testsuite/gdb.dwarf2/dw2-bound-loclist.S                 |  212 ++++
 testsuite/gdb.dwarf2/dw2-bound-loclist.exp               |   51 +
 testsuite/gdb.dwarf2/dw2-stripped.c                      |   42 
 testsuite/gdb.dwarf2/dw2-stripped.exp                    |   79 +
 testsuite/gdb.dwarf2/dw2-struct-member-data-location.S   |   83 +
 testsuite/gdb.dwarf2/dw2-struct-member-data-location.exp |   37 
 testsuite/gdb.fortran/dwarf-stride.exp                   |   42 
 testsuite/gdb.fortran/dwarf-stride.f90                   |   40 
 testsuite/gdb.fortran/dynamic.exp                        |  145 ++
 testsuite/gdb.fortran/dynamic.f90                        |   98 ++
 testsuite/gdb.fortran/string.exp                         |   59 +
 testsuite/gdb.fortran/string.f90                         |   37 
 testsuite/gdb.java/jnpe.exp                              |   74 +
 testsuite/gdb.java/jnpe.java                             |   38 
 testsuite/gdb.opt/array-from-register-func.c             |   22 
 testsuite/gdb.opt/array-from-register.c                  |   28 
 testsuite/gdb.opt/array-from-register.exp                |   33 
 testsuite/gdb.opt/fortran-string.exp                     |   41 
 testsuite/gdb.opt/fortran-string.f90                     |   28 
 testsuite/gdb.pascal/arrays.exp                          |  104 ++
 testsuite/gdb.pascal/arrays.pas                          |   82 +
 testsuite/gdb.threads/watchpoint-fork-forkoff.c          |  175 +++
 testsuite/gdb.threads/watchpoint-fork-mt.c               |  157 +++
 testsuite/gdb.threads/watchpoint-fork.c                  |   57 +
 testsuite/gdb.threads/watchpoint-fork.exp                |  130 ++
 testsuite/lib/pascal.exp                                 |   17 
 thread.c                                                 |   16 
 top.c                                                    |    1 
 typeprint.c                                              |   13 
 valarith.c                                               |   49 -
 valops.c                                                 |  100 +-
 valprint.c                                               |   36 
 value.c                                                  |   99 +-
 value.h                                                  |    6 
 varobj.c                                                 |    2 
 103 files changed, 7328 insertions(+), 537 deletions(-)

View full diff with command:
/usr/bin/cvs -n -f diff -kk -u -p -N -r 1.41 -r 1.42 gdb-archer.patchIndex: gdb-archer.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-archer.patch,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -p -r1.41 -r1.42
--- gdb-archer.patch	11 Jul 2010 18:06:31 -0000	1.41
+++ gdb-archer.patch	21 Jul 2010 21:30:15 -0000	1.42
@@ -2,289 +2,53 @@ http://sourceware.org/gdb/wiki/ProjectAr
 http://sourceware.org/gdb/wiki/ArcherBranchManagement
 
 GIT snapshot:
-commit 39998c496988faaa1509cc6ab76b5c4777659bf4
+commit 0bc9a93725d7a7bcf1e30f072a12cc5186e41dc2
 
 branch `archer' - the merge of branches:
-archer-tromey-delayed-symfile2
-archer-tromey-python
-archer-pmuldoon-next-over-throw2
-archer-jankratochvil-fortran-module2
-archer-jankratochvil-watchpoint2
 archer-jankratochvil-vla
-archer-keiths-expr-cumulative
-# plus older archer-jankratochvil-ifunc
+archer-jankratochvil-watchpoint3
+archer-jankratochvil-ifunc
+archer-pmuldoon-next-over-throw2
+#TODO:archer-tromey-python (possibly only extracted parts)
+#TODO:archer-tromey-optional-psymtab (more fresh patches are at gdb-patches@)
+#TODO:archer-tromey-threaded-dwarf
 
 
-diff --git a/gdb/Makefile.in b/gdb/Makefile.in
-index 98f42b9..dbf8273 100644
---- a/gdb/Makefile.in
-+++ b/gdb/Makefile.in
-@@ -167,6 +167,12 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
- TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
- 
- # Did the user give us a --with-gdb-datadir option?
-+GDB_DATADIR_PATH = @GDB_DATADIR_PATH@
-+
-+# The argument to --with-pythondir.  If not given, this is
-+# GDB_DATADIR_PATH/python.
-+pythondir = @pythondir@
-+
- GDB_DATADIR = @GDB_DATADIR@
- 
- # Helper code from gnulib.
-@@ -267,23 +273,39 @@ SUBDIR_TUI_CFLAGS= \
- #
- SUBDIR_PYTHON_OBS = \
- 	python.o \
-+	py-block.o \
-+	py-breakpoint.o \
- 	py-cmd.o \
- 	py-frame.o \
- 	py-function.o \
-+	py-hooks.o \
-+	py-inferior.o \
-+	py-infthread.o \
- 	py-lazy-string.o \
- 	py-objfile.o \
-+	py-param.o \
- 	py-prettyprint.o \
-+	py-symbol.o \
-+	py-symtab.o \
- 	py-type.o \
- 	py-utils.o \
- 	py-value.o
- SUBDIR_PYTHON_SRCS = \
- 	python/python.c \
-+	python/py-block.c \
-+	python/py-breakpoint.c \
- 	python/py-cmd.c \
- 	python/py-frame.c \
- 	python/py-function.c \
-+	python/py-hooks.c \
-+	python/py-inferior.c \
-+	python/py-infthread.c \
- 	python/py-lazy-string.c \
- 	python/py-objfile.c \
-+	python/py-param.c \
- 	python/py-prettyprint.c \
-+	python/py-symbol.c \
-+	python/py-symtab.c \
- 	python/py-type.c \
- 	python/py-utils.c \
- 	python/py-value.c
-@@ -756,7 +778,8 @@ config/rs6000/nm-rs6000.h top.h bsd-kvm.h gdb-stabs.h reggroups.h \
- annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h	\
- remote-fileio.h i386-linux-tdep.h vax-tdep.h objc-lang.h \
- sentinel-frame.h bcache.h symfile.h windows-tdep.h linux-tdep.h \
--gdb_usleep.h jit.h xml-syscall.h ada-operator.inc microblaze-tdep.h
-+gdb_usleep.h jit.h python/python.h python/python-internal.h \
-+xml-syscall.h ada-operator.inc microblaze-tdep.h
- 
- # Header files that already have srcdir in them, or which are in objdir.
- 
-@@ -1270,6 +1293,12 @@ stamp-h: $(srcdir)/config.in config.status
- 	  CONFIG_LINKS= \
- 	  $(SHELL) config.status
- 
-+.gdbinit: $(srcdir)/gdbinit.in config.status
-+	CONFIG_FILES=".gdbinit:gdbinit.in" \
-+	  CONFIG_COMMANDS= \
-+	  CONFIG_HEADERS= \
-+	  $(SHELL) config.status
-+
- config.status: $(srcdir)/configure configure.tgt configure.host
- 	$(SHELL) config.status --recheck
- 
-@@ -1970,6 +1999,14 @@ python.o: $(srcdir)/python/python.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
- 	$(POSTCOMPILE)
- 
-+py-block.o: $(srcdir)/python/py-block.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-block.c
-+	$(POSTCOMPILE)
-+
-+py-breakpoint.o: $(srcdir)/python/py-breakpoint.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-breakpoint.c
-+	$(POSTCOMPILE)
-+
- py-cmd.o: $(srcdir)/python/py-cmd.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-cmd.c
- 	$(POSTCOMPILE)
-@@ -1982,6 +2019,18 @@ py-function.o: $(srcdir)/python/py-function.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c
- 	$(POSTCOMPILE)
- 
-+py-hooks.o: $(srcdir)/python/py-hooks.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-hooks.c
-+	$(POSTCOMPILE)
-+
-+py-inferior.o: $(srcdir)/python/py-inferior.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-inferior.c
-+	$(POSTCOMPILE)
-+
-+py-infthread.o: $(srcdir)/python/py-infthread.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-infthread.c
-+	$(POSTCOMPILE)
-+
- py-lazy-string.o: $(srcdir)/python/py-lazy-string.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-lazy-string.c
- 	$(POSTCOMPILE)
-@@ -1990,10 +2039,22 @@ py-objfile.o: $(srcdir)/python/py-objfile.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-objfile.c
- 	$(POSTCOMPILE)
- 
-+py-param.o: $(srcdir)/python/py-param.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-param.c
-+	$(POSTCOMPILE)
-+
- py-prettyprint.o: $(srcdir)/python/py-prettyprint.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-prettyprint.c
- 	$(POSTCOMPILE)
- 
-+py-symbol.o: $(srcdir)/python/py-symbol.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-symbol.c
-+	$(POSTCOMPILE)
-+
-+py-symtab.o: $(srcdir)/python/py-symtab.c
-+	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-symtab.c
-+	$(POSTCOMPILE)
-+
- py-type.o: $(srcdir)/python/py-type.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-type.c
- 	$(POSTCOMPILE)
-@@ -2006,6 +2067,36 @@ py-value.o: $(srcdir)/python/py-value.c
- 	$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-value.c
- 	$(POSTCOMPILE)
- 
-+# All python library files, with the "python/lib" stripped off.
-+# Note that we should only install files in the "gdb" module.
-+PY_FILES = gdb/FrameIterator.py gdb/FrameWrapper.py gdb/command/alias.py \
-+    gdb/command/backtrace.py gdb/command/require.py \
-+    gdb/command/pahole.py gdb/command/upto.py gdb/command/__init__.py \
-+    gdb/command/ignore_errors.py gdb/command/save_breakpoints.py \
-+    gdb/function/caller_is.py gdb/function/in_scope.py \
-+    gdb/function/__init__.py gdb/backtrace.py gdb/__init__.py
-+
-+# Install the Python library.  Python library files go under
-+# $(pythondir).
-+install-python:
-+	files='$(PY_FILES)'; for file in $$files; do \
-+	  dir=`echo "$$file" | sed 's,/[^/]*$$,,'`; \
-+	  $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(pythondir)/$$dir; \
-+	  $(INSTALL_DATA) $(srcdir)/python/lib/$$file $(DESTDIR)$(pythondir)/$$file; \
-+	done
-+
-+# Other packages may have their files installed in $(pythondir).
-+uninstall-python:
-+	files='$(PY_FILES)'; for file in $$files; do \
-+	  slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'`; \
-+	  rm -f $(DESTDIR)$(pythondir)/$$file; \
-+	  while test "x$$file" != "x$$slashdir"; do \
-+	    rmdir 2>/dev/null "$(DESTDIR)$(pythondir)$$slashdir"; \
-+	    file="$$slashdir"; \
-+	    slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'`; \
[...33857 lines suppressed...]
  
  /* Internal variables.  These are variables within the debugger
     that hold values assigned by debugger commands.
-@@ -1388,6 +1438,40 @@ call_internal_function (struct gdbarch *gdbarch,
+@@ -1451,6 +1484,40 @@ call_internal_function (struct gdbarch *gdbarch,
    return (*ifn->handler) (gdbarch, language, ifn->cookie, argc, argv);
  }
  
@@ -29003,7 +10890,7 @@ index a462ee4..968cdf4 100644
  /* The 'function' command.  This does nothing -- it is just a
     placeholder to let "help function NAME" work.  This is also used as
     the implementation of the sub-command that is created when
-@@ -1435,11 +1519,10 @@ preserve_one_value (struct value *value, struct objfile *objfile,
+@@ -1498,11 +1565,10 @@ preserve_one_value (struct value *value, struct objfile *objfile,
  		    htab_t copied_types)
  {
    if (TYPE_OBJFILE (value->type) == objfile)
@@ -29017,7 +10904,7 @@ index a462ee4..968cdf4 100644
  						 copied_types);
  }
  
-@@ -1454,13 +1537,13 @@ preserve_one_internalvar (struct internalvar *var, struct objfile *objfile,
+@@ -1517,13 +1583,13 @@ preserve_one_internalvar (struct internalvar *var, struct objfile *objfile,
      case INTERNALVAR_INTEGER:
        if (var->u.integer.type && TYPE_OBJFILE (var->u.integer.type) == objfile)
  	var->u.integer.type
@@ -29033,70 +10920,33 @@ index a462ee4..968cdf4 100644
        break;
  
      case INTERNALVAR_VALUE:
-@@ -2192,6 +2275,42 @@ pack_long (gdb_byte *buf, struct type *type, LONGEST num)
- }
- 
- 
-+/* Pack NUM into BUF using a target format of TYPE.  */
-+
-+void
-+pack_unsigned_long (gdb_byte *buf, struct type *type, ULONGEST num)
-+{
-+  enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type));
-+  int len;
-+
-+  type = check_typedef (type);
-+  len = TYPE_LENGTH (type);
+@@ -2387,7 +2453,24 @@ value_from_decfloat (struct type *type, const gdb_byte *dec)
+ struct value *
+ coerce_ref (struct value *arg)
+ {
+-  struct type *value_type_arg_tmp = check_typedef (value_type (arg));
++  struct type *value_type_arg_tmp;
 +
-+  switch (TYPE_CODE (type))
++  if (TYPE_DYNAMIC (value_type (arg)))
 +    {
-+    case TYPE_CODE_INT:
-+    case TYPE_CODE_CHAR:
-+    case TYPE_CODE_ENUM:
-+    case TYPE_CODE_FLAGS:
-+    case TYPE_CODE_BOOL:
-+    case TYPE_CODE_RANGE:
-+    case TYPE_CODE_MEMBERPTR:
-+      store_unsigned_integer (buf, len, byte_order, num);
-+      break;
-+
-+    case TYPE_CODE_REF:
-+    case TYPE_CODE_PTR:
-+      store_typed_address (buf, type, (CORE_ADDR) num);
-+      break;
-+
-+    default:
-+      error (_("\
-+Unexpected type (%d) encountered for unsigned integer constant."),
-+	     TYPE_CODE (type));
++      struct cleanup *cleanups = make_cleanup (null_cleanup, NULL);
++      CORE_ADDR address;
++
++      value_type_arg_tmp = value_type (arg);
++      address = value_raw_address (arg);
++      value_type_arg_tmp = object_address_get_data (value_type_arg_tmp,
++						    &address);
++      if (! value_type_arg_tmp)
++	error (_("Attempt to coerce non-valid value."));
++      arg = value_at_lazy (value_type_arg_tmp, address);
++      do_cleanups (cleanups);
 +    }
-+}
-+
-+
- /* Convert C numbers into newly allocated values.  */
- 
- struct value *
-@@ -2205,6 +2324,19 @@ value_from_longest (struct type *type, LONGEST num)
- }
- 
++  else
++    value_type_arg_tmp = check_typedef (value_type (arg));
  
-+/* Convert C unsigned numbers into newly allocated values.  */
-+
-+struct value *
-+value_from_ulongest (struct type *type, ULONGEST num)
-+{
-+  struct value *val = allocate_value (type);
-+
-+  pack_unsigned_long (value_contents_raw (val), type, num);
-+
-+  return val;
-+}
-+
-+
- /* Create a value representing a pointer of type TYPE to the address
-    ADDR.  */
- struct value *
-@@ -2363,4 +2495,8 @@ VARIABLE is already initialized."));
+   if (TYPE_CODE (value_type_arg_tmp) == TYPE_CODE_REF)
+     arg = value_at_lazy (TYPE_TARGET_TYPE (value_type_arg_tmp),
+@@ -2485,4 +2568,8 @@ VARIABLE is already initialized."));
    add_prefix_cmd ("function", no_class, function_command, _("\
  Placeholder command for showing help on convenience functions."),
  		  &functionlist, "function ", 0, &cmdlist);
@@ -29106,27 +10956,21 @@ index a462ee4..968cdf4 100644
 +  observer_attach_mark_used (value_types_mark_used);
  }
 diff --git a/gdb/value.h b/gdb/value.h
-index 1f2086e..dd503ad 100644
+index 12cbc0a..a508bf6 100644
 --- a/gdb/value.h
 +++ b/gdb/value.h
-@@ -342,11 +342,16 @@ extern LONGEST unpack_field_as_long (struct type *type,
- extern void pack_long (gdb_byte *buf, struct type *type, LONGEST num);
- 
- extern struct value *value_from_longest (struct type *type, LONGEST num);
-+extern struct value *value_from_ulongest (struct type *type, ULONGEST num);
- extern struct value *value_from_pointer (struct type *type, CORE_ADDR addr);
- extern struct value *value_from_double (struct type *type, DOUBLEST num);
+@@ -372,6 +372,10 @@ extern struct value *value_from_double (struct type *type, DOUBLEST num);
  extern struct value *value_from_decfloat (struct type *type,
  					  const gdb_byte *decbytes);
  
 +extern const char *object_address_data_not_valid (struct type *type);
-+extern int object_address_get_data (struct type *type,
-+				    CORE_ADDR *address_return);
++extern struct type *object_address_get_data (struct type *type,
++					     CORE_ADDR *address_return);
 +
  extern struct value *value_at (struct type *type, CORE_ADDR addr);
  extern struct value *value_at_lazy (struct type *type, CORE_ADDR addr);
  
-@@ -694,7 +699,7 @@ extern struct value *value_allocate_space_in_inferior (int);
+@@ -729,7 +733,7 @@ extern struct value *value_allocate_space_in_inferior (int);
  extern struct value *value_of_local (const char *name, int complain);
  
  extern struct value *value_subscripted_rvalue (struct value *array,
@@ -29136,7 +10980,7 @@ index 1f2086e..dd503ad 100644
  /* User function handler.  */
  
 diff --git a/gdb/varobj.c b/gdb/varobj.c
-index b4b2461..3a7a884 100644
+index b9b8e91..a81d25c 100644
 --- a/gdb/varobj.c
 +++ b/gdb/varobj.c
 @@ -26,6 +26,8 @@
@@ -29148,37 +10992,3 @@ index b4b2461..3a7a884 100644
  
  #include "gdb_assert.h"
  #include "gdb_string.h"
-diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
-index acd7b50..0929a33 100644
---- a/gdb/xcoffread.c
-+++ b/gdb/xcoffread.c
-@@ -3030,6 +3030,7 @@ static struct sym_fns xcoff_sym_fns =
-   xcoff_new_init,		/* sym_new_init: init anything gbl to entire symtab */
-   xcoff_symfile_init,		/* sym_init: read initial info, setup for sym_read() */
-   xcoff_initial_scan,		/* sym_read: read a symbol file into symtab */
-+  NULL,				/* sym_read_psymbols */
-   xcoff_symfile_finish,		/* sym_finish: finished with file, cleanup */
-   xcoff_symfile_offsets,	/* sym_offsets: xlate offsets ext->int form */
-   default_symfile_segments,	/* sym_segments: Get segment information from
-diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c
-index 667d9b3..0d86219 100644
---- a/gdb/xtensa-linux-tdep.c
-+++ b/gdb/xtensa-linux-tdep.c
-@@ -22,6 +22,7 @@
- 
- #include "solib-svr4.h"
- #include "symtab.h"
-+#include "linux-tdep.h"
- 
- /* OS specific initialization of gdbarch.  */
- 
-@@ -30,6 +31,9 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
- {
-   set_solib_svr4_fetch_link_map_offsets
-     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
-+
-+  set_gdbarch_convert_from_func_ptr_addr (gdbarch,
-+					  linux_convert_from_func_ptr_addr);
- }
- 
- /* Provide a prototype to silence -Wmissing-prototypes.  */

gdb-bz541866-rwatch-before-run.patch:
 config/i386/linux64.mh                          |    2 -
 config/i386/nm-linux64.h                        |   28 ++++++++++++++++
 target.h                                        |    2 +
 testsuite/gdb.base/watchpoint-hw-before-run.exp |   40 ++++++++++++++++++++++++
 4 files changed, 71 insertions(+), 1 deletion(-)

Index: gdb-bz541866-rwatch-before-run.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-bz541866-rwatch-before-run.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-bz541866-rwatch-before-run.patch	8 Feb 2010 21:00:12 -0000	1.1
+++ gdb-bz541866-rwatch-before-run.patch	21 Jul 2010 21:30:17 -0000	1.2
@@ -1,26 +1,20 @@
---- a/gdb/config/i386/linux64.mh
-+++ b/gdb/config/i386/linux64.mh
+Index: gdb-7.1.90.20100711/gdb/config/i386/linux64.mh
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/config/i386/linux64.mh	2010-05-28 20:50:31.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/config/i386/linux64.mh	2010-07-13 19:02:54.000000000 +0200
 @@ -2,7 +2,7 @@
  NATDEPFILES= inf-ptrace.o fork-child.o \
  	i386-nat.o amd64-nat.o amd64-linux-nat.o linux-nat.o \
  	proc-service.o linux-thread-db.o linux-fork.o
 -NAT_FILE= config/nm-linux.h
 +NAT_FILE= nm-linux64.h
+ NAT_CDEPS = $(srcdir)/proc-service.list
  
  # The dynamically loaded libthread_db needs access to symbols in the
- # gdb executable.
---- a/gdb/config/i386/nm-linux.h
-+++ b/gdb/config/i386/nm-linux.h
-@@ -29,4 +29,7 @@
- #define FILL_FPXREGSET
- #endif
- 
-+/* Red Hat backward compatibility with gdb-6.8.  */
-+#define target_can_use_hardware_watchpoint(type, cnt, ot) 1
-+
- #endif /* nm-linux.h */
---- /dev/null
-+++ b/gdb/config/i386/nm-linux64.h
+Index: gdb-7.1.90.20100711/gdb/config/i386/nm-linux64.h
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.1.90.20100711/gdb/config/i386/nm-linux64.h	2010-07-13 19:02:28.000000000 +0200
 @@ -0,0 +1,28 @@
 +/* Native support for GNU/Linux amd64.
 +
@@ -50,9 +44,11 @@
 +#define target_can_use_hardware_watchpoint(type, cnt, ot) 1
 +
 +#endif /* NM_LINUX64_H */
---- a/gdb/target.h
-+++ b/gdb/target.h
-@@ -1257,8 +1257,10 @@ extern char *normal_pid_to_str (ptid_t ptid);
+Index: gdb-7.1.90.20100711/gdb/target.h
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/target.h	2010-07-12 23:07:34.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/target.h	2010-07-13 19:02:28.000000000 +0200
+@@ -1298,8 +1298,10 @@ extern char *normal_pid_to_str (ptid_t p
     bp_hardware_breakpoint.  CNT is the number of such watchpoints used so far
     (including this one?).  OTHERTYPE is who knows what...  */
  
@@ -63,8 +59,10 @@
  
  #define target_region_ok_for_hw_watchpoint(addr, len) \
      (*current_target.to_region_ok_for_hw_watchpoint) (addr, len)
---- /dev/null
-+++ b/gdb/testsuite/gdb.base/watchpoint-hw-before-run.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/watchpoint-hw-before-run.exp
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/watchpoint-hw-before-run.exp	2010-07-13 19:02:28.000000000 +0200
 @@ -0,0 +1,40 @@
 +# Copyright 2009, 2010 Free Software Foundation, Inc.
 +

gdb-bz575292-delayed-physname.patch:
 dwarf2read.c                     |  122 ++++++++++++-
 testsuite/gdb.dwarf2/pr11465.S   |  355 +++++++++++++++++++++++++++++++++++++++
 testsuite/gdb.dwarf2/pr11465.exp |   39 ++++
 3 files changed, 505 insertions(+), 11 deletions(-)

Index: gdb-bz575292-delayed-physname.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-bz575292-delayed-physname.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-bz575292-delayed-physname.patch	11 Jul 2010 18:06:31 -0000	1.1
+++ gdb-bz575292-delayed-physname.patch	21 Jul 2010 21:30:17 -0000	1.2
@@ -9,9 +9,11 @@ Neither its obstack-leak.patch nor
 	http://sourceware.org/ml/gdb-patches/2010-05/msg00271.html
 is needed as the linked list is used instead.
 
---- ./gdb/dwarf2read.c	2010-05-13 18:26:22.000000000 +0200
-+++ ./gdb/dwarf2read.c	2010-05-13 18:45:04.000000000 +0200
-@@ -251,6 +251,28 @@ struct comp_unit_head
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-13 00:34:00.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-13 22:25:18.000000000 +0200
+@@ -216,6 +216,28 @@ struct comp_unit_head
    unsigned int first_die_offset;
  };
  
@@ -40,7 +42,7 @@ is needed as the linked list is used ins
  /* Internal state when decoding a particular compilation unit.  */
  struct dwarf2_cu
  {
-@@ -329,6 +351,10 @@ struct dwarf2_cu
+@@ -294,6 +316,10 @@ struct dwarf2_cu
    /* Header data from the line table, during full symbol processing.  */
    struct line_header *line_header;
  
@@ -51,7 +53,7 @@ is needed as the linked list is used ins
    /* Mark used when releasing cached dies.  */
    unsigned int mark : 1;
  
-@@ -1208,6 +1234,9 @@ static void destroy_section (struct dwar
+@@ -1142,6 +1168,9 @@ static struct type *get_die_type (struct
  static struct dwarf2_locexpr_baton *dwarf2_attr_to_locexpr_baton
    (struct attribute *attr, struct dwarf2_cu *cu);
  
@@ -61,7 +63,7 @@ is needed as the linked list is used ins
  /* Try to locate the sections we need for DWARF 2 debugging
     information and return true if we have enough to do something.  */
  
-@@ -3435,6 +3464,58 @@ load_full_comp_unit (struct dwarf2_per_c
+@@ -3137,6 +3166,58 @@ load_full_comp_unit (struct dwarf2_per_c
    discard_cleanups (free_cu_cleanup);
  }
  
@@ -120,8 +122,8 @@ is needed as the linked list is used ins
  /* Generate full symbol information for PST and CU, whose DIEs have
     already been loaded into memory.  */
  
-@@ -3447,7 +3528,7 @@ process_full_comp_unit (struct dwarf2_pe
-   bfd *abfd = objfile->obfd;
+@@ -3148,7 +3229,7 @@ process_full_comp_unit (struct dwarf2_pe
+   struct objfile *objfile = pst->objfile;
    CORE_ADDR lowpc, highpc;
    struct symtab *symtab;
 -  struct cleanup *back_to;
@@ -129,7 +131,7 @@ is needed as the linked list is used ins
    CORE_ADDR baseaddr;
  
    baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
-@@ -3457,11 +3538,22 @@ process_full_comp_unit (struct dwarf2_pe
+@@ -3158,11 +3239,22 @@ process_full_comp_unit (struct dwarf2_pe
  
    cu->list_in_scope = &file_symbols;
  
@@ -152,7 +154,7 @@ is needed as the linked list is used ins
    /* Some compilers don't define a DW_AT_high_pc attribute for the
       compilation unit.  If the DW_AT_high_pc is missing, synthesize
       it, by scanning the DIE's below the compilation unit.  */
-@@ -5093,7 +5185,6 @@ dwarf2_add_member_fn (struct field_info 
+@@ -4854,7 +4946,6 @@ dwarf2_add_member_fn (struct field_info 
    int i;
    struct fn_field *fnp;
    char *fieldname;
@@ -160,7 +162,7 @@ is needed as the linked list is used ins
    struct nextfnfield *new_fnfield;
    struct type *this_type;
  
-@@ -5105,9 +5196,6 @@ dwarf2_add_member_fn (struct field_info 
+@@ -4866,9 +4957,6 @@ dwarf2_add_member_fn (struct field_info 
    if (fieldname == NULL)
      return;
  
@@ -170,7 +172,7 @@ is needed as the linked list is used ins
    /* Look up member function name in fieldlist.  */
    for (i = 0; i < fip->nfnfields; i++)
      {
-@@ -5133,7 +5221,7 @@ dwarf2_add_member_fn (struct field_info 
+@@ -4894,7 +4982,7 @@ dwarf2_add_member_fn (struct field_info 
        flp->name = fieldname;
        flp->length = 0;
        flp->head = NULL;
@@ -179,7 +181,7 @@ is needed as the linked list is used ins
      }
  
    /* Create a new member function field and chain it to the field list
-@@ -5147,9 +5235,19 @@ dwarf2_add_member_fn (struct field_info 
+@@ -4908,9 +4996,19 @@ dwarf2_add_member_fn (struct field_info 
  
    /* Fill in the member function field info.  */
    fnp = &new_fnfield->fnfield;
@@ -202,7 +204,7 @@ is needed as the linked list is used ins
    fnp->type = alloc_type (objfile);
    this_type = read_type_die (die, cu);
    if (this_type && TYPE_CODE (this_type) == TYPE_CODE_FUNC)
-@@ -5175,7 +5273,7 @@ dwarf2_add_member_fn (struct field_info 
+@@ -4936,7 +5034,7 @@ dwarf2_add_member_fn (struct field_info 
      }
    else
      complaint (&symfile_complaints, _("member function type missing for '%s'"),
@@ -211,7 +213,7 @@ is needed as the linked list is used ins
  
    /* Get fcontext from DW_AT_containing_type if present.  */
    if (dwarf2_attr (die, DW_AT_containing_type, cu) != NULL)
-@@ -7500,7 +7598,9 @@ load_partial_dies (bfd *abfd, gdb_byte *
+@@ -7315,7 +7413,9 @@ load_partial_dies (bfd *abfd, gdb_byte *
  		      || last_die->tag == DW_TAG_interface_type
  		      || last_die->tag == DW_TAG_structure_type
  		      || last_die->tag == DW_TAG_union_type))
@@ -222,8 +224,10 @@ is needed as the linked list is used ins
  		  && (last_die->tag == DW_TAG_subprogram
  		      || last_die->tag == DW_TAG_lexical_block))))
  	{
---- ./gdb/testsuite/gdb.dwarf2/pr11465.S	1970-01-01 01:00:00.000000000 +0100
-+++ ./gdb/testsuite/gdb.dwarf2/pr11465.S	2010-05-13 18:39:00.000000000 +0200
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.dwarf2/pr11465.S
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.dwarf2/pr11465.S	2010-07-13 22:24:48.000000000 +0200
 @@ -0,0 +1,355 @@
 +/* Copyright 2010 Free Software Foundation, Inc.
 +
@@ -580,8 +584,10 @@ is needed as the linked list is used ins
 +.LASF4:
 +	.string	"GNU C++ 4.4.2"
 +	.ident	"GCC: (GNU) 4.4.2"
---- ./gdb/testsuite/gdb.dwarf2/pr11465.exp	1970-01-01 01:00:00.000000000 +0100
-+++ ./gdb/testsuite/gdb.dwarf2/pr11465.exp	2010-05-13 18:39:00.000000000 +0200
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.dwarf2/pr11465.exp
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.dwarf2/pr11465.exp	2010-07-13 22:24:48.000000000 +0200
 @@ -0,0 +1,39 @@
 +# Copyright 2010 Free Software Foundation, Inc.
 +

gdb-core-open-vdso-warning.patch:
 solib-svr4.c |   14 ++++++++++++--
 solib.c      |    7 +++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

Index: gdb-core-open-vdso-warning.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-core-open-vdso-warning.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-core-open-vdso-warning.patch	12 Jan 2010 22:15:56 -0000	1.1
+++ gdb-core-open-vdso-warning.patch	21 Jul 2010 21:30:19 -0000	1.2
@@ -33,9 +33,11 @@ gdb/
 
 [ Context backport.  ]
 
---- a/gdb/solib-svr4.c
-+++ b/gdb/solib-svr4.c
-@@ -1097,8 +1097,18 @@ svr4_current_sos (void)
+Index: gdb-7.1.90.20100711/gdb/solib-svr4.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/solib-svr4.c	2010-07-12 23:07:35.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/solib-svr4.c	2010-07-13 00:19:03.000000000 +0200
+@@ -1177,8 +1177,18 @@ svr4_current_sos (void)
  	  target_read_string (LM_NAME (new), &buffer,
  			      SO_NAME_MAX_PATH_SIZE - 1, &errcode);
  	  if (errcode != 0)
@@ -56,9 +58,11 @@ gdb/
  	  else
  	    {
  	      struct build_id *build_id;
---- a/gdb/solib.c
-+++ b/gdb/solib.c
-@@ -538,6 +538,7 @@ update_solib_list (int from_tty, struct target_ops *target)
+Index: gdb-7.1.90.20100711/gdb/solib.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/solib.c	2010-05-17 01:49:58.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/solib.c	2010-07-13 00:21:01.000000000 +0200
+@@ -705,6 +705,7 @@ update_solib_list (int from_tty, struct 
    struct target_so_ops *ops = solib_ops (target_gdbarch);
    struct so_list *inferior = ops->current_sos();
    struct so_list *gdb, **gdb_link;
@@ -66,17 +70,16 @@ gdb/
  
    /* We can reach here due to changing solib-search-path or the
       sysroot, before having any inferior.  */
-@@ -668,6 +669,12 @@ update_solib_list (int from_tty, struct target_ops *target)
+@@ -844,6 +845,12 @@ Error while mapping shared library secti
  	  observer_notify_solib_loaded (i);
  	}
-     }
+ 
++      /* If this was the very first DSO list scan and we possibly read in ld.so
++	 recheck all the formerly unreadable DSO names strings.  */
 +
-+  /* If this was the very first DSO list scan and we possibly read in ld.so
-+     recheck all the formerly unreadable DSO names strings.  */
++      if (saved_so_list_head == NULL && so_list_head != NULL)
++	return update_solib_list (from_tty, target);
 +
-+  if (saved_so_list_head == NULL && so_list_head != NULL)
-+    update_solib_list (from_tty, target);
- }
- 
- 
-
+       /* If a library was not found, issue an appropriate warning
+ 	 message.  We have to use a single call to warning in case the
+ 	 front end does something special with warnings, e.g., pop up

gdb-fortran-common-reduce.patch:
 f-lang.c     |  382 -----------------------------------------------------------
 f-lang.h     |    5 
 f-valprint.c |   65 ----------
 3 files changed, 452 deletions(-)

Index: gdb-fortran-common-reduce.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-fortran-common-reduce.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- gdb-fortran-common-reduce.patch	16 Jan 2010 22:32:08 -0000	1.1
+++ gdb-fortran-common-reduce.patch	21 Jul 2010 21:30:19 -0000	1.2
@@ -1,6 +1,8 @@
---- a/gdb/f-lang.c
-+++ b/gdb/f-lang.c
-@@ -55,20 +55,6 @@ typedef struct saved_bf_symnum SAVED_BF, *SAVED_BF_PTR;
+Index: gdb-7.1.90.20100711/gdb/f-lang.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/f-lang.c	2010-06-03 00:41:55.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-lang.c	2010-07-13 00:24:04.000000000 +0200
+@@ -56,20 +56,6 @@ typedef struct saved_bf_symnum SAVED_BF,
  /* Local functions */
  
  extern void _initialize_f_language (void);
@@ -21,7 +23,7 @@
  
  static void f_printchar (int c, struct type *type, struct ui_file * stream);
  static void f_emit_char (int c, struct type *type,
-@@ -419,185 +405,7 @@ _initialize_f_language (void)
+@@ -458,185 +444,7 @@ _initialize_f_language (void)
    add_language (&f_language_defn);
  }
  
@@ -207,7 +209,7 @@
  
  /* This routine finds the first encountred COMMON block named "name" 
     that belongs to function funcname */
-@@ -620,193 +428,3 @@ find_common_for_function (char *name, char *funcname)
+@@ -659,193 +467,3 @@ find_common_for_function (char *name, ch
      }
    return (NULL);
  }
@@ -401,9 +403,11 @@
 -  saved_function_list = NULL;
 -}
 -#endif
---- a/gdb/f-lang.h
-+++ b/gdb/f-lang.h
-@@ -71,14 +71,9 @@ typedef struct saved_f77_common SAVED_F77_COMMON, *SAVED_F77_COMMON_PTR;
+Index: gdb-7.1.90.20100711/gdb/f-lang.h
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/f-lang.h	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-lang.h	2010-07-13 00:24:04.000000000 +0200
+@@ -76,14 +76,9 @@ typedef struct saved_f77_common SAVED_F7
  typedef struct common_entry COMMON_ENTRY, *COMMON_ENTRY_PTR;
  
  extern SAVED_F77_COMMON_PTR head_common_list;	/* Ptr to 1st saved COMMON  */
@@ -418,8 +422,10 @@
  #define BLANK_COMMON_NAME_ORIGINAL "#BLNK_COM"	/* XLF assigned  */
  #define BLANK_COMMON_NAME_MF77     "__BLNK__"	/* MF77 assigned  */
  #define BLANK_COMMON_NAME_LOCAL    "__BLANK"	/* Local GDB */
---- a/gdb/f-valprint.c
-+++ b/gdb/f-valprint.c
+Index: gdb-7.1.90.20100711/gdb/f-valprint.c
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/f-valprint.c	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-valprint.c	2010-07-13 00:24:25.000000000 +0200
 @@ -35,10 +35,6 @@
  #include "command.h"
  #include "block.h"
@@ -431,7 +437,7 @@
  extern void _initialize_f_valprint (void);
  static void info_common_command (char *, int);
  static void list_all_visible_commons (char *);
-@@ -578,67 +574,6 @@ info_common_command (char *comname, int from_tty)
+@@ -601,67 +597,6 @@ info_common_command (char *comname, int 
  		     comname, funname);
  }
  
@@ -484,7 +490,7 @@
 -  else
 -    {
 -      struct minimal_symbol *msymbol =
--      lookup_minimal_symbol_by_pc (fi->pc);
+-	lookup_minimal_symbol_by_pc (fi->pc);
 -
 -      if (msymbol != NULL)
 -	funname = SYMBOL_LINKAGE_NAME (msymbol);

gdb-fortran-common.patch:
 dwarf2read.c                           |   65 ++++++++++++++-
 f-lang.c                               |   24 -----
 f-lang.h                               |   28 ------
 f-valprint.c                           |  141 +++++++++++++++------------------
 stack.c                                |    2 
 symtab.h                               |    5 -
 testsuite/gdb.fortran/common-block.exp |  101 +++++++++++++++++++++++
 testsuite/gdb.fortran/common-block.f90 |   67 +++++++++++++++
 8 files changed, 302 insertions(+), 131 deletions(-)

Index: gdb-fortran-common.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-fortran-common.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gdb-fortran-common.patch	28 Jan 2010 22:26:14 -0000	1.2
+++ gdb-fortran-common.patch	21 Jul 2010 21:30:19 -0000	1.3
@@ -1,8 +1,8 @@
-Index: gdb-7.0.50.20100128/gdb/dwarf2read.c
+Index: gdb-7.1.90.20100711/gdb/dwarf2read.c
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/dwarf2read.c	2010-01-28 12:53:37.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/dwarf2read.c	2010-01-28 12:54:34.000000000 +0100
-@@ -5818,12 +5818,14 @@ read_set_type (struct die_info *die, str
+--- gdb-7.1.90.20100711.orig/gdb/dwarf2read.c	2010-07-13 00:13:02.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/dwarf2read.c	2010-07-13 00:26:25.000000000 +0200
+@@ -5727,12 +5727,14 @@ read_set_type (struct die_info *die, str
    return set_die_type (die, set_type, cu);
  }
  
@@ -19,7 +19,7 @@ Index: gdb-7.0.50.20100128/gdb/dwarf2rea
    struct attribute *attr;
    struct symbol *sym;
    CORE_ADDR base = (CORE_ADDR) 0;
-@@ -5848,10 +5850,40 @@ read_common_block (struct die_info *die,
+@@ -5757,10 +5759,40 @@ read_common_block (struct die_info *die,
      }
    if (die->child != NULL)
      {
@@ -60,7 +60,7 @@ Index: gdb-7.0.50.20100128/gdb/dwarf2rea
  	  attr = dwarf2_attr (child_die, DW_AT_data_member_location, cu);
  	  if (attr)
  	    {
-@@ -5869,8 +5901,25 @@ read_common_block (struct die_info *die,
+@@ -5778,8 +5810,25 @@ read_common_block (struct die_info *die,
  	      SYMBOL_VALUE_ADDRESS (sym) = base + byte_offset;
  	      add_symbol_to_list (sym, &global_symbols);
  	    }
@@ -86,7 +86,7 @@ Index: gdb-7.0.50.20100128/gdb/dwarf2rea
      }
  }
  
-@@ -9061,6 +9110,13 @@ new_symbol (struct die_info *die, struct
+@@ -9106,6 +9155,13 @@ new_symbol (struct die_info *die, struct
  	    {
  	      var_decode_location (attr, sym, cu);
  	      attr2 = dwarf2_attr (die, DW_AT_external, cu);
@@ -100,8 +100,8 @@ Index: gdb-7.0.50.20100128/gdb/dwarf2rea
  	      if (attr2 && (DW_UNSND (attr2) != 0))
  		{
  		  struct pending **list_to_add;
-@@ -9245,6 +9301,11 @@ new_symbol (struct die_info *die, struct
- 	  SYMBOL_DOMAIN (sym) = MODULE_DOMAIN;
+@@ -9277,6 +9333,11 @@ new_symbol (struct die_info *die, struct
+ 	  SYMBOL_CLASS (sym) = LOC_TYPEDEF;
  	  add_symbol_to_list (sym, &global_symbols);
  	  break;
 +	case DW_TAG_common_block:
@@ -112,11 +112,11 @@ Index: gdb-7.0.50.20100128/gdb/dwarf2rea
  	default:
  	  /* Not a tag we recognize.  Hopefully we aren't processing
  	     trash data, but since we must specifically ignore things
-Index: gdb-7.0.50.20100128/gdb/f-lang.c
+Index: gdb-7.1.90.20100711/gdb/f-lang.c
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/f-lang.c	2010-01-28 12:53:38.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/f-lang.c	2010-01-28 12:53:46.000000000 +0100
-@@ -446,27 +446,3 @@ _initialize_f_language (void)
+--- gdb-7.1.90.20100711.orig/gdb/f-lang.c	2010-07-13 00:24:04.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-lang.c	2010-07-13 00:25:56.000000000 +0200
+@@ -443,27 +443,3 @@ _initialize_f_language (void)
  
    add_language (&f_language_defn);
  }
@@ -144,11 +144,11 @@ Index: gdb-7.0.50.20100128/gdb/f-lang.c
 -    }
 -  return (NULL);
 -}
-Index: gdb-7.0.50.20100128/gdb/f-lang.h
+Index: gdb-7.1.90.20100711/gdb/f-lang.h
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/f-lang.h	2010-01-28 12:53:38.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/f-lang.h	2010-01-28 12:53:46.000000000 +0100
-@@ -51,36 +51,8 @@ enum f90_range_type
+--- gdb-7.1.90.20100711.orig/gdb/f-lang.h	2010-07-13 00:24:04.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-lang.h	2010-07-13 00:25:56.000000000 +0200
+@@ -52,36 +52,8 @@ enum f90_range_type
      NONE_BOUND_DEFAULT		/* "(low:high)"  */
    };
  
@@ -185,10 +185,10 @@ Index: gdb-7.0.50.20100128/gdb/f-lang.h
  
  /* When reasonable array bounds cannot be fetched, such as when 
     you ask to 'mt print symbols' and there is no stack frame and 
-Index: gdb-7.0.50.20100128/gdb/f-valprint.c
+Index: gdb-7.1.90.20100711/gdb/f-valprint.c
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/f-valprint.c	2010-01-28 12:53:38.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/f-valprint.c	2010-01-28 12:53:46.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/f-valprint.c	2010-07-13 00:24:25.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/f-valprint.c	2010-07-13 00:32:05.000000000 +0200
 @@ -34,6 +34,8 @@
  #include "gdbcore.h"
  #include "command.h"
@@ -198,7 +198,7 @@ Index: gdb-7.0.50.20100128/gdb/f-valprin
  
  extern void _initialize_f_valprint (void);
  static void info_common_command (char *, int);
-@@ -476,22 +478,54 @@ f_val_print (struct type *type, const gd
+@@ -486,22 +488,54 @@ f_val_print (struct type *type, const gd
    return 0;
  }
  
@@ -266,7 +266,7 @@ Index: gdb-7.0.50.20100128/gdb/f-valprin
  }
  
  /* This function is used to print out the values in a given COMMON 
-@@ -501,11 +535,9 @@ list_all_visible_commons (char *funname)
+@@ -511,11 +545,9 @@ list_all_visible_commons (char *funname)
  static void
  info_common_command (char *comname, int from_tty)
  {
@@ -280,7 +280,7 @@ Index: gdb-7.0.50.20100128/gdb/f-valprin
  
    /* We have been told to display the contents of F77 COMMON 
       block supposedly visible in this function.  Let us 
-@@ -517,74 +549,31 @@ info_common_command (char *comname, int 
+@@ -527,74 +559,31 @@ info_common_command (char *comname, int 
    /* The following is generally ripped off from stack.c's routine 
       print_frame_info() */
  
@@ -316,7 +316,7 @@ Index: gdb-7.0.50.20100128/gdb/f-valprin
 -  else
 -    {
 -      struct minimal_symbol *msymbol =
--      lookup_minimal_symbol_by_pc (get_frame_pc (fi));
+-	lookup_minimal_symbol_by_pc (get_frame_pc (fi));
 -
 -      if (msymbol != NULL)
 -	funname = SYMBOL_LINKAGE_NAME (msymbol);
@@ -371,39 +371,39 @@ Index: gdb-7.0.50.20100128/gdb/f-valprin
  }
  
  void
-Index: gdb-7.0.50.20100128/gdb/stack.c
+Index: gdb-7.1.90.20100711/gdb/stack.c
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/stack.c	2010-01-28 12:52:19.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/stack.c	2010-01-28 12:53:46.000000000 +0100
-@@ -1474,6 +1474,8 @@ print_block_frame_locals (struct block *
+--- gdb-7.1.90.20100711.orig/gdb/stack.c	2010-07-01 17:36:17.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/stack.c	2010-07-13 00:29:49.000000000 +0200
+@@ -1484,6 +1484,8 @@ iterate_over_block_locals (struct block 
  	case LOC_COMPUTED:
  	  if (SYMBOL_IS_ARGUMENT (sym))
  	    break;
 +	  if (SYMBOL_DOMAIN (sym) == COMMON_BLOCK_DOMAIN)
 +	    break;
- 	  values_printed = 1;
- 	  print_variable_and_value (NULL, sym, frame, stream, 4 * num_tabs);
+ 	  (*cb) (SYMBOL_PRINT_NAME (sym), sym, cb_data);
  	  break;
-Index: gdb-7.0.50.20100128/gdb/symtab.h
+ 
+Index: gdb-7.1.90.20100711/gdb/symtab.h
 ===================================================================
---- gdb-7.0.50.20100128.orig/gdb/symtab.h	2010-01-28 12:52:20.000000000 +0100
-+++ gdb-7.0.50.20100128/gdb/symtab.h	2010-01-28 12:53:46.000000000 +0100
-@@ -401,7 +401,10 @@ typedef enum domain_enum_tag
-   TYPES_DOMAIN,
- 
-   /* Fortran module.  Their naming must be separate.  */
--  MODULE_DOMAIN
-+  MODULE_DOMAIN,
+--- gdb-7.1.90.20100711.orig/gdb/symtab.h	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/symtab.h	2010-07-13 00:27:02.000000000 +0200
+@@ -396,7 +396,10 @@ typedef enum domain_enum_tag
+   FUNCTIONS_DOMAIN,
+ 
+   /* All defined types */
+-  TYPES_DOMAIN
++  TYPES_DOMAIN,
 +
 +  /* Fortran common blocks.  Their naming must be separate from VAR_DOMAIN.  */
 +  COMMON_BLOCK_DOMAIN
  }
  domain_enum;
  
-Index: gdb-7.0.50.20100128/gdb/testsuite/gdb.fortran/common-block.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.exp
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.0.50.20100128/gdb/testsuite/gdb.fortran/common-block.exp	2010-01-28 12:53:46.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.exp	2010-07-13 00:25:56.000000000 +0200
 @@ -0,0 +1,101 @@
 +# Copyright 2008 Free Software Foundation, Inc.
 +
@@ -506,10 +506,10 @@ Index: gdb-7.0.50.20100128/gdb/testsuite
 +gdb_test "p ix_x" " = 1 *" "p ix_x in"
 +gdb_test "p iy_y" " = 2 *" "p iy_y in"
 +gdb_test "p iz_z2" " = 3 *" "p iz_z2 in"
-Index: gdb-7.0.50.20100128/gdb/testsuite/gdb.fortran/common-block.f90
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.f90
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.0.50.20100128/gdb/testsuite/gdb.fortran/common-block.f90	2010-01-28 12:53:46.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.f90	2010-07-13 00:25:56.000000000 +0200
 @@ -0,0 +1,67 @@
 +! Copyright 2008 Free Software Foundation, Inc.
 +!

gdb-rhel5-gcc44.patch:
 gdb.base/break-interp.exp      |   22 +++++++++++++++++++++-
 gdb.base/vla.exp               |   20 +++++++++++++++++++-
 gdb.fortran/common-block.exp   |   20 +++++++++++++++++++-
 gdb.fortran/derived-type.exp   |   22 ++++++++++++++++++++--
 gdb.fortran/dwarf-stride.exp   |   20 +++++++++++++++++++-
 gdb.fortran/dynamic.exp        |   20 +++++++++++++++++++-
 gdb.fortran/library-module.exp |   26 ++++++++++++++++++++++----
 gdb.fortran/module.exp         |   20 +++++++++++++++++++-
 gdb.fortran/omp-step.exp       |   21 ++++++++++++++++++++-
 gdb.fortran/string.exp         |   20 +++++++++++++++++++-
 gdb.fortran/subarray.exp       |   22 ++++++++++++++++++++--
 gdb.threads/tls-sepdebug.exp   |   20 +++++++++++++++++++-
 lib/prelink-support.exp        |   26 ++++++++++++++++++++++++--
 13 files changed, 260 insertions(+), 19 deletions(-)

Index: gdb-rhel5-gcc44.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-rhel5-gcc44.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- gdb-rhel5-gcc44.patch	11 Jul 2010 18:06:33 -0000	1.3
+++ gdb-rhel5-gcc44.patch	21 Jul 2010 21:30:19 -0000	1.4
@@ -1,10 +1,10 @@
 Some functionality is available on RHEL-5.4+ only with gcc44 and gfortran44 as
 the default gcc and gfortran binaries are from gcc-4.1.
 
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.base/vla.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/vla.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.base/vla.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.base/vla.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/vla.exp	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/vla.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -16,7 +16,25 @@
  set testfile vla
  set srcfile ${testfile}.c
@@ -32,11 +32,11 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile test program"
      return -1
  }
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.base/break-interp.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/break-interp.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.base/break-interp.exp	2010-01-14 22:12:00.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.base/break-interp.exp	2010-01-15 22:14:51.000000000 +0100
-@@ -31,10 +31,30 @@ if [get_compiler_info ${binfile_lib}] {
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/break-interp.exp	2010-07-05 20:04:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/break-interp.exp	2010-07-13 23:11:22.000000000 +0200
+@@ -33,9 +33,29 @@ if [get_compiler_info ${binfile_lib}] {
      return -1
  }
  
@@ -53,8 +53,7 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
 +}
 +set_board_info compiler gcc44
 +
- # Use -soname so that it is listed with " => " by ldd and this testcase makes
- # a copy of ${binfile_lib} for each prelink variant.
+ # Use -soname so that the new library gets copied by build_executable_own_libs.
  
 -if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} [list debug additional_flags=-Wl,-soname,${test}.so]] != ""} {
 +set err [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} [list debug additional_flags=-Wl,-soname,${test}.so]]
@@ -68,46 +67,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-@@ -480,9 +500,33 @@ foreach ldprelink {NO YES} {
- 		    if {$binpie != "NO"} {
- 			lappend opts {additional_flags=-fPIE -pie}
- 		    }
--		    if {[build_executable ${test}.exp [file tail $exec] $srcfile $opts] == -1} {
--			continue;
-+
-+
-+		    # Temporarily provide compiler=gcc44 saving the original value around.
-+		    # RHEL-5 workaround of its:
-+		    #   gcc: -rpath: linker input file unused because linking not done
-+		    #   gcc: --dynamic-linker: linker input file unused because linking not done
-+
-+		    set board [target_info name]
-+		    if [board_info $board exists compiler] {
-+			set old_compiler [board_info $board compiler]
-+			unset_board_info compiler
-+		    } elseif [info exists old_compiler] {
-+			unset old_compiler
-+		    }
-+		    set_board_info compiler gcc44
-+
-+		    set err [build_executable ${test}.exp [file tail $exec] $srcfile $opts]
-+
-+		    unset_board_info compiler
-+		    if [info exists old_compiler] {
-+			set_board_info compiler $old_compiler
- 		    }
-+
-+		    if { $err == -1 } {
-+			continue
-+		    }
-+
- 		    if {$binsepdebug == "SEP"} {
- 			gdb_gnu_strip_debug $exec
- 			# Just a sanity check.  As gdb_gnu_strip_debug uses the
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/common-block.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/common-block.exp	2010-01-15 22:14:17.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/common-block.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/common-block.exp	2010-07-13 00:25:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/common-block.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -20,7 +20,25 @@ set testfile "common-block"
  set srcfile ${testfile}.f90
  set binfile ${objdir}/${subdir}/${testfile}
@@ -135,10 +98,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile ${srcfile}"
      return -1
  }
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/dwarf-stride.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/dwarf-stride.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/dwarf-stride.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -27,7 +27,25 @@
  set testfile dwarf-stride
  set srcfile ${testfile}.f90
@@ -166,10 +129,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/dynamic.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/dynamic.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/dynamic.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/dynamic.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/dynamic.exp	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/dynamic.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -25,7 +25,25 @@ set testfile "dynamic"
  set srcfile ${testfile}.f90
  set binfile ${objdir}/${subdir}/${testfile}
@@ -197,10 +160,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile ${srcfile}"
      return -1
  }
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/library-module.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/library-module.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/library-module.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/library-module.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/library-module.exp	2010-06-03 00:41:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/library-module.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -25,16 +25,34 @@ if [get_compiler_info not-used] {
     return -1
  }
@@ -240,10 +203,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile ${srcfile}"
      return -1
  }
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/module.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/module.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/module.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/module.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/module.exp	2010-06-03 01:01:01.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/module.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -16,7 +16,25 @@
  set testfile "module"
  set srcfile ${testfile}.f90
@@ -271,10 +234,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/string.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/string.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/string.exp	2010-01-15 22:14:13.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/string.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/string.exp	2010-07-12 23:07:33.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/string.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -23,7 +23,25 @@ set testfile "string"
  set srcfile ${testfile}.f90
  set binfile ${objdir}/${subdir}/${testfile}
@@ -302,10 +265,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile ${srcfile}"
      return -1
  }
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/omp-step.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/omp-step.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/omp-step.exp	2010-01-15 22:14:16.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/omp-step.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/omp-step.exp	2010-07-13 00:21:30.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/omp-step.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -15,7 +15,26 @@
  
  set testfile "omp-step"
@@ -334,10 +297,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/derived-type.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/derived-type.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/derived-type.exp	2010-01-01 08:32:02.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/derived-type.exp	2010-01-15 22:16:20.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/derived-type.exp	2010-01-01 08:32:02.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/derived-type.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -28,8 +28,26 @@ set testfile "derived-type"
  set srcfile ${testfile}.f90
  set binfile ${objdir}/${subdir}/${testfile}
@@ -367,10 +330,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/subarray.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/subarray.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.fortran/subarray.exp	2010-01-01 08:32:02.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.fortran/subarray.exp	2010-01-15 22:17:18.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.fortran/subarray.exp	2010-01-01 08:32:02.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.fortran/subarray.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -28,8 +28,26 @@ set testfile "subarray"
  set srcfile ${testfile}.f
  set binfile ${objdir}/${subdir}/${testfile}
@@ -400,10 +363,10 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      return -1
  }
  
-Index: gdb-7.0.50.20100115/gdb/testsuite/gdb.threads/tls-sepdebug.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.threads/tls-sepdebug.exp
 ===================================================================
---- gdb-7.0.50.20100115.orig/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2010-01-15 22:14:15.000000000 +0100
-+++ gdb-7.0.50.20100115/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2010-01-15 22:14:51.000000000 +0100
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2010-07-12 23:07:34.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.threads/tls-sepdebug.exp	2010-07-13 23:05:14.000000000 +0200
 @@ -32,7 +32,25 @@ set binshareddebugfile ${objdir}/${subdi
  
  # FIXME: gcc dependency (-Wl,-soname).
@@ -431,3 +394,41 @@ Index: gdb-7.0.50.20100115/gdb/testsuite
      untested "Couldn't compile test library"
      return -1
  }
+Index: gdb-7.1.90.20100711/gdb/testsuite/lib/prelink-support.exp
+===================================================================
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/lib/prelink-support.exp	2010-07-05 20:02:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/lib/prelink-support.exp	2010-07-13 23:09:34.000000000 +0200
+@@ -118,9 +118,31 @@ proc file_copy {src dest} {
+ proc build_executable_own_libs {testname executable sources options {interp ""} {dir ""}} {
+     global objdir subdir
+ 
+-    if {[build_executable $testname $executable $sources $options] == -1} {
+-	return ""
++    # Temporarily provide compiler=gcc44 saving the original value around.
++    # RHEL-5 workaround of its:
++    #   gcc: -rpath: linker input file unused because linking not done
++    #   gcc: --dynamic-linker: linker input file unused because linking not done
++
++    set board [target_info name]
++    if [board_info $board exists compiler] {
++	set old_compiler [board_info $board compiler]
++	unset_board_info compiler
++    } elseif [info exists old_compiler] {
++	unset old_compiler
+     }
++    set_board_info compiler gcc44
++
++    set err [build_executable $testname $executable $sources $options]
++
++    unset_board_info compiler
++    if [info exists old_compiler] {
++	set_board_info compiler $old_compiler
++    }
++
++    if { $err == -1 } {
++	return ""   
++    }
++
+     set binfile ${objdir}/${subdir}/${executable}
+ 
+     set command "ldd $binfile"


Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -p -r1.411 -r1.412
--- gdb.spec	13 Jul 2010 06:51:09 -0000	1.411
+++ gdb.spec	21 Jul 2010 21:30:20 -0000	1.412
@@ -32,18 +32,18 @@ Name: gdb%{?_with_debug:-debug}
 # Set version to contents of gdb/version.in.
 # NOTE: the FSF gdb versions are numbered N.M for official releases, like 6.3
 # and, since January 2005, X.Y.Z.date for daily snapshots, like 6.3.50.20050112 # (daily snapshot from mailine), or 6.3.0.20040112 (head of the release branch).
-Version: 7.1
+Version: 7.1.90.20100721
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 29%{?_with_upstream:.upstream}%{dist}
+Release: 1%{?_with_upstream:.upstream}%{dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and GFDL and BSD and Public Domain
 Group: Development/Debuggers
 # Do not provide URL for snapshots as the file lasts there only for 2 days.
 # ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-%{version}.tar.bz2
 # ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.bz2
-Source: ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.bz2
+Source: ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-%{version}.tar.bz2
 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 URL: http://gnu.org/software/gdb/
 
@@ -81,10 +81,6 @@ Source2: gdb-orphanripper.c
 # Man page for gstack(1).
 Source3: gdb-gstack.man
 
-# libstdc++ pretty printers from GCC SVN HEAD (4.5 experimental).
-%define libstdcxxpython libstdc++-v3-python-r155978
-Source4: %{libstdcxxpython}.tar.bz2
-
 # Work around out-of-date dejagnu that does not have KFAIL
 Patch1: gdb-6.3-rh-dummykfail-20041202.patch
 
@@ -193,9 +189,6 @@ Patch190: gdb-6.5-dwarf-stack-overflow.p
 # Support TLS symbols (+`errno' suggestion if no pthread is found) (BZ 185337).
 Patch194: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
 
-# Fix TLS symbols resolving for objects with separate .debug file (-debuginfo).
-Patch195: gdb-6.5-tls-of-separate-debuginfo.patch
-
 # Fix TLS symbols resolving for shared libraries with a relative pathname.
 # The testsuite needs `gdb-6.5-tls-of-separate-debuginfo.patch'.
 Patch196: gdb-6.5-sharedlibrary-path.patch
@@ -204,9 +197,6 @@ Patch196: gdb-6.5-sharedlibrary-path.pat
 # FIXME: It could be autodetected.
 Patch199: gdb-6.5-bz190810-gdbserver-arch-advice.patch
 
-# Fix `gcore' command for 32bit inferiors on 64bit hosts.
-Patch201: gdb-6.5-gcore-i386-on-amd64.patch
-
 # Testcase for deadlocking on last address space byte; for corrupted backtraces.
 Patch211: gdb-6.5-last-address-space-byte-test.patch
 
@@ -236,7 +226,7 @@ Patch229: gdb-6.3-bz140532-ppc-unwinding
 Patch231: gdb-6.3-bz202689-exec-from-pthread-test.patch
 
 # Backported fixups post the source tarball.
-Patch232: gdb-upstream.patch
+#Patch232: gdb-upstream.patch
 
 # Testcase for PPC Power6/DFP instructions disassembly (BZ 230000).
 Patch234: gdb-6.6-bz230000-power6-disassembly-test.patch
@@ -244,9 +234,6 @@ Patch234: gdb-6.6-bz230000-power6-disass
 # Temporary support for shared libraries >2GB on 64bit hosts. (BZ 231832)
 Patch235: gdb-6.3-bz231832-obstack-2gb.patch
 
-# Fix prelink(8) testcase for non-root $PATH missing `/usr/sbin' (BZ 225783).
-Patch240: gdb-6.6-bz225783-prelink-path.patch
-
 # Fix debugging GDB itself - the compiled in source files paths (BZ 225783).
 Patch241: gdb-6.6-bz225783-gdb-debuginfo-paths.patch
 
@@ -256,9 +243,6 @@ Patch245: gdb-6.6-bz229517-gcore-without
 # Notify user of a child forked process being detached (BZ 235197).
 Patch247: gdb-6.6-bz235197-fork-detach-info.patch
 
-# New testcase for gcore of 32bit inferiors on 64bit hosts.
-Patch249: gdb-6.6-gcore32-test.patch
-
 # Avoid too long timeouts on failing cases of "annota1.exp annota3.exp".
 Patch254: gdb-6.6-testsuite-timeouts.patch
 
@@ -330,9 +314,6 @@ Patch318: gdb-6.8-gcc35998-ada-memory-tr
 # Test a crash on libraries missing the .text section.
 Patch320: gdb-6.5-section-num-fixup-test.patch
 
-# Refuse creating watchpoints of an address value, suggested by Martin Stransky.
-Patch322: gdb-6.8-constant-watchpoints.patch
-
 # Fix compatibility with recent glibc headers.
 Patch324: gdb-6.8-glibc-headers-compat.patch
 
@@ -397,9 +378,6 @@ Patch403: gdb-ccache-workaround.patch
 Patch404: gdb-fortran-common-reduce.patch
 Patch405: gdb-fortran-common.patch
 
-# Fix Fortran logical-kind=8 (BZ 465310).
-Patch406: gdb-fortran-logical8.patch
-
 # Testcase for "Do not make up line information" fix by Daniel Jacobowitz.
 Patch407: gdb-lineno-makeup-test.patch
 
@@ -412,118 +390,27 @@ Patch412: gdb-unused-revert.patch
 # Fix i386+x86_64 rwatch+awatch before run, regression against 6.8 (BZ 541866).
 Patch417: gdb-bz541866-rwatch-before-run.patch
 
-# Remove false gdb_assert on $sp underflow.
-Patch422: gdb-infcall-sp-underflow.patch
-
-# Fix double-free on std::terminate handler (Tom Tromey, BZ 562975).
-Patch429: gdb-bz562975-std-terminate-double-free.patch
-
-# PIE: Fix back re-reun.
-Patch430: gdb-pie-rerun.patch
-
-# Do not consider memory error on reading _r_debug->r_map as fatal (BZ 576742).
-Patch432: gdb-solib-memory-error-nonfatal.patch
-
-# testsuite: Fix unstable results of gdb.base/prelink.exp.
-Patch433: gdb-6.7-testsuite-stable-results-prelink.patch 
-
-# [patch 1/6] PIE: Attach binary even after re-prelinked underneath
-# [patch 2/6] PIE: Attach binary even after ld.so re-prelinked underneath
-# [patch 3/6] PIE: Fix occasional error attaching i686 binary
-Patch434: gdb-pie-1of6-reprelinked-bin.patch
-Patch435: gdb-pie-2of6-reprelinked-ld.patch
-Patch436: gdb-pie-3of6-relocate-once.patch
-
-# [expr-cumulative] using-directive: Fix memory leak (Sami Wagiaalla).
-Patch437: gdb-using-directive-leak.patch
-
-# Fix dangling displays in separate debuginfo (BZ 574483).
-Patch438: gdb-bz574483-display-sepdebug.patch
-
-# Support AVX registers (BZ 578250).
-Patch439: gdb-bz578250-avx-01of10.patch
-Patch440: gdb-bz578250-avx-02of10.patch
-Patch441: gdb-bz578250-avx-03of10.patch
-Patch442: gdb-bz578250-avx-04of10.patch
-Patch443: gdb-bz578250-avx-05of10.patch
-Patch444: gdb-bz578250-avx-06of10.patch
-Patch445: gdb-bz578250-avx-07of10.patch
-Patch446: gdb-bz578250-avx-08of10.patch
-Patch447: gdb-bz578250-avx-09of10.patch
-Patch448: gdb-bz578250-avx-10of10.patch
-Patch449: gdb-bz578250-avx-10of10-ppc.patch
-
 # Fix crash on C++ types in some debug info files (BZ 575292, Keith Seitz).
 # Temporarily workaround the crash of BZ 575292 as there was now BZ 585445.
 # Re-enable the BZ 575292 and BZ 585445 C++ fix using an updated patch.
 Patch451: gdb-bz575292-delayed-physname.patch
-Patch455: gdb-bz575292-void-workaround.patch
-
-# Pretty printers not well documented (BZ 570635, Tom Tromey, Jan Kratochvil).
-Patch452: gdb-bz570635-prettyprint-doc1.patch
-Patch453: gdb-bz570635-prettyprint-doc2.patch
 
 # Fix crash when using GNU IFUNC call from breakpoint condition.
 Patch454: gdb-bz539590-gnu-ifunc-fix-cond.patch
 
-# Fail gracefully if the _Unwind_DebugHook arg. is optimized out (Tom Tromey).
-# Make _Unwind_DebugHook independent from step-resume breakpoint (Tom Tromey).
-Patch456: gdb-unwind-debughook-safe-fail.patch
-Patch457: gdb-unwind-debughook-step-independent.patch
-
-# testsuite: Fix gdb.base/vla-overflow.exp FAILing on s390x (BZ 590635).
-Patch458: gdb-archer-vla-test-oom.patch
-
 # Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623).
 Patch459: gdb-moribund-utrace-workaround.patch
 
-# Fix crash on VLA bound referencing an optimized-out variable (BZ 591879).
-Patch460: gdb-archer-vla-ref-optimizedout.patch
-
 # Remove core file when starting a process (BZ 594560).
 Patch461: gdb-bz594560-core-vs-process.patch
 
-# Import fix of TUI layout internal error (BZ 595475).
-Patch462: gdb-bz595475-tui-layout.patch
-
-# Fix and support DW_OP_*piece (Tom Tromey, BZ 589467).
-Patch463: gdb-bz589467-pieces01of4.patch
-Patch464: gdb-bz589467-pieces02of4.patch
-Patch465: gdb-bz589467-pieces03of4.patch
-Patch466: gdb-bz589467-pieces1of4.patch
-Patch467: gdb-bz589467-pieces2of4.patch
-Patch468: gdb-bz589467-pieces3of4.patch
-Patch469: gdb-bz589467-pieces4of4.patch
-Patch471: gdb-bz589467-pieces-vla-compat.patch
-
 # Fix follow-exec for C++ programs (bugreported by Martin Stransky).
 Patch470: gdb-archer-next-over-throw-cxx-exec.patch
 
-# Fix ADL anonymous type crash (BZ 600746, Sami Wagiaalla).
-Patch472: gdb-bz600746-koenig-crash.patch
-
 # Backport DWARF-4 support (BZ 601887, Tom Tromey).
-Patch473: gdb-bz601887-dwarf4-1of2.patch
-Patch474: gdb-bz601887-dwarf4-2of2.patch
 Patch475: gdb-bz601887-dwarf4-rh-test.patch
 
-# Fix obstack corruptions on C++ (BZ 606185, Chris Moller, Jan Kratochvil).
-Patch476: gdb-bz606185-obstack-1of5.patch
-Patch477: gdb-bz606185-obstack-2of5.patch
-Patch478: gdb-bz606185-obstack-3of5.patch
-Patch479: gdb-bz606185-obstack-4of5.patch
-Patch480: gdb-bz606185-obstack-5of5.patch
-
-# Improve support for typedefs in classes (BZ 602314).
-Patch481: gdb-bz602314-ptype-class-typedef-1of3.patch
-Patch482: gdb-bz602314-ptype-class-typedef-2of3.patch
-Patch483: gdb-bz602314-ptype-class-typedef-3of3.patch
-
-# Fix `set print object on' for some non-dynamic classes (BZ 606660).
-Patch484: gdb-bz606660-print-object-nonvirtual.patch
-
 # Print 2D C++ vectors as matrices (BZ 562763, sourceware10659, Chris Moller).
-Patch485: gdb-bz562763-pretty-print-2d-vectors-prereq.patch
 Patch486: gdb-bz562763-pretty-print-2d-vectors.patch
 Patch487: gdb-bz562763-pretty-print-2d-vectors-libstdcxx.patch
 
@@ -663,7 +550,7 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc
 
 %if 0%{!?_with_upstream:1}
 
-%patch232 -p1
+#patch232 -p1
 %patch349 -p1
 %patch420 -p1
 %patch1 -p1
@@ -699,10 +586,8 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc
 %patch188 -p1
 %patch190 -p1
 %patch194 -p1
-%patch195 -p1
 %patch196 -p1
 %patch199 -p1
-%patch201 -p1
 %patch208 -p1
 %patch209 -p1
 %patch211 -p1
@@ -715,11 +600,9 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc
 %patch231 -p1
 %patch234 -p1
 %patch235 -p1
-%patch240 -p1
 %patch241 -p1
 %patch245 -p1
 %patch247 -p1
-%patch249 -p1
 %patch254 -p1
 %patch258 -p1
 %patch260 -p1
@@ -746,7 +629,6 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc
 %patch317 -p1
 %patch318 -p1
 %patch320 -p1
-%patch322 -p1
 %patch324 -p1
 %patch326 -p1
 %patch329 -p1
@@ -767,80 +649,23 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc
 %patch405 -p1
 %patch389 -p1
 %patch394 -p1
-%patch406 -p1
 %patch407 -p1
 %patch408 -p1
 %patch412 -p1
 %patch417 -p1
-%patch422 -p1
-%patch429 -p1
-%patch430 -p1
-%patch432 -p1
-%patch433 -p1
-%patch434 -p1
-%patch435 -p1
-%patch436 -p1
-%patch437 -p1
-%patch438 -p1
-%patch439 -p1
-%patch440 -p1
-%patch441 -p1
-%patch442 -p1
-%patch443 -p1
-%patch444 -p1
-%patch445 -p1
-%patch446 -p1
-%patch447 -p1
-%patch448 -p1
-%patch449 -p1
 %patch451 -p1
-%patch452 -p1
-%patch453 -p1
 %patch454 -p1
-%patch455 -p1
-%patch456 -p1
-%patch457 -p1
-%patch458 -p1
 %patch459 -p1
-%patch460 -p1
 %patch461 -p1
-%patch462 -p1
-%patch463 -p1
-%patch464 -p1
-%patch465 -p1
-%patch466 -p1
-%patch467 -p1
-%patch468 -p1
-%patch469 -p1
-%patch471 -p1
 %patch470 -p1
-%patch472 -p1
-%patch473 -p1
-%patch474 -p1
 %patch475 -p1
-%patch476 -p1
-%patch477 -p1
-%patch478 -p1
-%patch479 -p1
-%patch480 -p1
-%patch481 -p1
-%patch482 -p1
-%patch483 -p1
-%patch484 -p1
-%patch485 -p1
 %patch486 -p1
-# Disabled now for F-14 before rebase.
+# This patch should be applied to gcc-4.5+.src.rpm:
 #patch487 -p1
-
 %patch415 -p1
+
 %patch393 -p1
 %patch335 -p1
-# Patch415: gdb-6.6-buildid-locate-core-as-arg.patch
-# Currently disabled for RHEL as it is a new experimental feature not present
-# in FSF GDB and possibly affecting new user scripts.
-%if 0%{?rhel:1}
-%patch415 -p1 -R
-%endif
 %if 0%{!?el5:1}
 %patch393 -p1 -R
 %patch335 -p1 -R
@@ -1161,9 +986,13 @@ fi
 %endif
 %{_bindir}/gdbserver
 %{_mandir}/*/gdbserver.1*
+%{_libdir}/libinproctrace.so
 %endif
 
 %changelog
+* Wed Jul 21 2010 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.1.90.20100721-1.fc14
+- Rebase to FSF GDB 7.1.90.20100721 (which is 7.2 pre-release).
+
 * Tue Jul 13 2010 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.1-29.fc14
 - Disable temporarily Python files before the new rebase is done (BZ 613710).
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/sources,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -p -r1.48 -r1.49
--- sources	11 Jul 2010 18:06:33 -0000	1.48
+++ sources	21 Jul 2010 21:30:20 -0000	1.49
@@ -1,2 +1 @@
-21dce610476c054687b52770d2ddc657  gdb-7.1.tar.bz2
-04e5c4b1b9e633422cc48990fe61958d  libstdc++-v3-python-r155978.tar.bz2
+26c6432521efa296bf8bdcae465c048b  gdb-7.1.90.20100721.tar.bz2


--- gdb-6.5-gcore-i386-on-amd64.patch DELETED ---


--- gdb-6.5-tls-of-separate-debuginfo.patch DELETED ---


--- gdb-6.6-bz225783-prelink-path.patch DELETED ---


--- gdb-6.6-gcore32-test.patch DELETED ---


--- gdb-6.7-testsuite-stable-results-prelink.patch DELETED ---


--- gdb-6.8-constant-watchpoints.patch DELETED ---


--- gdb-archer-vla-ref-optimizedout.patch DELETED ---


--- gdb-archer-vla-test-oom.patch DELETED ---


--- gdb-bz562763-pretty-print-2d-vectors-prereq.patch DELETED ---


--- gdb-bz562975-std-terminate-double-free.patch DELETED ---


--- gdb-bz570635-prettyprint-doc1.patch DELETED ---


--- gdb-bz570635-prettyprint-doc2.patch DELETED ---


--- gdb-bz574483-display-sepdebug.patch DELETED ---


--- gdb-bz575292-void-workaround.patch DELETED ---


--- gdb-bz578250-avx-01of10.patch DELETED ---


--- gdb-bz578250-avx-02of10.patch DELETED ---


--- gdb-bz578250-avx-03of10.patch DELETED ---


--- gdb-bz578250-avx-04of10.patch DELETED ---


--- gdb-bz578250-avx-05of10.patch DELETED ---


--- gdb-bz578250-avx-06of10.patch DELETED ---


--- gdb-bz578250-avx-07of10.patch DELETED ---


--- gdb-bz578250-avx-08of10.patch DELETED ---


--- gdb-bz578250-avx-09of10.patch DELETED ---


--- gdb-bz578250-avx-10of10-ppc.patch DELETED ---


--- gdb-bz578250-avx-10of10.patch DELETED ---


--- gdb-bz589467-pieces-vla-compat.patch DELETED ---


--- gdb-bz589467-pieces01of4.patch DELETED ---


--- gdb-bz589467-pieces02of4.patch DELETED ---


--- gdb-bz589467-pieces03of4.patch DELETED ---


--- gdb-bz589467-pieces1of4.patch DELETED ---


--- gdb-bz589467-pieces2of4.patch DELETED ---


--- gdb-bz589467-pieces3of4.patch DELETED ---


--- gdb-bz589467-pieces4of4.patch DELETED ---


--- gdb-bz595475-tui-layout.patch DELETED ---


--- gdb-bz600746-koenig-crash.patch DELETED ---


--- gdb-bz601887-dwarf4-1of2.patch DELETED ---


--- gdb-bz601887-dwarf4-2of2.patch DELETED ---


--- gdb-bz602314-ptype-class-typedef-1of3.patch DELETED ---


--- gdb-bz602314-ptype-class-typedef-2of3.patch DELETED ---


--- gdb-bz602314-ptype-class-typedef-3of3.patch DELETED ---


--- gdb-bz606185-obstack-1of5.patch DELETED ---


--- gdb-bz606185-obstack-2of5.patch DELETED ---


--- gdb-bz606185-obstack-3of5.patch DELETED ---


--- gdb-bz606185-obstack-4of5.patch DELETED ---


--- gdb-bz606185-obstack-5of5.patch DELETED ---


--- gdb-bz606660-print-object-nonvirtual.patch DELETED ---


--- gdb-fortran-logical8.patch DELETED ---


--- gdb-infcall-sp-underflow.patch DELETED ---


--- gdb-pie-1of6-reprelinked-bin.patch DELETED ---


--- gdb-pie-2of6-reprelinked-ld.patch DELETED ---


--- gdb-pie-3of6-relocate-once.patch DELETED ---


--- gdb-pie-rerun.patch DELETED ---


--- gdb-solib-memory-error-nonfatal.patch DELETED ---


--- gdb-unwind-debughook-safe-fail.patch DELETED ---


--- gdb-unwind-debughook-step-independent.patch DELETED ---


--- gdb-upstream.patch DELETED ---


--- gdb-using-directive-leak.patch DELETED ---



More information about the scm-commits mailing list