- Maintenance script qa.sh:
* Extend SLE-12 -static unix/-fPIE/-fpie kfails. * Extend ppc64le watchpoint kfail. * Extend PR29405 kfail. - Patches added: * gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch * gdb-testsuite-use-c-flag-in-c-test-cases.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=426
This commit is contained in:
parent
f103997c76
commit
eac537eb71
80
gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch
Normal file
80
gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch
Normal file
@ -0,0 +1,80 @@
|
||||
From e0c1db6156fa8ee35661a9964062eeb69a963576 Mon Sep 17 00:00:00 2001
|
||||
From: Tom de Vries <tdevries@suse.de>
|
||||
Date: Mon, 29 Jul 2024 14:05:52 +0200
|
||||
Subject: [PATCH] [gdb/testsuite] Fix gdb.threads/leader-exit-attach.exp with
|
||||
check-read1
|
||||
|
||||
With test-case gdb.threads/leader-exit-attach.exp and check-read1, I run into:
|
||||
...
|
||||
(gdb) attach 18591^M
|
||||
Attaching to program: leader-exit-attach, process 18591^M
|
||||
warning: process 18591 is a zombie - the process has already terminatedKFAIL: $exp: attach (PRMS: gdb/31555)
|
||||
^M
|
||||
ptrace: Operation not permitted.^M
|
||||
(gdb) FAIL: $exp: get valueof "$_inferior_thread_count"
|
||||
...
|
||||
|
||||
The problem is that the gdb_test_multiple in the test-case doesn't consume the
|
||||
prompt in all clauses:
|
||||
...
|
||||
gdb_test_multiple "attach $testpid" "attach" {
|
||||
-re "Attaching to process $testpid failed.*" {
|
||||
# GNU/Linux gdbserver. Linux ptrace does not let you attach
|
||||
# to zombie threads.
|
||||
setup_kfail "gdb/31555" *-*-linux*
|
||||
fail $gdb_test_name
|
||||
}
|
||||
-re "warning: process $testpid is a zombie - the process has already terminated.*" {
|
||||
# Native GNU/Linux. Linux ptrace does not let you attach to
|
||||
# zombie threads.
|
||||
setup_kfail "gdb/31555" *-*-linux*
|
||||
fail $gdb_test_name
|
||||
}
|
||||
-re "Attaching to program: $escapedbinfile, process $testpid.*$gdb_prompt $" {
|
||||
pass $gdb_test_name
|
||||
set attached 1
|
||||
}
|
||||
}
|
||||
...
|
||||
|
||||
Fix this by using -wrap in the first two clauses.
|
||||
|
||||
While we're at it, also use -wrap in the third clause.
|
||||
|
||||
Tested on x86_64-linux.
|
||||
---
|
||||
gdb/testsuite/gdb.threads/leader-exit-attach.exp | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.threads/leader-exit-attach.exp b/gdb/testsuite/gdb.threads/leader-exit-attach.exp
|
||||
index c1ed1baaa67..a1bc2d470d5 100644
|
||||
--- a/gdb/testsuite/gdb.threads/leader-exit-attach.exp
|
||||
+++ b/gdb/testsuite/gdb.threads/leader-exit-attach.exp
|
||||
@@ -41,19 +41,19 @@ set is_gdbserver [target_is_gdbserver]
|
||||
set attached 0
|
||||
|
||||
gdb_test_multiple "attach $testpid" "attach" {
|
||||
- -re "Attaching to process $testpid failed.*" {
|
||||
+ -re -wrap "Attaching to process $testpid failed.*" {
|
||||
# GNU/Linux gdbserver. Linux ptrace does not let you attach
|
||||
# to zombie threads.
|
||||
setup_kfail "gdb/31555" *-*-linux*
|
||||
fail $gdb_test_name
|
||||
}
|
||||
- -re "warning: process $testpid is a zombie - the process has already terminated.*" {
|
||||
+ -re -wrap "warning: process $testpid is a zombie - the process has already terminated.*" {
|
||||
# Native GNU/Linux. Linux ptrace does not let you attach to
|
||||
# zombie threads.
|
||||
setup_kfail "gdb/31555" *-*-linux*
|
||||
fail $gdb_test_name
|
||||
}
|
||||
- -re "Attaching to program: $escapedbinfile, process $testpid.*$gdb_prompt $" {
|
||||
+ -re -wrap "Attaching to program: $escapedbinfile, process $testpid.*" {
|
||||
pass $gdb_test_name
|
||||
set attached 1
|
||||
}
|
||||
|
||||
base-commit: 6d7adb1f1e6ecad5a6b94319e4d272a82be16277
|
||||
--
|
||||
2.43.0
|
||||
|
454
gdb-testsuite-use-c-flag-in-c-test-cases.patch
Normal file
454
gdb-testsuite-use-c-flag-in-c-test-cases.patch
Normal file
@ -0,0 +1,454 @@
|
||||
From e20cbb7c969752fb039c7ecfba5d7c3211e3238b Mon Sep 17 00:00:00 2001
|
||||
From: Tom de Vries <tdevries@suse.de>
|
||||
Date: Mon, 24 Apr 2023 16:15:48 +0200
|
||||
Subject: [PATCH] [gdb/testsuite] Use c++ flag in c++ test-cases
|
||||
|
||||
In some cases, test-cases use c++, but don't add "c++" to the compilation
|
||||
flags. This can cause problems with some compilers.
|
||||
|
||||
Fix this in some test-cases.
|
||||
|
||||
PR testsuite/30380
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=30380
|
||||
---
|
||||
gdb/testsuite/gdb.arch/amd64-entry-value.exp | 4 +++-
|
||||
gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp | 4 +++-
|
||||
.../gdb.base/condbreak-multi-context.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.base/main-psymtab.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.base/persistent-lang.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.base/skipcxx.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.base/start-cpp.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.cp/call-method-register.exp | 15 +++++++++++----
|
||||
gdb/testsuite/gdb.cp/empty-enum.exp | 1 +
|
||||
.../gdb.cp/incomplete-type-overload.exp | 15 ++++++++++++---
|
||||
gdb/testsuite/gdb.cp/main-cp.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.cp/method-call-in-c.exp | 1 +
|
||||
gdb/testsuite/gdb.cp/minsym-fallback.exp | 14 +++++++++++---
|
||||
gdb/testsuite/gdb.cp/vla-cxx.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp | 1 +
|
||||
gdb/testsuite/gdb.dwarf2/method-ptr.exp | 2 +-
|
||||
.../missing-type-name-for-templates.exp | 16 ++++++++++++++--
|
||||
gdb/testsuite/gdb.dwarf2/subrange.exp | 2 +-
|
||||
gdb/testsuite/gdb.guile/types-module.exp | 6 +++++-
|
||||
gdb/testsuite/gdb.linespec/cpcompletion.exp | 4 ++++
|
||||
gdb/testsuite/gdb.linespec/cpls-ops.exp | 6 +++++-
|
||||
21 files changed, 108 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value.exp b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
|
||||
index 4a28b7ed1fd..3d119d07219 100644
|
||||
--- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
|
||||
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
|
||||
@@ -19,7 +19,9 @@ set opts {nopie}
|
||||
if [info exists COMPILE] {
|
||||
# make check RUNTESTFLAGS="gdb.arch/amd64-entry-value.exp COMPILE=1"
|
||||
set srcfile ${testfile}.cc
|
||||
- lappend opts debug optimize=-O2
|
||||
+ lappend opts debug
|
||||
+ lappend opts optimize=-O2
|
||||
+ lappend opts c++
|
||||
} else {
|
||||
require is_x86_64_m64_target
|
||||
}
|
||||
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
|
||||
index 8bd26c4611b..24d99450f06 100644
|
||||
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
|
||||
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
|
||||
@@ -19,7 +19,9 @@ standard_testfile amd64-tailcall-cxx1.S amd64-tailcall-cxx2.S
|
||||
if [info exists COMPILE] {
|
||||
# make check RUNTESTFLAGS="gdb.arch/amd64-tailcall-cxx.exp COMPILE=1"
|
||||
standard_testfile amd64-tailcall-cxx1.cc amd64-tailcall-cxx2.cc
|
||||
- lappend opts debug optimize=-O2
|
||||
+ lappend opts debug
|
||||
+ lappend opts optimize=-O2
|
||||
+ lappend opts c++
|
||||
} else {
|
||||
require is_x86_64_m64_target
|
||||
}
|
||||
diff --git a/gdb/testsuite/gdb.base/condbreak-multi-context.exp b/gdb/testsuite/gdb.base/condbreak-multi-context.exp
|
||||
index 3af37081e44..3a4fe37317b 100644
|
||||
--- a/gdb/testsuite/gdb.base/condbreak-multi-context.exp
|
||||
+++ b/gdb/testsuite/gdb.base/condbreak-multi-context.exp
|
||||
@@ -18,7 +18,11 @@
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if {[prepare_for_testing "failed to prepare" ${binfile} ${srcfile}]} {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if {[prepare_for_testing "failed to prepare" ${binfile} ${srcfile} $flags]} {
|
||||
return
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.base/main-psymtab.exp b/gdb/testsuite/gdb.base/main-psymtab.exp
|
||||
index 2cd0d6145bf..cc0ca65ef89 100644
|
||||
--- a/gdb/testsuite/gdb.base/main-psymtab.exp
|
||||
+++ b/gdb/testsuite/gdb.base/main-psymtab.exp
|
||||
@@ -15,7 +15,11 @@
|
||||
|
||||
standard_testfile persistent-lang.cc
|
||||
|
||||
-if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if {[build_executable "failed to prepare" $testfile $srcfile $flags]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.base/persistent-lang.exp b/gdb/testsuite/gdb.base/persistent-lang.exp
|
||||
index f8139159a4f..d3bedae1007 100644
|
||||
--- a/gdb/testsuite/gdb.base/persistent-lang.exp
|
||||
+++ b/gdb/testsuite/gdb.base/persistent-lang.exp
|
||||
@@ -15,7 +15,11 @@
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if {[build_executable "failed to prepare" $testfile $srcfile $flags]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.base/skipcxx.exp b/gdb/testsuite/gdb.base/skipcxx.exp
|
||||
index 60b8fa19cd5..73beed8bb75 100644
|
||||
--- a/gdb/testsuite/gdb.base/skipcxx.exp
|
||||
+++ b/gdb/testsuite/gdb.base/skipcxx.exp
|
||||
@@ -15,7 +15,11 @@
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.base/start-cpp.exp b/gdb/testsuite/gdb.base/start-cpp.exp
|
||||
index b4a036eac28..330c6ea9a67 100644
|
||||
--- a/gdb/testsuite/gdb.base/start-cpp.exp
|
||||
+++ b/gdb/testsuite/gdb.base/start-cpp.exp
|
||||
@@ -17,7 +17,11 @@ require !use_gdb_stub
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp
|
||||
index 1019d4fd8f3..b06620fcb2d 100644
|
||||
--- a/gdb/testsuite/gdb.cp/call-method-register.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/call-method-register.exp
|
||||
@@ -23,8 +23,15 @@ load_lib dwarf.exp
|
||||
|
||||
standard_testfile .cc -dw.S
|
||||
|
||||
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
|
||||
- {debug c++}]} {
|
||||
+set flags_debug {}
|
||||
+lappend flags_debug debug
|
||||
+lappend flags_debug c++
|
||||
+
|
||||
+set flags_nodebug {}
|
||||
+lappend flags_nodebug nodebug
|
||||
+lappend flags_nodebug c++
|
||||
+
|
||||
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags_debug]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
@@ -32,7 +39,7 @@ set asm_file [standard_output_file $srcfile2]
|
||||
Dwarf::assemble $asm_file {
|
||||
|
||||
set main_result \
|
||||
- [function_range main ${::srcdir}/${::subdir}/${::srcfile}]
|
||||
+ [function_range main ${::srcdir}/${::subdir}/${::srcfile} $::flags_debug]
|
||||
set main_start [lindex $main_result 0]
|
||||
set main_length [lindex $main_result 1]
|
||||
|
||||
@@ -97,7 +104,7 @@ Dwarf::assemble $asm_file {
|
||||
}
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" ${testfile} \
|
||||
- [list $srcfile $asm_file] {nodebug}] } {
|
||||
+ [list $srcfile $asm_file] $::flags_nodebug] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.cp/empty-enum.exp b/gdb/testsuite/gdb.cp/empty-enum.exp
|
||||
index 6acae551845..2a0f695a35a 100644
|
||||
--- a/gdb/testsuite/gdb.cp/empty-enum.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/empty-enum.exp
|
||||
@@ -31,6 +31,7 @@ standard_testfile .cc
|
||||
|
||||
set opts {}
|
||||
lappend opts debug
|
||||
+lappend opts c++
|
||||
lappend opts additional_flags=-std=c++11
|
||||
|
||||
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
|
||||
diff --git a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp b/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
|
||||
index 1f94c3e6bc7..83f09282df4 100644
|
||||
--- a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/incomplete-type-overload.exp
|
||||
@@ -25,7 +25,15 @@ require dwarf2_support allow_cplus_tests
|
||||
standard_testfile .cc .S
|
||||
set asm_file [standard_output_file ${srcfile2}]
|
||||
|
||||
-if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] {
|
||||
+set flags_debug {}
|
||||
+lappend flags_debug debug
|
||||
+lappend flags_debug c++
|
||||
+
|
||||
+set flags_nodebug {}
|
||||
+lappend flags_nodebug nodebug
|
||||
+lappend flags_nodebug c++
|
||||
+
|
||||
+if [prepare_for_testing "failed to prepare" $testfile $srcfile $flags_debug] {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -38,7 +46,7 @@ set int_size [get_sizeof "int" -1]
|
||||
set addr_size [get_sizeof "void *" -1]
|
||||
set struct_base_size [get_sizeof "base" 4]
|
||||
set struct_complete_size [get_sizeof "complete" 4]
|
||||
-get_func_info foo
|
||||
+get_func_info foo $flags_debug
|
||||
|
||||
# Create fake DWARF for the .cc file.
|
||||
# This is the best way to ensure we have an incomplete type.
|
||||
@@ -159,7 +167,8 @@ Dwarf::assemble ${asm_file} {
|
||||
}
|
||||
}
|
||||
|
||||
-if [prepare_for_testing "failed to prepare" $testfile [list $asm_file $srcfile] {}] {
|
||||
+if [prepare_for_testing "failed to prepare" $testfile \
|
||||
+ [list $asm_file $srcfile] $flags_nodebug] {
|
||||
return
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.cp/main-cp.exp b/gdb/testsuite/gdb.cp/main-cp.exp
|
||||
index 6c247e9d22f..98024bf3664 100644
|
||||
--- a/gdb/testsuite/gdb.cp/main-cp.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/main-cp.exp
|
||||
@@ -20,7 +20,11 @@ standard_testfile main.cc
|
||||
|
||||
require !readnow
|
||||
|
||||
-if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
|
||||
+set opts {}
|
||||
+lappend opts debug
|
||||
+lappend opts c++
|
||||
+
|
||||
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp
|
||||
index 4676a1b06c6..1c2b432c142 100644
|
||||
--- a/gdb/testsuite/gdb.cp/method-call-in-c.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp
|
||||
@@ -22,6 +22,7 @@ standard_testfile .cc
|
||||
|
||||
set opts {}
|
||||
lappend opts debug
|
||||
+lappend opts c++
|
||||
lappend opts additional_flags=-std=c++11
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
|
||||
diff --git a/gdb/testsuite/gdb.cp/minsym-fallback.exp b/gdb/testsuite/gdb.cp/minsym-fallback.exp
|
||||
index 19ff264893a..6d8fd485840 100644
|
||||
--- a/gdb/testsuite/gdb.cp/minsym-fallback.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/minsym-fallback.exp
|
||||
@@ -21,13 +21,21 @@ standard_testfile .cc minsym-fallback-main.cc
|
||||
|
||||
include_file minsym-fallback.h
|
||||
|
||||
+set debug_flags {}
|
||||
+lappend debug_flags debug
|
||||
+lappend debug_flags c++
|
||||
+
|
||||
+set nodebug_flags {}
|
||||
+lappend nodebug_flags nodebug
|
||||
+lappend nodebug_flags c++
|
||||
+
|
||||
set executable $testfile
|
||||
set objfile [standard_output_file ${testfile}.o]
|
||||
set objmainfile [standard_output_file ${testfile}-main.o]
|
||||
|
||||
-if {[gdb_compile $srcdir/$subdir/$srcfile $objfile object {}] != ""
|
||||
- || [gdb_compile $srcdir/$subdir/$srcfile2 $objmainfile object {debug}] != ""
|
||||
- || [gdb_compile "$objfile $objmainfile" $binfile executable {c++}] != ""} {
|
||||
+if {[gdb_compile $srcdir/$subdir/$srcfile $objfile object $nodebug_flags] != ""
|
||||
+ || [gdb_compile $srcdir/$subdir/$srcfile2 $objmainfile object $debug_flags] != ""
|
||||
+ || [gdb_compile "$objfile $objmainfile" $binfile executable $debug_flags] != ""} {
|
||||
untested "failed to compile"
|
||||
return -1
|
||||
}
|
||||
diff --git a/gdb/testsuite/gdb.cp/vla-cxx.exp b/gdb/testsuite/gdb.cp/vla-cxx.exp
|
||||
index bf3ca792d58..4303383d8f4 100644
|
||||
--- a/gdb/testsuite/gdb.cp/vla-cxx.exp
|
||||
+++ b/gdb/testsuite/gdb.cp/vla-cxx.exp
|
||||
@@ -15,7 +15,11 @@
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
|
||||
index a62de7b1c72..7083ab7be17 100644
|
||||
--- a/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
|
||||
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
|
||||
@@ -19,6 +19,7 @@ standard_testfile index.cc
|
||||
|
||||
set opts {}
|
||||
lappend opts debug
|
||||
+lappend opts c++
|
||||
lappend opts additional_flags=-std=c++11
|
||||
|
||||
if {[prepare_for_testing "failed to prepare" "${testfile}" \
|
||||
diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.exp b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
|
||||
index 4b4c2229fc2..9bb477681af 100644
|
||||
--- a/gdb/testsuite/gdb.dwarf2/method-ptr.exp
|
||||
+++ b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
|
||||
@@ -76,7 +76,7 @@ Dwarf::assemble $asm_file {
|
||||
}
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" ${testfile} \
|
||||
- [list $srcfile $asm_file] {nodebug}] } {
|
||||
+ [list $srcfile $asm_file] {nodebug c++}] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp b/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
|
||||
index 06bd896c56a..869b29f09f6 100644
|
||||
--- a/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
|
||||
+++ b/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
|
||||
@@ -25,6 +25,17 @@ require dwarf2_support
|
||||
|
||||
standard_testfile .cc .S
|
||||
|
||||
+set debug_flags {}
|
||||
+lappend debug_flags debug
|
||||
+lappend debug_flags c++
|
||||
+
|
||||
+set nodebug_flags {}
|
||||
+lappend nodebug_flags nodebug
|
||||
+lappend nodebug_flags c++
|
||||
+
|
||||
+get_func_info main $debug_flags
|
||||
+
|
||||
+
|
||||
set asm_file [standard_output_file $srcfile2]
|
||||
Dwarf::assemble $asm_file {
|
||||
cu {} {
|
||||
@@ -47,7 +58,8 @@ Dwarf::assemble $asm_file {
|
||||
|
||||
DW_TAG_subprogram {
|
||||
{DW_AT_name "main"}
|
||||
- {MACRO_AT_range "main"}
|
||||
+ {DW_AT_low_pc $::main_start DW_FORM_addr}
|
||||
+ {DW_AT_high_pc $::main_end DW_FORM_addr}
|
||||
{DW_AT_type :$int}
|
||||
{DW_AT_external 1 DW_FORM_flag}
|
||||
} {
|
||||
@@ -141,7 +153,7 @@ Dwarf::assemble $asm_file {
|
||||
}
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" ${testfile} \
|
||||
- [list $srcfile $asm_file] {nodebug c++}] } {
|
||||
+ [list $srcfile $asm_file] $nodebug_flags] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.dwarf2/subrange.exp b/gdb/testsuite/gdb.dwarf2/subrange.exp
|
||||
index 2671f829fe8..d384fb6d491 100644
|
||||
--- a/gdb/testsuite/gdb.dwarf2/subrange.exp
|
||||
+++ b/gdb/testsuite/gdb.dwarf2/subrange.exp
|
||||
@@ -102,7 +102,7 @@ Dwarf::assemble $asm_file {
|
||||
}
|
||||
|
||||
if { [prepare_for_testing "failed to prepare" ${testfile} \
|
||||
- [list $srcfile $asm_file] {nodebug}] } {
|
||||
+ [list $srcfile $asm_file] {nodebug c++}] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.guile/types-module.exp b/gdb/testsuite/gdb.guile/types-module.exp
|
||||
index d95ff21df5e..0da28ad0506 100644
|
||||
--- a/gdb/testsuite/gdb.guile/types-module.exp
|
||||
+++ b/gdb/testsuite/gdb.guile/types-module.exp
|
||||
@@ -22,7 +22,11 @@ require allow_guile_tests
|
||||
|
||||
standard_testfile .cc
|
||||
|
||||
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
|
||||
return -1
|
||||
}
|
||||
|
||||
diff --git a/gdb/testsuite/gdb.linespec/cpcompletion.exp b/gdb/testsuite/gdb.linespec/cpcompletion.exp
|
||||
index 480e03406f2..355a05dd014 100644
|
||||
--- a/gdb/testsuite/gdb.linespec/cpcompletion.exp
|
||||
+++ b/gdb/testsuite/gdb.linespec/cpcompletion.exp
|
||||
@@ -22,8 +22,12 @@ standard_testfile cpls.cc cpls2.cc cpls-hyphen.cc
|
||||
|
||||
set opts {}
|
||||
lappend opts debug
|
||||
+lappend opts c++
|
||||
lappend opts additional_flags=-std=c++11
|
||||
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+
|
||||
if {[prepare_for_testing "failed to prepare" $testfile \
|
||||
[list $srcfile $srcfile2 $srcfile3] $opts]} {
|
||||
return -1
|
||||
diff --git a/gdb/testsuite/gdb.linespec/cpls-ops.exp b/gdb/testsuite/gdb.linespec/cpls-ops.exp
|
||||
index 22428da905f..7ffcc5c768e 100644
|
||||
--- a/gdb/testsuite/gdb.linespec/cpls-ops.exp
|
||||
+++ b/gdb/testsuite/gdb.linespec/cpls-ops.exp
|
||||
@@ -19,8 +19,12 @@ load_lib completion-support.exp
|
||||
|
||||
standard_testfile cpls-ops.cc
|
||||
|
||||
+set flags {}
|
||||
+lappend flags debug
|
||||
+lappend flags c++
|
||||
+
|
||||
if {[prepare_for_testing "failed to prepare" $testfile \
|
||||
- [list $srcfile] {debug}]} {
|
||||
+ [list $srcfile] $flags]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
|
||||
base-commit: e0c1db6156fa8ee35661a9964062eeb69a963576
|
||||
--
|
||||
2.43.0
|
||||
|
10
gdb.changes
10
gdb.changes
@ -1,4 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 29 10:52:26 UTC 2025 - Tom de Vries <tdevries@suse.com>
|
||||
|
||||
- Maintenance script qa.sh:
|
||||
* Extend SLE-12 -static unix/-fPIE/-fpie kfails.
|
||||
* Extend ppc64le watchpoint kfail.
|
||||
* Extend PR29405 kfail.
|
||||
- Patches added:
|
||||
* gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch
|
||||
* gdb-testsuite-use-c-flag-in-c-test-cases.patch
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 27 06:00:38 UTC 2025 - Tom de Vries <tdevries@suse.com>
|
||||
|
||||
- Update to fedora rawhide @ a8e0b3d (gdb 15.1).
|
||||
|
45
gdb.spec
45
gdb.spec
@ -243,19 +243,20 @@ Patch1508: gdb-testsuite-fix-gdb_py_module_available-for-python.patch
|
||||
|
||||
# Backports from master, available in GDB 16.
|
||||
|
||||
Patch2091: gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch
|
||||
Patch2092: gdb-symtab-return-correct-reader-for-top-level-cu-in.patch
|
||||
Patch2093: gdb-tdep-s390-add-arch15-record-replay-support.patch
|
||||
Patch2094: gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch
|
||||
Patch2095: gdb-python-avoid-depending-on-the-curses-library.patch
|
||||
Patch2000: gdb-testsuite-fix-gdb.fortran-array-bounds.exp-on-ar.patch
|
||||
Patch2001: gdb-symtab-return-correct-reader-for-top-level-cu-in.patch
|
||||
Patch2002: gdb-tdep-s390-add-arch15-record-replay-support.patch
|
||||
Patch2003: gdb-testsuite-avoid-intermittent-failures-on-a-debug.patch
|
||||
Patch2004: gdb-python-avoid-depending-on-the-curses-library.patch
|
||||
Patch2005: gdb-testsuite-fix-gdb.threads-leader-exit-attach.exp.patch
|
||||
|
||||
# Backports from master, available in GDB 17.
|
||||
|
||||
Patch2096: gdb-testsuite-record-less-in-gdb.reverse-time-revers.patch
|
||||
Patch2097: gdb-doc-fix-gdb.unwinder-docs.patch
|
||||
Patch2098: gdb-doc-fix-qisaddresstagged-anchor.patch
|
||||
Patch2099: gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch
|
||||
Patch2100: gdb-testsuite-fix-timeouts-in-gdb.threads-step-over-.patch
|
||||
Patch2100: gdb-testsuite-record-less-in-gdb.reverse-time-revers.patch
|
||||
Patch2101: gdb-doc-fix-gdb.unwinder-docs.patch
|
||||
Patch2102: gdb-doc-fix-qisaddresstagged-anchor.patch
|
||||
Patch2103: gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch
|
||||
Patch2104: gdb-testsuite-fix-timeouts-in-gdb.threads-step-over-.patch
|
||||
|
||||
#
|
||||
|
||||
@ -273,9 +274,10 @@ Patch3003: gdb-testsuite-fix-error-in-gdb.server-server-kill-py.patch
|
||||
Patch3004: gdb-testsuite-fix-timeout-in-gdb.tui-resize-2.exp.patch
|
||||
# https://sourceware.org/pipermail/gdb-patches/2025-January/214982.html
|
||||
Patch3005: gdb-doc-fix-standard-replies-xref.patch
|
||||
|
||||
# https://sourceware.org/pipermail/gdb-patches/2023-December/205054.html
|
||||
Patch3006: gdb-symtab-recurse-into-c-dw_tag_subprogram-dies-for.patch
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=30380#c1
|
||||
Patch3007: gdb-testsuite-use-c-flag-in-c-test-cases.patch
|
||||
|
||||
# Debug patches.
|
||||
|
||||
@ -640,16 +642,18 @@ find -name "*.info*"|xargs rm -f
|
||||
%patch -P 1507 -p1
|
||||
%patch -P 1508 -p1
|
||||
|
||||
%patch -P 2091 -p1
|
||||
%patch -P 2092 -p1
|
||||
%patch -P 2093 -p1
|
||||
%patch -P 2094 -p1
|
||||
%patch -P 2095 -p1
|
||||
%patch -P 2096 -p1
|
||||
%patch -P 2097 -p1
|
||||
%patch -P 2098 -p1
|
||||
%patch -P 2099 -p1
|
||||
%patch -P 2000 -p1
|
||||
%patch -P 2001 -p1
|
||||
%patch -P 2002 -p1
|
||||
%patch -P 2003 -p1
|
||||
%patch -P 2004 -p1
|
||||
%patch -P 2005 -p1
|
||||
|
||||
%patch -P 2100 -p1
|
||||
%patch -P 2101 -p1
|
||||
%patch -P 2102 -p1
|
||||
%patch -P 2103 -p1
|
||||
%patch -P 2104 -p1
|
||||
|
||||
%patch -P 3000 -p1
|
||||
%patch -P 3001 -p1
|
||||
@ -658,6 +662,7 @@ find -name "*.info*"|xargs rm -f
|
||||
%patch -P 3004 -p1
|
||||
%patch -P 3005 -p1
|
||||
%patch -P 3006 -p1
|
||||
%patch -P 3007 -p1
|
||||
|
||||
#unpack libipt
|
||||
%if 0%{have_libipt}
|
||||
|
13
qa.sh
13
qa.sh
@ -358,6 +358,9 @@ kfail=(
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=32439
|
||||
"FAIL: gdb.base/step-over-syscall.exp: (fork|vfork): displaced=on: check_pc_after_cross_syscall: single step over (fork|vfork) final pc"
|
||||
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=32619
|
||||
"FAIL: gdb.dap/eof.exp: exceptions in log file"
|
||||
|
||||
) # kfail
|
||||
|
||||
kfail_sle12=(
|
||||
@ -427,6 +430,7 @@ kfail_sle12=(
|
||||
"FAIL: gdb.dwarf2/frame-inlined-in-outer-frame.exp: step back into foo"
|
||||
"FAIL: gdb.dwarf2/frame-inlined-in-outer-frame.exp: step into bar"
|
||||
"FAIL: gdb.dwarf2/frame-inlined-in-outer-frame.exp: step into foo"
|
||||
"FAIL: gdb.base/list-dot-nodebug.exp: debug=none: runto: run to bar"
|
||||
|
||||
# Fails on both i586 and s390x/-m31 for SLE-12-SP3, but does not reproduce
|
||||
# on s390x/-m31 for SLE-12-SP5 with trunk.
|
||||
@ -539,8 +543,8 @@ kfail_factory=(
|
||||
kfail_aarch64=(
|
||||
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=29405
|
||||
"FAIL: gdb.base/step-over-syscall.exp: (fork|vfork): displaced=(on|off): pc after stepi matches insn addr after syscall"
|
||||
"FAIL: gdb.base/step-over-syscall.exp: (fork|vfork): displaced=(on|off): check_pc_after_cross_syscall: single step over fork final pc"
|
||||
"FAIL: gdb.base/step-over-syscall.exp: (clone|fork|vfork): displaced=(on|off): pc after stepi matches insn addr after syscall"
|
||||
"FAIL: gdb.base/step-over-syscall.exp: (clone|fork|vfork): displaced=(on|off): check_pc_after_cross_syscall: single step over (clone|fork|vfork) final pc"
|
||||
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=29423
|
||||
"FAIL: gdb.base/watchpoint-unaligned.exp: continue \(timeout\)"
|
||||
@ -641,6 +645,11 @@ kfail_powerpc64le=(
|
||||
"FAIL: gdb.python/py-breakpoint.exp: test_watchpoints: Test watchpoint write \(the program exited\)"
|
||||
"FAIL: gdb.python/py-breakpoint.exp: test_bkpt_internal: Test watchpoint write \(the program exited\)"
|
||||
"FAIL: gdb.python/py-breakpoint.exp: test_bkpt_eval_funcs: Test watchpoint write \(the program exited\)"
|
||||
"FAIL: gdb.base/memops-watchpoint.exp: continue until memcpy watchpoint hits"
|
||||
"FAIL: gdb.base/memops-watchpoint.exp: continue until memmove watchpoint hits"
|
||||
"FAIL: gdb.base/memops-watchpoint.exp: continue until memset watchpoint hits"
|
||||
"FAIL: gdb.base/watchpoint-running.exp: all-stop: hardware: watchpoint hit"
|
||||
"FAIL: gdb.base/watchpoint-running.exp: non-stop: hardware: watchpoint hit"
|
||||
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=31004
|
||||
"FAIL: gdb.base/run-control-while-bg-execution.exp: action1=.*: action2=run: run"
|
||||
|
Loading…
x
Reference in New Issue
Block a user