Jan Kratochvil 22d1e60
http://sourceware.org/ml/gdb-patches/2016-02/msg00423.html
Jan Kratochvil 22d1e60
Subject: Re: [testsuite 7.11] Regression for i386-biarch-core.exp and others [Re: [PATCH] Always organize test artifacts in a directory hierarchy]
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
On 16-02-11 04:22 PM, Jan Kratochvil wrote:
Jan Kratochvil 22d1e60
> On Mon, 08 Feb 2016 20:26:41 +0100, Simon Marchi wrote:
Jan Kratochvil 22d1e60
>> Ok, I pushed this patch.  I am now waiting to know what I broke.
Jan Kratochvil 22d1e60
> 
Jan Kratochvil 22d1e60
> Running /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.arch/i386-biarch-core.exp ...
Jan Kratochvil 22d1e60
> PASS: gdb.arch/i386-biarch-core.exp: complete set gnutarget
Jan Kratochvil 22d1e60
> PASS: gdb.arch/i386-biarch-core.exp: core-file
Jan Kratochvil 22d1e60
> PASS: gdb.arch/i386-biarch-core.exp: .text is readable
Jan Kratochvil 22d1e60
> ->
Jan Kratochvil 22d1e60
> Running /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.arch/i386-biarch-core.exp ...
Jan Kratochvil 22d1e60
> PASS: gdb.arch/i386-biarch-core.exp: complete set gnutarget
Jan Kratochvil 22d1e60
> UNTESTED: gdb.arch/i386-biarch-core.exp: failed bzip2
Jan Kratochvil 22d1e60
> 
Jan Kratochvil 22d1e60
> Reproducible with:
Jan Kratochvil 22d1e60
> 	tar xJf gdb-7.10.90.20160211.tar.xz;cd gdb-7.10.90.20160211;./configure;make;make -C gdb check//unix/-m64 RUNTESTFLAGS=gdb.arch/i386-biarch-core.exp
Jan Kratochvil 22d1e60
> 	Running /tmp/gdb-7.10.90.20160211/gdb/testsuite/gdb.arch/i386-biarch-core.exp ...
Jan Kratochvil 22d1e60
> 	sh: /tmp/gdb-7.10.90.20160211/gdb/testsuite.unix.-m64/gdb.arch/i386-biarch-core.core: No such file or directory
Jan Kratochvil 22d1e60
> 			=== gdb Summary ===
Jan Kratochvil 22d1e60
> 	# of expected passes		1
Jan Kratochvil 22d1e60
> 	# of untested testcases		1
Jan Kratochvil 22d1e60
> 
Jan Kratochvil 22d1e60
> I have not debugged it more yet.
Jan Kratochvil 22d1e60
> 
Jan Kratochvil 22d1e60
> 
Jan Kratochvil 22d1e60
> Jan
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Hi Jan,
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
I think this patch should fix it.  It simply makes the test use standard_output_file
Jan Kratochvil 22d1e60
for its output directory.
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Simon
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
>From c643fde26ecdc63c399ac4f26fd31920148fae77 Mon Sep 17 00:00:00 2001
Jan Kratochvil 22d1e60
From: Simon Marchi <simon.marchi@ericsson.com>
Jan Kratochvil 22d1e60
Date: Fri, 12 Feb 2016 13:17:32 -0500
Jan Kratochvil 22d1e60
Subject: [PATCH] i386-biarch-core.exp: Use standard_output_file
Jan Kratochvil 22d1e60
Subject: [PATCH] i386-biarch-core.exp: Use standard_output_file
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Fix the core file path to use the standard output directory.
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
gdb/testsuite/ChangeLog:
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
	* i386-biarch-core.exp: Define corefile using
Jan Kratochvil 22d1e60
	standard_output_file.
Jan Kratochvil 22d1e60
---
Jan Kratochvil 22d1e60
 gdb/testsuite/gdb.arch/i386-biarch-core.exp | 2 +-
Jan Kratochvil 22d1e60
 1 file changed, 1 insertion(+), 1 deletion(-)
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
diff --git a/gdb/testsuite/gdb.arch/i386-biarch-core.exp b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
Jan Kratochvil 22d1e60
index 607b947..4dc5ba6 100644
Jan Kratochvil 22d1e60
--- a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
Jan Kratochvil 22d1e60
+++ b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
Jan Kratochvil 22d1e60
@@ -40,7 +40,7 @@ gdb_test_multiple "complete set gnutarget " $test {
Jan Kratochvil 22d1e60
 }
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
 set corebz2file ${srcdir}/${subdir}/${testfile}.core.bz2
Jan Kratochvil 22d1e60
-set corefile ${objdir}/${subdir}/${testfile}.core
Jan Kratochvil 22d1e60
+set corefile [standard_output_file ${testfile}.core]
Jan Kratochvil 22d1e60
 # Entry point of the original executable.
Jan Kratochvil 22d1e60
 set address 0x400078
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
-- 
Jan Kratochvil 22d1e60
2.5.1
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
http://sourceware.org/ml/gdb-patches/2016-02/msg00468.html
Jan Kratochvil 22d1e60
Subject: [testsuite obv+7.11] Fix more testcases with standard_output_file  [Re: [testsuite 7.11] Regression for i386-biarch-core.exp and others]
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--AhhlLboLdkugWU4S
Jan Kratochvil 22d1e60
Content-Type: text/plain; charset=us-ascii
Jan Kratochvil 22d1e60
Content-Disposition: inline
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
On Fri, 12 Feb 2016 19:47:10 +0100, Jan Kratochvil wrote:
Jan Kratochvil 22d1e60
> (gdb.base/corefile.exp gdb.base/execl-update-breakpoints.exp listed there do
Jan Kratochvil 22d1e60
> not reproduce it for me locally now, I will re-check those.)
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
I have rechecked it and fixed these.
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
trunk:
Jan Kratochvil 22d1e60
	c99dbb4246fedd500dbdd50514589fc7f95d80c0
Jan Kratochvil 22d1e60
7.11:
Jan Kratochvil 22d1e60
	8b6bd5aca63189590498195a7a2696cde021c9cd
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--AhhlLboLdkugWU4S
Jan Kratochvil 22d1e60
Content-Type: message/rfc822
Jan Kratochvil 22d1e60
Content-Disposition: inline
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
Date: Mon, 15 Feb 2016 18:54:03 +0100
Jan Kratochvil 22d1e60
Subject: [PATCH] Fix more testcases with standard_output_file.
Jan Kratochvil 22d1e60
Subject: [PATCH] Fix more testcases with standard_output_file.
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Since
Jan Kratochvil 22d1e60
	commit 2151ccc56c74b55a8f0debf0724a495368f92591
Jan Kratochvil 22d1e60
	Author: Simon Marchi <simon.marchi@ericsson.com>
Jan Kratochvil 22d1e60
	Date:   Mon Feb 8 14:02:36 2016 -0500
Jan Kratochvil 22d1e60
	    Always organize test artifacts in a directory hierarchy
Jan Kratochvil 22d1e60
these testfiles could not build.
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
2016-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
	* gdb.arch/i386-gnu-cfi.exp: Use standard_output_file.
Jan Kratochvil 22d1e60
	* gdb.arch/i386-prologue.exp: Likewise.
Jan Kratochvil 22d1e60
	* gdb.arch/i386-size.exp: Likewise.
Jan Kratochvil 22d1e60
---
Jan Kratochvil 22d1e60
 gdb/testsuite/ChangeLog                  | 6 ++++++
Jan Kratochvil 22d1e60
 gdb/testsuite/gdb.arch/i386-gnu-cfi.exp  | 2 +-
Jan Kratochvil 22d1e60
 gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
Jan Kratochvil 22d1e60
 gdb/testsuite/gdb.arch/i386-size.exp     | 2 +-
Jan Kratochvil 22d1e60
 4 files changed, 9 insertions(+), 3 deletions(-)
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
### a/gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
### b/gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
## -1,3 +1,9 @@
Jan Kratochvil 22d1e60
+2016-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
+
Jan Kratochvil 22d1e60
+	* gdb.arch/i386-gnu-cfi.exp: Use standard_output_file.
Jan Kratochvil 22d1e60
+	* gdb.arch/i386-prologue.exp: Likewise.
Jan Kratochvil 22d1e60
+	* gdb.arch/i386-size.exp: Likewise.
Jan Kratochvil 22d1e60
+
Jan Kratochvil 22d1e60
 2016-02-15  Simon Marchi  <simon.marchi@ericsson.com>
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 	* gdb.base/wrong_frame_bt_full.exp: Use standard_output_file to
Jan Kratochvil 22d1e60
--- a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
Jan Kratochvil 22d1e60
+++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
Jan Kratochvil 22d1e60
@@ -31,7 +31,7 @@ if { ![is_x86_like_target] } then {
Jan Kratochvil 22d1e60
 set testfile "i386-gnu-cfi"
Jan Kratochvil 22d1e60
 set srcfilec ${testfile}.c
Jan Kratochvil 22d1e60
 set srcfileasm ${testfile}-asm.S
Jan Kratochvil 22d1e60
-set binfile ${objdir}/${subdir}/${testfile}
Jan Kratochvil 22d1e60
+set binfile [standard_output_file ${testfile}]
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 # some targets have leading underscores on assembly symbols.
Jan Kratochvil 22d1e60
 set additional_flags [gdb_target_symbol_prefix_flags]
Jan Kratochvil 22d1e60
--- a/gdb/testsuite/gdb.arch/i386-prologue.exp
Jan Kratochvil 22d1e60
+++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
Jan Kratochvil 22d1e60
@@ -28,7 +28,7 @@ if { ![is_x86_like_target] } then {
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 set testfile "i386-prologue"
Jan Kratochvil 22d1e60
 set srcfile ${testfile}.c
Jan Kratochvil 22d1e60
-set binfile ${objdir}/${subdir}/${testfile}
Jan Kratochvil 22d1e60
+set binfile [standard_output_file ${testfile}]
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 # some targets have leading underscores on assembly symbols.
Jan Kratochvil 22d1e60
 set additional_flags [gdb_target_symbol_prefix_flags]
Jan Kratochvil 22d1e60
--- a/gdb/testsuite/gdb.arch/i386-size.exp
Jan Kratochvil 22d1e60
+++ b/gdb/testsuite/gdb.arch/i386-size.exp
Jan Kratochvil 22d1e60
@@ -27,7 +27,7 @@ if { ![is_x86_like_target] } then {
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 set testfile "i386-size"
Jan Kratochvil 22d1e60
 set srcfile ${testfile}.c
Jan Kratochvil 22d1e60
-set binfile ${objdir}/${subdir}/${testfile}
Jan Kratochvil 22d1e60
+set binfile [standard_output_file ${testfile}]
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 # some targets have leading underscores on assembly symbols.
Jan Kratochvil 22d1e60
 set additional_flags [gdb_target_symbol_prefix_flags]
Jan Kratochvil 22d1e60
-- 
Jan Kratochvil 22d1e60
2.5.0
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--AhhlLboLdkugWU4S--
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
http://sourceware.org/ml/gdb-patches/2016-02/msg00469.html
Jan Kratochvil 22d1e60
Subject: [testsuite obv+7.11] Add missing gdb.arch/i386-prologue.c prototypes
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--EVF5PPMfhYS0aIcm
Jan Kratochvil 22d1e60
Content-Type: text/plain; charset=us-ascii
Jan Kratochvil 22d1e60
Content-Disposition: inline
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
trunk:
Jan Kratochvil 22d1e60
	a7a0a6a95bc111776129374c46edec3c3c2785cc
Jan Kratochvil 22d1e60
7.11:
Jan Kratochvil 22d1e60
	906c69d06a46cec2f55941f7dc3a5323261796d5
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--EVF5PPMfhYS0aIcm
Jan Kratochvil 22d1e60
Content-Type: message/rfc822
Jan Kratochvil 22d1e60
Content-Disposition: inline
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
Date: Mon, 15 Feb 2016 19:01:03 +0100
Jan Kratochvil 22d1e60
Subject: [PATCH] Add missing gdb.arch/i386-prologue.c prototypes
Jan Kratochvil 22d1e60
Subject: [PATCH] Add missing gdb.arch/i386-prologue.c prototypes
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
The testfile has not ran because:
Jan Kratochvil 22d1e60
gdb.arch/i386-prologue.c:34:3: warning: implicit declaration of function 'standard' [-Wimplicit-function-declaration]
Jan Kratochvil 22d1e60
   standard ();
Jan Kratochvil 22d1e60
   ^
Jan Kratochvil 22d1e60
gdb.arch/i386-prologue.c:35:3: warning: implicit declaration of function 'stack_align_ecx' [-Wimplicit-function-declaration]
Jan Kratochvil 22d1e60
   stack_align_ecx ();
Jan Kratochvil 22d1e60
   ^
Jan Kratochvil 22d1e60
gdb.arch/i386-prologue.c:36:3: warning: implicit declaration of function 'stack_align_edx' [-Wimplicit-function-declaration]
Jan Kratochvil 22d1e60
   stack_align_edx ();
Jan Kratochvil 22d1e60
   ^
Jan Kratochvil 22d1e60
gdb.arch/i386-prologue.c:37:3: warning: implicit declaration of function 'stack_align_eax' [-Wimplicit-function-declaration]
Jan Kratochvil 22d1e60
   stack_align_eax ();
Jan Kratochvil 22d1e60
   ^
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
2016-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
	* gdb.arch/i386-prologue.c: Add missing prototypes.
Jan Kratochvil 22d1e60
---
Jan Kratochvil 22d1e60
 gdb/testsuite/ChangeLog                | 4 ++++
Jan Kratochvil 22d1e60
 gdb/testsuite/gdb.arch/i386-prologue.c | 4 ++++
Jan Kratochvil 22d1e60
 2 files changed, 8 insertions(+)
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
### a/gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
### b/gdb/testsuite/ChangeLog
Jan Kratochvil 22d1e60
## -1,5 +1,9 @@
Jan Kratochvil 22d1e60
 2016-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
+	* gdb.arch/i386-prologue.c: Add missing prototypes.
Jan Kratochvil 22d1e60
+
Jan Kratochvil 22d1e60
+2016-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan Kratochvil 22d1e60
+
Jan Kratochvil 22d1e60
 	* gdb.arch/i386-gnu-cfi.exp: Use standard_output_file.
Jan Kratochvil 22d1e60
 	* gdb.arch/i386-prologue.exp: Likewise.
Jan Kratochvil 22d1e60
 	* gdb.arch/i386-size.exp: Likewise.
Jan Kratochvil 22d1e60
--- a/gdb/testsuite/gdb.arch/i386-prologue.c
Jan Kratochvil 22d1e60
+++ b/gdb/testsuite/gdb.arch/i386-prologue.c
Jan Kratochvil 22d1e60
@@ -27,6 +27,10 @@ void gdb1253 (void);
Jan Kratochvil 22d1e60
 void gdb1718 (void);
Jan Kratochvil 22d1e60
 void gdb1338 (void);
Jan Kratochvil 22d1e60
 void jump_at_beginning (void);
Jan Kratochvil 22d1e60
+void standard (void);
Jan Kratochvil 22d1e60
+void stack_align_ecx (void);
Jan Kratochvil 22d1e60
+void stack_align_edx (void);
Jan Kratochvil 22d1e60
+void stack_align_eax (void);
Jan Kratochvil 22d1e60
 
Jan Kratochvil 22d1e60
 int
Jan Kratochvil 22d1e60
 main (void)
Jan Kratochvil 22d1e60
-- 
Jan Kratochvil 22d1e60
2.5.0
Jan Kratochvil 22d1e60
Jan Kratochvil 22d1e60
--EVF5PPMfhYS0aIcm--
Jan Kratochvil 22d1e60