rpms/gdb/F-12 gdb-6.3-test-dtorfix-20050121.patch, 1.8, 1.9 gdb-7.0-upstream.patch, 1.4, 1.5 gdb.spec, 1.405, 1.406

Jan Kratochvil jkratoch at fedoraproject.org
Thu Dec 24 22:39:37 UTC 2009


Author: jkratoch

Update of /cvs/pkgs/rpms/gdb/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13349

Modified Files:
	gdb-6.3-test-dtorfix-20050121.patch gdb-7.0-upstream.patch 
	gdb.spec 
Log Message:
* Thu Dec 24 2009 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.0-14.fc12
- testsuite: Fix constructortest.exp and expand-sals.exp for gcc-4.4.2-20.fc12.


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

Index: gdb-6.3-test-dtorfix-20050121.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/F-12/gdb-6.3-test-dtorfix-20050121.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- gdb-6.3-test-dtorfix-20050121.patch	27 Aug 2008 11:07:47 -0000	1.8
+++ gdb-6.3-test-dtorfix-20050121.patch	24 Dec 2009 22:39:35 -0000	1.9
@@ -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,131 @@
+@@ -0,0 +1,137 @@
 +# This testcase is part of GDB, the GNU debugger.
 +
 +# Copyright 2005, 2007 Free Software Foundation, Inc.
@@ -179,8 +179,9 @@ Index: gdb/testsuite/ChangeLog
 +    gdb_suppress_tests
 +}
 +
-+# Break on the various forms of the A::A constructor
-+gdb_test "break A\:\:A" "Breakpoint 2 at .* \\(2 locations\\)" "breaking on A::A"
++# Break on the various forms of the A::A constructor.
++# " (2 locations)" is displayed depending on G++ version.
++gdb_test "break A\:\:A" "Breakpoint 2 at .*" "breaking on A::A"
 +        
 +# Verify that we break for the A constructor two times
 +# Once for new A and once for new B
@@ -206,7 +207,8 @@ Index: gdb/testsuite/ChangeLog
 +gdb_test "break 'A::A()'" "" "break in constructor A 2"
 +gdb_continue_to_breakpoint "First line A"
 +set second_line [gdb_get_line_number "Second line A"]
-+gdb_test "break $second_line" "Breakpoint .*, line $second_line. \\(2 locations\\)" "break by line in constructor"
++# " (2 locations)" is displayed depending on G++ version.
++gdb_test "break $second_line" "Breakpoint .*, line $second_line\\..*" "break by line in constructor"
 +gdb_continue_to_breakpoint "Second line A"
 +gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::A second line"
 +gdb_continue_to_breakpoint "Second line A"
@@ -217,7 +219,8 @@ Index: gdb/testsuite/ChangeLog
 +gdb_test "break 'A::~A()'" "" "break in constructor ~A 2"
 +gdb_continue_to_breakpoint "First line ~A"
 +set second_line_dtor [gdb_get_line_number "Second line ~A"]
-+gdb_test "break $second_line_dtor" "Breakpoint .*, line $second_line_dtor. \\(2 locations\\)" "break by line in destructor"
++# " (2 locations)" is displayed depending on G++ version.
++gdb_test "break $second_line_dtor" "Breakpoint .*, line $second_line_dtor\\..*" "break by line in destructor"
 +gdb_continue_to_breakpoint "Second line ~A"
 +gdb_test "bt" "#0.*A.*#1.*main.*" "Verify in in-charge A::~A second line"
 +# FIXME: Analyse this case better.
@@ -232,8 +235,10 @@ Index: gdb/testsuite/ChangeLog
 +gdb_load ${binfile}
 +runto_main
 +
++set define_line_dtor [gdb_get_line_number "Destructor C"]
 +# Break on the various forms of the C::~C destructor
-+gdb_test "break C\:\:~C" "Breakpoint .* \\(3 locations\\)" "breaking on C::~C"
++# " ([23] locations)" is displayed depending on G++ version.
++gdb_test "break C\:\:~C" "Breakpoint .*, line $define_line_dtor\\..*" "breaking on C::~C"
 +gdb_continue_to_breakpoint "First line ~C"
 +
 +# Verify that we can break by line number in a destructor and find
@@ -243,7 +248,8 @@ Index: gdb/testsuite/ChangeLog
 +delete_breakpoints
 +
 +set first_line_dtor [gdb_get_line_number "First line ~C"]
-+gdb_test "break $first_line_dtor" "Breakpoint .*, line $first_line_dtor. \\(3 locations\\)" "break by line in destructor"
++# " (3 locations)" is displayed depending on G++ version.
++gdb_test "break $first_line_dtor" "Breakpoint .*, line $first_line_dtor\\..*" "break by line in destructor"
 +
 +# Run to `main' where we begin our tests.
 +# Set the breakpoints first to test PIE multiple-PC BREAKPOINT_RE_SET.

gdb-7.0-upstream.patch:
 gdb/COPYING                              |  916 ++++++++++++++++++++---------
 gdb/ChangeLog                            |   75 ++
 gdb/amd64-tdep.c                         |    2 
 gdb/amd64fbsd-nat.c                      |    3 
 gdb/arm-tdep.c                           |  212 ++++++
 gdb/completer.c                          |    4 
 gdb/dbxread.c                            |    9 
 gdb/dcache.c                             |  139 +++-
 gdb/doc/ChangeLog                        |    4 
 gdb/doc/gpl.texi                         |  958 ++++++++++++++++++++-----------
 gdb/dwarf2-frame.c                       |    8 
 gdb/dwarf2read.c                         |    3 
 gdb/elfread.c                            |    3 
 gdb/objfiles.c                           |   16 
 gdb/score-tdep.c                         |   52 -
 gdb/score-tdep.h                         |   64 --
 gdb/testsuite/ChangeLog                  |   21 
 gdb/testsuite/gdb.base/bigcore.exp       |    2 
 gdb/testsuite/gdb.base/foll-fork.c       |    3 
 gdb/testsuite/gdb.base/foll-fork.exp     |    3 
 gdb/testsuite/gdb.base/structs.c         |    6 
 gdb/testsuite/gdb.base/structs.exp       |   62 +-
 src/gdb/doc/gdb.texinfo                  |   13 
 src/gdb/testsuite/gdb.base/default.exp   |    7 
 src/gdb/testsuite/gdb.cp/expand-sals.cc  |    2 
 src/gdb/testsuite/gdb.cp/expand-sals.exp |    6 
 26 files changed, 1785 insertions(+), 808 deletions(-)

Index: gdb-7.0-upstream.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/F-12/gdb-7.0-upstream.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- gdb-7.0-upstream.patch	21 Dec 2009 11:26:47 -0000	1.4
+++ gdb-7.0-upstream.patch	24 Dec 2009 22:39:35 -0000	1.5
@@ -3175,3 +3175,49 @@ http://sourceware.org/ml/gdb-cvs/2009-09
  @end table
  
  On HP-UX systems, if you refer to a function or variable name that
+
+
+
+http://sourceware.org/ml/gdb-cvs/2009-12/msg00128.html
+
+### src/gdb/testsuite/ChangeLog	2009/12/23 23:18:08	1.2054
+### src/gdb/testsuite/ChangeLog	2009/12/24 21:57:06	1.2055
+## -1,3 +1,10 @@
++2009-12-24  Jan Kratochvil  <jan.kratochvil at redhat.com>
++
++	Fix compatibility with G++-4.5.
++	* gdb.cp/expand-sals.cc (main): Remove the "exit-line" comment.
++	* gdb.cp/expand-sals.exp: Remove breakpoint on "exit-line".
++	(uncaught return): Remove.
++
+ 2009-12-23  Jan Kratochvil  <jan.kratochvil at redhat.com>
+ 	    Phil Muldoon  <pmuldoon at redhat.com>
+ 
+--- src/gdb/testsuite/gdb.cp/expand-sals.cc	2009/05/11 15:05:56	1.1
++++ src/gdb/testsuite/gdb.cp/expand-sals.cc	2009/12/24 21:57:06	1.2
+@@ -49,5 +49,5 @@
+   A a;
+   B b;
+ 
+-  return 0;	/* exit-line */
++  return 0;
+ }
+--- src/gdb/testsuite/gdb.cp/expand-sals.exp	2009/05/11 15:05:56	1.1
++++ src/gdb/testsuite/gdb.cp/expand-sals.exp	2009/12/24 21:57:06	1.2
+@@ -23,8 +23,6 @@
+     return -1
+ }
+ 
+-gdb_breakpoint [gdb_get_line_number "exit-line"]
+-
+ gdb_breakpoint [gdb_get_line_number "func-line"]
+ gdb_continue_to_breakpoint "func" ".*func-line.*"
+ 
+@@ -52,7 +50,3 @@
+ 	 "bt from A"
+ 
+ gdb_continue_to_breakpoint "next caller func" ".*func-line.*"
+-
+-# Verify GDB really could not catch any other breakpoint location.
+-
+-gdb_continue_to_breakpoint "uncaught return" ".*exit-line.*"


Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/F-12/gdb.spec,v
retrieving revision 1.405
retrieving revision 1.406
diff -u -p -r1.405 -r1.406
--- gdb.spec	21 Dec 2009 22:46:49 -0000	1.405
+++ gdb.spec	24 Dec 2009 22:39:35 -0000	1.406
@@ -36,7 +36,7 @@ Version: 7.0
 
 # 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: 13%{?_with_upstream:.upstream}%{dist}
+Release: 14%{?_with_upstream:.upstream}%{dist}
 
 License: GPLv3+
 Group: Development/Debuggers
@@ -978,6 +978,9 @@ fi
 %endif
 
 %changelog
+* Thu Dec 24 2009 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.0-14.fc12
+- testsuite: Fix constructortest.exp and expand-sals.exp for gcc-4.4.2-20.fc12.
+
 * Mon Dec 21 2009 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.0-13.fc12
 - [pie] Fix a race in testcase gdb.base/valgrind-db-attach.exp.
 - Fix regression by python on ia64 due to stale current frame.




More information about the fedora-extras-commits mailing list