This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] testsuite: Fix lib-types.exp regression [Re: FYI: clean up gdb.python]


On Fri, 22 Jun 2012 19:59:12 +0200, Tom Tromey wrote:
> Regtested on x86-64 Fedora 16.
[...]
> --- gdb.python/lib-types.exp	16 Jan 2012 16:21:52 -0000	1.7
> +++ gdb.python/lib-types.exp	22 Jun 2012 17:54:16 -0000
[...]
> -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
[...]
> +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {

On RHEL-5:
 Running gdb/testsuite/gdb.python/lib-types.exp ...
-PASS: gdb.python/lib-types.exp: python import gdb.types
[...]
+gdb compile failed, /unsafegdb/testsuite.unix.-m64/gdb.python/lib-types0.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
+collect2: ld returned 1 exit status
+UNTESTED: gdb.python/lib-types.exp: lib-types.exp

Checked in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2012-06/msg00171.html

--- src/gdb/testsuite/ChangeLog	2012/06/22 17:59:33	1.3238
+++ src/gdb/testsuite/ChangeLog	2012/06/24 06:36:26	1.3239
@@ -1,3 +1,8 @@
+2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix regression by the previous commit.
+	* gdb.python/lib-types.exp: Add c++ to the compilation flags.
+
 2012-06-22  Tom Tromey  <tromey@redhat.com>
 
 	* gdb.python/lib-types.exp: Use standard_testfile,
--- src/gdb/testsuite/gdb.python/lib-types.exp	2012/06/22 17:59:33	1.8
+++ src/gdb/testsuite/gdb.python/lib-types.exp	2012/06/24 06:36:27	1.9
@@ -20,7 +20,7 @@
 
 standard_testfile .cc
 
-if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
     return -1
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]