From 2f55d67d0a6c97ffb2d1d9c6c694a810da2724f3 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mar 26 2021 18:40:18 +0000 Subject: - Don't check for stgit unless needed w/generate-git-repo-from-patches.sh. - Fix all patches wrt git diff --check. - Update some tests (Tom de Vries) - Fix ERRORs w/unsupported tests on native-gdbserver targets. - Backport "Disable bracketed paste mode in GDB tests" (Tom Tromey) - Backport "Handle DW_TAG_type_unit in process_symtab_unit" (Tom de Vries) --- diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index 34fa63a..f0b8ff4 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -416,3 +416,11 @@ Patch102: gdb-rhbz1909902-frame_id_p-assert-2.patch # Backport change which fixes gdbserver testing hang on f34 and rawhide. Patch103: gdb-rhbz1941080-fix-gdbserver-hang.patch +# Backport "Disable bracketed paste mode in GDB tests" +# (Tom Tromey) +Patch104: testing-custom-inputrc.patch + +# Backport "Handle DW_TAG_type_unit in process_symtab_unit" +# (Tom de Vries) +Patch105: process_psymtab_comp_unit-type-unit.patch + diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index 0557da6..df14ff4 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -101,3 +101,5 @@ %patch101 -p1 %patch102 -p1 %patch103 -p1 +%patch104 -p1 +%patch105 -p1 diff --git a/_patch_order b/_patch_order index b0fb9f5..b4d313e 100644 --- a/_patch_order +++ b/_patch_order @@ -101,3 +101,5 @@ gdb-rhbz1932645-aarch64-ptrace-header-order.patch gdb-rhbz1909902-frame_id_p-assert-1.patch gdb-rhbz1909902-frame_id_p-assert-2.patch gdb-rhbz1941080-fix-gdbserver-hang.patch +testing-custom-inputrc.patch +process_psymtab_comp_unit-type-unit.patch diff --git a/gdb-6.3-attach-see-vdso-test.patch b/gdb-6.3-attach-see-vdso-test.patch index 14fff21..daba42f 100644 --- a/gdb-6.3-attach-see-vdso-test.patch +++ b/gdb-6.3-attach-see-vdso-test.patch @@ -24,7 +24,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -40,19 +40,19 @@ diff --git a/gdb/testsuite/gdb.base/attach-see-vdso.exp b/gdb/testsuite/gdb.base new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/attach-see-vdso.exp -@@ -0,0 +1,72 @@ +@@ -0,0 +1,77 @@ +# Copyright 2007 + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -64,6 +64,11 @@ new file mode 100644 + return 0 +} + ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 ++} ++ +set testfile "attach-see-vdso" +set srcfile ${testfile}.c +set binfile [standard_output_file ${testfile}] @@ -104,12 +109,12 @@ new file mode 100644 +gdb_test "bt" "#0 *0x\[0-9a-f\]* in \[^?\].*" "backtrace decodes VDSO" + +# Exit and detach the process. -+ ++ +gdb_exit + +# Make sure we don't leave a process around to confuse +# the next test run (and prevent the compile by keeping +# the text file busy), in case the "set should_exit" didn't +# work. -+ ++ +remote_exec build "kill -9 ${testpid}" diff --git a/gdb-6.3-bz140532-ppc-unwinding-test.patch b/gdb-6.3-bz140532-ppc-unwinding-test.patch index 4a96e8e..2e38a26 100644 --- a/gdb-6.3-bz140532-ppc-unwinding-test.patch +++ b/gdb-6.3-bz140532-ppc-unwinding-test.patch @@ -24,7 +24,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -107,7 +107,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -210,7 +210,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -237,15 +237,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Test unwinding fixes of the PPC platform, specifically on the coping with BCL +# jump of the PIE code. diff --git a/gdb-6.3-bz202689-exec-from-pthread-test.patch b/gdb-6.3-bz202689-exec-from-pthread-test.patch index df59b77..74684dd 100644 --- a/gdb-6.3-bz202689-exec-from-pthread-test.patch +++ b/gdb-6.3-bz202689-exec-from-pthread-test.patch @@ -73,15 +73,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ++# 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@prep.ai.mit.edu diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 4413611..35c2de1 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -67,7 +67,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in + fi ; \ + rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \ + $(DESTDIR)$(man1dir)/$$transformed_name.1 -+ ++ # The C++ name parser can be built standalone for testing. test-cp-name-parser.o: cp-name-parser.c $(COMPILE) -DTEST_CPNAMES cp-name-parser.c @@ -109,7 +109,7 @@ new file mode 100644 + +# Run GDB, strip out unwanted noise. +# --readnever is no longer used since .gdb_index is now in use. -+$GDB --quiet -nx $GDBARGS /proc/$1/exe $1 <&1 | ++$GDB --quiet -nx $GDBARGS /proc/$1/exe $1 <&1 | +set width 0 +set height 0 +set pagination no @@ -153,7 +153,7 @@ new file mode 100644 + /* Use the most simple notification not to get caught by attach on exiting + the function. */ + write (1, msg, strlen (msg)); -+ ++ + for (;;); +} + diff --git a/gdb-6.3-inferior-notification-20050721.patch b/gdb-6.3-inferior-notification-20050721.patch index d09fe1e..894ef79 100644 --- a/gdb-6.3-inferior-notification-20050721.patch +++ b/gdb-6.3-inferior-notification-20050721.patch @@ -46,19 +46,19 @@ diff --git a/gdb/testsuite/gdb.base/attach-32.exp b/gdb/testsuite/gdb.base/attac new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/attach-32.exp -@@ -0,0 +1,245 @@ +@@ -0,0 +1,246 @@ +# Copyright 2005 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -72,14 +72,15 @@ new file mode 100644 +# +# Setting the magic bit in the target app should work. I added a +# "kill", and also a test for the R3 register warning. JB -+if { ![istarget "x86_64*-*linux*"] ++if { ![istarget "x86_64*-*linux*"] + && ![istarget "powerpc64*-*linux*"]} { + return 0 +} + +# are we on a target board -+if [is_remote target] then { -+ return 0 ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 +} + +set testfile "attach-32" @@ -121,10 +122,10 @@ new file mode 100644 + global subdir + global timeout + global testpid -+ ++ + # Verify that we can "see" the variable "should_exit" in the + # program, and that it is zero. -+ ++ + gdb_test "print should_exit" " = 0" "after attach-32, print should_exit" + + # Verify that we can modify the variable "should_exit" in the @@ -167,12 +168,12 @@ new file mode 100644 + # the next test run (and prevent the compile by keeping + # the text file busy), in case the "set should_exit" didn't + # work. -+ ++ + remote_exec build "kill -9 ${testpid}" + + # Start the program running and then wait for a bit, to be sure + # that it can be attached to. -+ ++ + set testpid [eval exec $binfile &] + exec sleep 2 + if { [istarget "*-*-cygwin*"] } { @@ -184,7 +185,7 @@ new file mode 100644 + # Verify that we can attach to the process, and find its a.out + # when we're cd'd to some directory that doesn't contain the + # a.out. (We use the source path set by the "dir" command.) -+ ++ + gdb_test "dir ${objdir}/${subdir}" "Source directories searched: .*" \ + "set source path" + @@ -217,7 +218,7 @@ new file mode 100644 + gdb_test "y" "" "$test" + } + } -+ ++ + # Another "don't leave a process around" + remote_exec build "kill -9 ${testpid}" +} @@ -226,9 +227,9 @@ new file mode 100644 + global gdb_prompt + global binfile2 + global testpid -+ ++ + # See if other registers are problems -+ ++ + set test "info other register" + gdb_test_multiple "i r r3" "$test" { + -re "warning: reading register.*$gdb_prompt $" { @@ -240,12 +241,12 @@ new file mode 100644 + } + + # Get rid of the process -+ ++ + gdb_test "p should_exit = 1" + gdb_test "c" {\[Inferior .* exited normally\]} -+ ++ + # Be paranoid -+ ++ + remote_exec build "kill -9 ${testpid}" +} + diff --git a/gdb-6.3-inheritancetest-20050726.patch b/gdb-6.3-inheritancetest-20050726.patch index 6b22011..6e12c82 100644 --- a/gdb-6.3-inheritancetest-20050726.patch +++ b/gdb-6.3-inheritancetest-20050726.patch @@ -17,7 +17,7 @@ diff --git a/gdb/testsuite/gdb.cp/b146835.cc b/gdb/testsuite/gdb.cp/b146835.cc new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/b146835.cc -@@ -0,0 +1,32 @@ +@@ -0,0 +1,31 @@ +#include "b146835.h" +#include + @@ -49,7 +49,6 @@ new file mode 100644 + F f; + f.foo(); +} -+ diff --git a/gdb/testsuite/gdb.cp/b146835.exp b/gdb/testsuite/gdb.cp/b146835.exp new file mode 100644 --- /dev/null @@ -71,7 +70,7 @@ new file mode 100644 +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Check that GDB can properly print an inherited member variable +# (Bugzilla 146835) diff --git a/gdb-6.3-mapping-zero-inode-test.patch b/gdb-6.3-mapping-zero-inode-test.patch index 1ef25d9..32b62d5 100644 --- a/gdb-6.3-mapping-zero-inode-test.patch +++ b/gdb-6.3-mapping-zero-inode-test.patch @@ -150,15 +150,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Test GDB's handling of gcore for mapping with a name but zero inode. + diff --git a/gdb-6.3-test-dtorfix-20050121.patch b/gdb-6.3-test-dtorfix-20050121.patch index 6586303..01c0d56 100644 --- a/gdb-6.3-test-dtorfix-20050121.patch +++ b/gdb-6.3-test-dtorfix-20050121.patch @@ -131,7 +131,7 @@ new file mode 100644 +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Check that GDB can break at multiple forms of constructors. + @@ -160,7 +160,7 @@ new file mode 100644 +# 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 +gdb_continue_to_breakpoint "First line A" diff --git a/gdb-6.3-test-movedir-20050125.patch b/gdb-6.3-test-movedir-20050125.patch index bcce9fa..31fbc60 100644 --- a/gdb-6.3-test-movedir-20050125.patch +++ b/gdb-6.3-test-movedir-20050125.patch @@ -16,7 +16,7 @@ diff --git a/gdb/testsuite/gdb.base/move-dir.c b/gdb/testsuite/gdb.base/move-dir new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/move-dir.c -@@ -0,0 +1,10 @@ +@@ -0,0 +1,9 @@ +#include +#include +#include "move-dir.h" @@ -26,7 +26,6 @@ new file mode 100644 + printf ("%s\n", hw);; + other(); +} -+ diff --git a/gdb/testsuite/gdb.base/move-dir.exp b/gdb/testsuite/gdb.base/move-dir.exp new file mode 100644 --- /dev/null @@ -39,15 +38,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +set testfile "move-dir" +set srcfile ${testfile}.c @@ -93,11 +92,10 @@ diff --git a/gdb/testsuite/gdb.base/move-dir.h b/gdb/testsuite/gdb.base/move-dir new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/move-dir.h -@@ -0,0 +1,7 @@ +@@ -0,0 +1,6 @@ +#include + +void other() { + const char* ostring = "other"; + printf ("%s\n", ostring);; +} -+ diff --git a/gdb-6.3-test-pie-20050107.patch b/gdb-6.3-test-pie-20050107.patch index 85f133b..cdffa43 100644 --- a/gdb-6.3-test-pie-20050107.patch +++ b/gdb-6.3-test-pie-20050107.patch @@ -42,12 +42,12 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -126,7 +126,7 @@ new file mode 100644 + -re "Attaching to.*, process .*couldn't open /proc file.*$gdb_prompt $"\ + { + # Response expected from /proc-based systems. -+ pass "attach to nonsense is prohibited" ++ pass "attach to nonsense is prohibited" + } + -re "Attaching to.*$gdb_prompt $"\ + {fail "attach to nonsense is prohibited (bogus pid allowed)"} @@ -186,13 +186,13 @@ new file mode 100644 + -re "Load new symbol table from.*y or n.*$" { + send_gdb "y\n" + gdb_expect { -+ -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $"\ ++ -re "Reading symbols from $escapedbinfile\.\.\.*$gdb_prompt $"\ + {pass "(re)set file, before attach1"} + -re "$gdb_prompt $" {fail "(re)set file, before attach1"} + timeout {fail "(timeout) (re)set file, before attach1"} + } + } -+ -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $"\ ++ -re "Reading symbols from $escapedbinfile\.\.\.*$gdb_prompt $"\ + {pass "set file, before attach1"} + -re "$gdb_prompt $" {fail "set file, before attach1"} + timeout {fail "(timeout) set file, before attach1"} @@ -236,11 +236,11 @@ new file mode 100644 + # is really getting the executable file without our help.) + # + set old_timeout $timeout -+ set timeout 15 ++ set timeout 15 + send_gdb "file\n" + gdb_expect { -+ -re ".*gdb internal error.*$" { -+ fail "Internal error, prob. Memory corruption" ++ -re ".*gdb internal error.*$" { ++ fail "Internal error, prob. Memory corruption" + } + -re "No executable file now.*Discard symbol table.*y or n.*$" { + send_gdb "y\n" @@ -424,7 +424,7 @@ new file mode 100644 + # + gdb_test "p should_exit = 1" ".*" + gdb_test "c" {\[Inferior .* exited normally\]} -+ ++ + # Be paranoid + # + remote_exec build "kill -9 ${testpid}" @@ -500,7 +500,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -645,15 +645,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# 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@prep.ai.mit.edu @@ -958,7 +958,7 @@ new file mode 100644 + +send_gdb "catch\n" +gdb_expect { -+ -re "Catch requires an event name.*$gdb_prompt $"\ ++ -re "List of catch subcommands:.*$gdb_prompt $"\ + {pass "catch requires an event name"} + -re "$gdb_prompt $"\ + {fail "catch requires an event name"} @@ -1291,7 +1291,7 @@ new file mode 100644 + +# Verify that GDB responds gracefully to a request to "finish" from +# the outermost frame. On a stub that never exits, this will just -+# run to the stubs routine, so we don't get this error... Thus the ++# run to the stubs routine, so we don't get this error... Thus the +# second condition. +# + @@ -1377,7 +1377,7 @@ new file mode 100644 +# Test "next" over recursive function call. +# + -+proc test_next_with_recursion {} { ++proc test_next_with_recursion {} { + global gdb_prompt + global decimal + global binfile @@ -1555,7 +1555,7 @@ new file mode 100644 +# +# Add a second pass pattern. The behavior differs here between stabs +# and dwarf for one-line functions. Stabs preserves two line symbols -+# (one before the prologue and one after) with the same line number, ++# (one before the prologue and one after) with the same line number, +# but dwarf regards these as duplicates and discards one of them. +# Therefore the address after the prologue (where the breakpoint is) +# has no exactly matching line symbol, and GDB reports the breakpoint @@ -1610,7 +1610,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -1625,7 +1625,7 @@ new file mode 100644 + simply as places to try setting breakpoints at. They are + explicitly "one-line functions" to verify that this case works + (some versions of gcc have or have had problems with this). -+ ++ + These functions are in a separate source file to prevent an + optimizing compiler from inlining them and optimizing them away. */ + @@ -1644,7 +1644,7 @@ diff --git a/gdb/testsuite/gdb.pie/corefile.exp b/gdb/testsuite/gdb.pie/corefile new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.pie/corefile.exp -@@ -0,0 +1,233 @@ +@@ -0,0 +1,232 @@ +# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 +# Free Software Foundation, Inc. + @@ -1652,15 +1652,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This file was written by Fred Fish. (fnf@cygnus.com) + @@ -1730,11 +1730,10 @@ new file mode 100644 + } +} + -+# Try to clean up after ourselves. -+remote_file build delete [file join $coredir coremmap.data] -+remote_exec build "rmdir $coredir" -+ +if { $found == 0 } { ++ # Try to clean up after ourselves. ++ remote_file build delete [file join $coredir coremmap.data] ++ remote_exec build "rmdir $coredir" + warning "can't generate a core file - core tests suppressed - check ulimit -c" + return 0 +} @@ -1751,19 +1750,19 @@ new file mode 100644 +# **FIXME** +# +# Another problem is that on some systems (solaris for example), there -+# is apparently a limit on the length of a fully specified path to ++# is apparently a limit on the length of a fully specified path to +# the coremaker executable, at about 80 chars. For this case, consider +# it a pass, but note that the program name is bad. + +gdb_exit +if $verbose>1 then { -+ send_user "Spawning $GDB -nw $GDBFLAGS -core=[standard_output_file corefile]\n" ++ send_user "Spawning $GDB -nw $INTERNAL_GDBFLAGS $GDBFLAGS -core=[standard_output_file corefile]\n" +} + +set oldtimeout $timeout +set timeout [expr "$timeout + 60"] +verbose "Timeout is now $timeout seconds" 2 -+eval "spawn $GDB -nw $GDBFLAGS -core=[standard_output_file corefile]" ++eval "spawn $GDB -nw $INTERNAL_GDBFLAGS $GDBFLAGS -core=[standard_output_file corefile]" +expect { + -re "Couldn't find .* registers in core file.*$gdb_prompt $" { + fail "args: -core=corefile (couldn't find regs)" @@ -1790,11 +1789,11 @@ new file mode 100644 +close; + +if $verbose>1 then { -+ send_user "Spawning $GDB -nw $GDBFLAGS $binfile -core=[standard_output_file corefile]\n" ++ send_user "Spawning $GDB -nw $INTERNAL_GDBFLAGS $GDBFLAGS $binfile -core=[standard_output_file corefile]\n" +} + + -+eval "spawn $GDB -nw $GDBFLAGS $binfile -core=[standard_output_file corefile]"; ++eval "spawn $GDB -nw $INTERNAL_GDBFLAGS $GDBFLAGS $binfile -core=[standard_output_file corefile]"; +expect { + -re "Core was generated by .*coremaker.*\r\n\#0 .*\(\).*\r\n$gdb_prompt $" { + pass "args: execfile -core=corefile" @@ -1882,7 +1881,7 @@ diff --git a/gdb/testsuite/gdb.pie/coremaker.c b/gdb/testsuite/gdb.pie/coremaker new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.pie/coremaker.c -@@ -0,0 +1,142 @@ +@@ -0,0 +1,141 @@ +/* Copyright 1992, 1993, 1994, 1995, 1996, 1999 + Free Software Foundation, Inc. + @@ -2024,4 +2023,3 @@ new file mode 100644 + func1 (); + return 0; +} -+ diff --git a/gdb-6.3-threaded-watchpoints2-20050225.patch b/gdb-6.3-threaded-watchpoints2-20050225.patch index 42b89bf..42b5260 100644 --- a/gdb-6.3-threaded-watchpoints2-20050225.patch +++ b/gdb-6.3-threaded-watchpoints2-20050225.patch @@ -54,7 +54,7 @@ diff --git a/gdb/testsuite/gdb.threads/watchthreads-threaded.c b/gdb/testsuite/g new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.threads/watchthreads-threaded.c -@@ -0,0 +1,66 @@ +@@ -0,0 +1,65 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2002, 2003, 2004, 2005 Free Software Foundation, Inc. @@ -72,8 +72,8 @@ new file mode 100644 + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, -+ Boston, MA 02111-1307, USA. -+ ++ Boston, MA 02111-1307, USA. ++ + This file is copied from schedlock.c. */ + +#include @@ -120,7 +120,6 @@ new file mode 100644 + + pthread_exit(NULL); +} -+ diff --git a/gdb/testsuite/gdb.threads/watchthreads-threaded.exp b/gdb/testsuite/gdb.threads/watchthreads-threaded.exp new file mode 100644 --- /dev/null @@ -142,7 +141,7 @@ new file mode 100644 +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Check that GDB can support multiple watchpoints across threads. + @@ -213,9 +212,9 @@ new file mode 100644 + { set args_2 1; set test_flag 1 } + -re "Hardware watchpoint 4: args\\\[3\\\].*Old value = 0.*New value = 1.*main \\\(\\\) at .*watchthreads-threaded.c:$init_line.*$gdb_prompt $" + { set args_3 1; set test_flag 1 } -+ -re "Hardware watchpoint 3: args\\\[2\\\].*Old value = $args_2.*New value = [expr $args_2+1].*in thread_function \\\(arg=0x2\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $" ++ -re "Hardware watchpoint 3: args\\\[2\\\].*Old value = $args_2.*New value = [expr $args_2+1].*thread_function \\\(arg=0x2\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $" + { set args_2 [expr $args_2+1]; set test_flag 1 } -+ -re "Hardware watchpoint 4: args\\\[3\\\].*Old value = $args_3.*New value = [expr $args_3+1].*in thread_function \\\(arg=0x3\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $" ++ -re "Hardware watchpoint 4: args\\\[3\\\].*Old value = $args_3.*New value = [expr $args_3+1].*thread_function \\\(arg=0x3\\\) at .*watchthreads-threaded.c:$inc_line.*$gdb_prompt $" + { set args_3 [expr $args_3+1]; set test_flag 1 } + } + # If we fail above, don't bother continuing loop @@ -232,7 +231,7 @@ new file mode 100644 +# Verify that we hit first watchpoint in child thread. +set message "watchpoint on args\[2\] hit in thread" +if { $args_2 > 1 } { -+ pass $message ++ pass $message +} else { + fail $message +} @@ -240,15 +239,15 @@ new file mode 100644 +# Verify that we hit second watchpoint in child thread. +set message "watchpoint on args\[3\] hit in thread" +if { $args_3 > 1 } { -+ pass $message ++ pass $message +} else { -+ fail $message ++ fail $message +} + +# Verify that all watchpoint hits are accounted for. +set message "combination of threaded watchpoints = 30 + initial values" +if { [expr $args_2+$args_3] == [expr [expr 30+$init_args_2]+$init_args_3] } { -+ pass $message ++ pass $message +} else { -+ fail $message ++ fail $message +} diff --git a/gdb-6.5-BEA-testsuite.patch b/gdb-6.5-BEA-testsuite.patch index 84e1c9f..a15cec2 100644 --- a/gdb-6.5-BEA-testsuite.patch +++ b/gdb-6.5-BEA-testsuite.patch @@ -30,14 +30,14 @@ new file mode 100644 + * gdb. Inside gdb, you should be able to do something like this: + * + * (gdb) t a a bt -+ * ++ * + * Thread 7 (process 4352): + * #0 0x001ba7dc in __nanosleep_nocancel () from /lib/tls/libc.so.6 + * #1 0x001ba5ff in sleep () from /lib/tls/libc.so.6 + * #2 0x080488a2 in makeSyscall (ignored=0x0) at threadcrash.c:118 + * #3 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #4 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 6 (process 4353): + * #0 0x001ba7dc in __nanosleep_nocancel () from /lib/tls/libc.so.6 + * #1 0x001ba5ff in sleep () from /lib/tls/libc.so.6 @@ -48,7 +48,7 @@ new file mode 100644 + * #5 0x08048a51 in makeSyscallFromSighandler (ignored=0x0) at threadcrash.c:204 + * #6 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #7 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 5 (process 4354): + * #0 0x001ba7dc in __nanosleep_nocancel () from /lib/tls/libc.so.6 + * #1 0x001ba5ff in sleep () from /lib/tls/libc.so.6 @@ -59,12 +59,12 @@ new file mode 100644 + * #5 0x080489e2 in makeSyscallFromAltSighandler (ignored=0x0) at threadcrash.c:190 + * #6 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #7 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 4 (process 4355): + * #0 spin (ignored=0x0) at threadcrash.c:242 + * #1 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #2 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 3 (process 4356): + * #0 spinningSighandler (signo=12, info=0xb4de46f0, context=0xb4de4770) at threadcrash.c:180 + * #1 @@ -72,7 +72,7 @@ new file mode 100644 + * #3 0x08048b2f in spinFromSighandler (ignored=0x0) at threadcrash.c:232 + * #4 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #5 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 2 (process 4357): + * #0 spinningAltSighandler (signo=14, info=0x959ee50, context=0x959eed0) at threadcrash.c:156 + * #1 @@ -80,7 +80,7 @@ new file mode 100644 + * #3 0x08048ac0 in spinFromAltSighandler (ignored=0x0) at threadcrash.c:218 + * #4 0x006aadec in start_thread () from /lib/tls/libpthread.so.0 + * #5 0x001ed19a in clone () from /lib/tls/libc.so.6 -+ * ++ * + * Thread 1 (process 4351): + * #0 0x08048cf3 in main (argc=1, argv=0xbfff9d74) at threadcrash.c:273 + * (gdb) @@ -107,11 +107,11 @@ new file mode 100644 + int result; + stack_t altstack; + stack_t oldaltstack; -+ ++ + memset(&action, 0, sizeof(action)); + memset(&altstack, 0, sizeof(altstack)); + memset(&oldaltstack, 0, sizeof(oldaltstack)); -+ ++ + if (onAltstack) { + altstack.ss_sp = malloc(SIGSTKSZ); + assert(altstack.ss_sp != NULL); @@ -121,9 +121,9 @@ new file mode 100644 + assert(result == 0); + assert(oldaltstack.ss_flags == SS_DISABLE); + } -+ ++ + sigemptyset(&sigset); -+ ++ + action.sa_handler = NULL; + action.sa_sigaction = handler; + action.sa_mask = sigset; @@ -131,7 +131,7 @@ new file mode 100644 + if (onAltstack) { + action.sa_flags |= SA_ONSTACK; + } -+ ++ + result = sigaction(signo, &action, NULL); + assert(result == 0); +} @@ -157,10 +157,10 @@ new file mode 100644 +static int onAltstack(void) { + stack_t stack; + int result; -+ ++ + result = sigaltstack(NULL, &stack); + assert(result == 0); -+ ++ + return stack.ss_flags & SS_ONSTACK; +} + @@ -168,11 +168,11 @@ new file mode 100644 + (void)signo; + (void)info; + (void)context; -+ ++ + if (!onAltstack()) { + printf("%s() not running on altstack!\n", __FUNCTION__); + } -+ ++ + sleep(42); +} + @@ -180,11 +180,11 @@ new file mode 100644 + (void)signo; + (void)info; + (void)context; -+ ++ + if (!onAltstack()) { + printf("%s() not running on altstack!\n", __FUNCTION__); + } -+ ++ + while (1); +} + @@ -192,11 +192,11 @@ new file mode 100644 + (void)signo; + (void)info; + (void)context; -+ ++ + if (onAltstack()) { + printf("%s() running on altstack!\n", __FUNCTION__); + } -+ ++ + sleep(42); +} + @@ -204,73 +204,73 @@ new file mode 100644 + (void)signo; + (void)info; + (void)context; -+ ++ + if (onAltstack()) { + printf("%s() running on altstack!\n", __FUNCTION__); + } -+ ++ + while (1); +} + +static void *makeSyscallFromAltSighandler(void *ignored) { + (void)ignored; -+ ++ + int result; -+ ++ + installAlthandler(SIGSYSCALL_ALT, syscallingAltSighandler); -+ ++ + result = pthread_kill(pthread_self(), SIGSYSCALL_ALT); + assert(result == 0); -+ ++ + fprintf(stderr, "%s: returning\n", __FUNCTION__); + return NULL; +} + +static void *makeSyscallFromSighandler(void *ignored) { + (void)ignored; -+ ++ + int result; -+ ++ + installNormalHandler(SIGSYSCALL, syscallingSighandler); -+ ++ + result = pthread_kill(pthread_self(), SIGSYSCALL); + assert(result == 0); -+ ++ + fprintf(stderr, "%s: returning\n", __FUNCTION__); + return NULL; +} + +static void *spinFromAltSighandler(void *ignored) { + (void)ignored; -+ ++ + int result; -+ ++ + installAlthandler(SIGSPIN_ALT, spinningAltSighandler); -+ ++ + result = pthread_kill(pthread_self(), SIGSPIN_ALT); + assert(result == 0); -+ ++ + fprintf(stderr, "%s: returning\n", __FUNCTION__); + return NULL; +} + +static void *spinFromSighandler(void *ignored) { + (void)ignored; -+ ++ + int result; -+ ++ + installNormalHandler(SIGSPIN, spinningSighandler); -+ ++ + result = pthread_kill(pthread_self(), SIGSPIN); + assert(result == 0); -+ ++ + fprintf(stderr, "%s: returning\n", __FUNCTION__); + return NULL; +} + +static void *spin(void *ignored) { + (void)ignored; -+ ++ + while (1); + + fprintf(stderr, "%s: returning\n", __FUNCTION__); @@ -281,7 +281,7 @@ new file mode 100644 + int result; + pthread_t thread; + volatile int bad; -+ ++ + result = pthread_create(&thread, NULL, makeSyscall, NULL); + assert(result == 0); + result = pthread_create(&thread, NULL, makeSyscallFromSighandler, NULL); @@ -294,10 +294,10 @@ new file mode 100644 + assert(result == 0); + result = pthread_create(&thread, NULL, spinFromAltSighandler, NULL); + assert(result == 0); -+ ++ + // Give threads some time to get going + sleep(3); -+ ++ + // Crash + bad = *(int*)7; + @@ -309,7 +309,7 @@ new file mode 100644 + Keep it late to ensure persistency in the registers. */ + bad = (int) argc; + bad = (unsigned long) argv; -+ ++ + return 0; +} diff --git a/gdb/testsuite/gdb.threads/threadcrash.exp b/gdb/testsuite/gdb.threads/threadcrash.exp @@ -480,27 +480,27 @@ new file mode 100644 +# Verify that $LOG contains all information we want +function verifyLog() { + local FAILURES=0 -+ ++ + mustNotHave '??' || ((FAILURES++)) + mustHaveCorrectAmount 11 threadcrash.c: || ((FAILURES++)) -+ ++ + mustHaveSevenThreads || ((FAILURES++)) + mustHaveSequence sleep "makeSyscall (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence sleep "syscallingSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "makeSyscallFromSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence sleep "syscallingAltSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "makeSyscallFromAltSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence Thread "spin (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence "spinningSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "spinFromSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence "spinningAltSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "spinFromAltSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence Thread "main (argc=1, argv=" || ((FAILURES++)) + + return $FAILURES @@ -577,7 +577,7 @@ new file mode 100644 + fail + fi + pass -+ ++ + # Verify that we got a core file from gcore + set_test gdb gcore did not create a core file + if [ ! -r core* ] ; then @@ -762,27 +762,27 @@ new file mode 100644 +# Verify that $LOG contains all information we want +function verifyLog() { + local FAILURES=0 -+ ++ + mustNotHave '??' || ((FAILURES++)) + mustHaveCorrectAmount 12 threadcrash.c: || ((FAILURES++)) -+ ++ + mustHaveSevenThreads || ((FAILURES++)) + mustHaveSequence sleep "makeSyscall (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence sleep "syscallingSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "makeSyscallFromSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence sleep "syscallingAltSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "makeSyscallFromAltSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence Thread "spin (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence "spinningSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "spinFromSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence "spinningAltSighandler (signo=" "signal handler called" 0x || ((FAILURES++)) + mustHaveSequence pthread_kill "spinFromAltSighandler (ignored=" || ((FAILURES++)) -+ ++ + mustHaveSequence Thread "main (argc=1, argv=" || ((FAILURES++)) + + return $FAILURES @@ -844,7 +844,7 @@ new file mode 100644 + ((FAILURES++)) + echo >> /dev/stderr WARNING: gdb exited with error code $EXITCODE when creating gcore file + fi -+ ++ + # Verify that we got a core file from gcore + if [ ! -r core* ] ; then + echo >> /dev/stderr ERROR: gdb gcore did not create a core file diff --git a/gdb-6.5-bz109921-DW_AT_decl_file-test.patch b/gdb-6.5-bz109921-DW_AT_decl_file-test.patch index a27c8f3..8d03e3f 100644 --- a/gdb-6.5-bz109921-DW_AT_decl_file-test.patch +++ b/gdb-6.5-bz109921-DW_AT_decl_file-test.patch @@ -42,7 +42,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, @@ -66,12 +66,12 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -86,7 +86,7 @@ new file mode 100644 + && ![istarget *-*-openbsd*] + && ![istarget arm-*-eabi*] + && ![istarget powerpc-*-eabi*]} { -+ return 0 ++ return 0 +} + +set testfile "dw2-included" @@ -125,7 +125,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, diff --git a/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch b/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch index 8a648a3..db4229d 100644 --- a/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch +++ b/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch @@ -26,7 +26,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -45,22 +45,27 @@ diff --git a/gdb/testsuite/gdb.base/step-over-trampoline.exp b/gdb/testsuite/gdb new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/step-over-trampoline.exp -@@ -0,0 +1,54 @@ +@@ -0,0 +1,59 @@ +# Copyright 2006 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 ++} + +if $tracelevel then { + strace $tracelevel diff --git a/gdb-6.5-bz243845-stale-testing-zombie-test.patch b/gdb-6.5-bz243845-stale-testing-zombie-test.patch index a0520d7..2d62949 100644 --- a/gdb-6.5-bz243845-stale-testing-zombie-test.patch +++ b/gdb-6.5-bz243845-stale-testing-zombie-test.patch @@ -10,26 +10,27 @@ diff --git a/gdb/testsuite/gdb.base/tracefork-zombie.exp b/gdb/testsuite/gdb.bas new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/tracefork-zombie.exp -@@ -0,0 +1,75 @@ +@@ -0,0 +1,76 @@ +# Copyright 2007 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +# are we on a target board -+if [is_remote target] then { -+ return 0 ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 +} + +# Start the program running and then wait for a bit, to be sure diff --git a/gdb-6.5-gcore-buffer-limit-test.patch b/gdb-6.5-gcore-buffer-limit-test.patch index f4ae65e..07ba1e9 100644 --- a/gdb-6.5-gcore-buffer-limit-test.patch +++ b/gdb-6.5-gcore-buffer-limit-test.patch @@ -24,7 +24,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -40,7 +40,7 @@ new file mode 100644 +int main() +{ + void *mem; -+ ++ + mem = malloc (MEGS * 1024ULL * 1024ULL); + + for (;;) @@ -52,22 +52,27 @@ diff --git a/gdb/testsuite/gdb.base/gcore-excessive-memory.exp b/gdb/testsuite/g new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/gcore-excessive-memory.exp -@@ -0,0 +1,94 @@ +@@ -0,0 +1,99 @@ +# Copyright 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 ++} + +set testfile gcore-excessive-memory +set srcfile ${testfile}.c diff --git a/gdb-6.5-ia64-libunwind-leak-test.patch b/gdb-6.5-ia64-libunwind-leak-test.patch index 8a8a43a..6efdca9 100644 --- a/gdb-6.5-ia64-libunwind-leak-test.patch +++ b/gdb-6.5-ia64-libunwind-leak-test.patch @@ -24,7 +24,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -44,22 +44,27 @@ diff --git a/gdb/testsuite/gdb.base/unwind-leak.exp b/gdb/testsuite/gdb.base/unw new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/unwind-leak.exp -@@ -0,0 +1,83 @@ +@@ -0,0 +1,88 @@ +# Copyright 2007 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 ++} + +set testfile unwind-leak +set srcfile ${testfile}.c @@ -104,7 +109,7 @@ new file mode 100644 +verbose -log "cycles = $cycles, permit_kb = $permit_kb" + +set fail 0 -+set test "breakpoint stop/continue cycles" ++set test "breakpoint stop/continue cycles" +for {set i $cycles} {$i > 0} {set i [expr {$i - 1}]} { + gdb_test_multiple "continue" $test { + -re "Breakpoint 2, main .*alarm .*.*${gdb_prompt} $" { diff --git a/gdb-6.5-last-address-space-byte-test.patch b/gdb-6.5-last-address-space-byte-test.patch index 9c5779f..e99d811 100644 --- a/gdb-6.5-last-address-space-byte-test.patch +++ b/gdb-6.5-last-address-space-byte-test.patch @@ -17,15 +17,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +if $tracelevel then { + strace $tracelevel diff --git a/gdb-6.5-missed-trap-on-step-test.patch b/gdb-6.5-missed-trap-on-step-test.patch index 06a9f7e..0ad8ad1 100644 --- a/gdb-6.5-missed-trap-on-step-test.patch +++ b/gdb-6.5-missed-trap-on-step-test.patch @@ -27,7 +27,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -55,15 +55,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +set testfile watchpoint-during-step +set srcfile ${testfile}.c diff --git a/gdb-6.5-readline-long-line-crash-test.patch b/gdb-6.5-readline-long-line-crash-test.patch index c4127b7..087f916 100644 --- a/gdb-6.5-readline-long-line-crash-test.patch +++ b/gdb-6.5-readline-long-line-crash-test.patch @@ -12,22 +12,22 @@ diff --git a/gdb/testsuite/gdb.base/readline-overflow.exp b/gdb/testsuite/gdb.ba new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/readline-overflow.exp -@@ -0,0 +1,104 @@ +@@ -0,0 +1,96 @@ +# Copyright 2006 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# 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@prep.ai.mit.edu @@ -46,20 +46,12 @@ new file mode 100644 + +global env + -+save_vars { env(INPUTRC) env(GDBHISTFILE) env(HISTSIZE) TERM timeout } { ++save_vars { env(GDBHISTFILE) env(HISTSIZE) TERM timeout } { + # The arrow key test relies on the standard VT100 bindings, so + # make sure that an appropriate terminal is selected. The same + # bug doesn't show up if we use ^P / ^N instead. + setenv TERM vt100 + -+ # Don't let a .inputrc file or an existing setting of INPUTRC mess up -+ # the test results. Even if /dev/null doesn't exist on the particular -+ # platform, the readline library will use the default setting just by -+ # failing to open the file. OTOH, opening /dev/null successfully will -+ # also result in the default settings being used since nothing will be -+ # read from this file. -+ set env(INPUTRC) "/dev/null" -+ + set timeout 600 + + set env(GDBHISTFILE) "${srcdir}/${subdir}/gdb_history" diff --git a/gdb-6.5-section-num-fixup-test.patch b/gdb-6.5-section-num-fixup-test.patch index 012ba92..2fa3995 100644 --- a/gdb-6.5-section-num-fixup-test.patch +++ b/gdb-6.5-section-num-fixup-test.patch @@ -24,7 +24,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -51,7 +51,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -68,22 +68,27 @@ diff --git a/gdb/testsuite/gdb.base/datalib.exp b/gdb/testsuite/gdb.base/datalib new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/datalib.exp -@@ -0,0 +1,51 @@ +@@ -0,0 +1,56 @@ +# Copyright 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 ++} + +set testfile datalib +set srcfilemain ${testfile}-main.c diff --git a/gdb-6.5-sharedlibrary-path.patch b/gdb-6.5-sharedlibrary-path.patch index 6f31e88..360e5d3 100644 --- a/gdb-6.5-sharedlibrary-path.patch +++ b/gdb-6.5-sharedlibrary-path.patch @@ -33,7 +33,7 @@ diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug-main.c b/gdb/testsuite/gdb.t new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.threads/tls-sepdebug-main.c -@@ -0,0 +1,25 @@ +@@ -0,0 +1,31 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2006 Free Software Foundation, Inc. @@ -47,7 +47,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -55,9 +55,15 @@ new file mode 100644 + Please email any bugs, comments, and/or additions to this file to: + bug-gdb@prep.ai.mit.edu */ + ++#include ++ ++extern __thread int var; ++ +int main() +{ -+ return 0; ++ /* Ensure we link against pthreads even with --as-needed. */ ++ pthread_testcancel(); ++ return var; +} diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c b/gdb/testsuite/gdb.threads/tls-sepdebug-shared.c new file mode 100644 @@ -77,7 +83,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -90,22 +96,29 @@ diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug.exp b/gdb/testsuite/gdb.thre new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.threads/tls-sepdebug.exp -@@ -0,0 +1,87 @@ +@@ -0,0 +1,94 @@ +# Copyright 2006 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++ ++# This test uses gdb_exit and gdb_start, which are not supported ++# on non-extended-remote sessions. ++if {[use_gdb_stub]} { ++ untested "skipping test because of stub" ++ return 0 ++} + +if $tracelevel then { + strace $tracelevel @@ -158,22 +171,22 @@ new file mode 100644 + gdb_exit + gdb_start + ###gdb_reinitialize_dir $srcdir/$subdir -+ ++ + gdb_test "set env LD_LIBRARY_PATH=$ld_library_path" \ + "" \ + "set env LD_LIBRARY_PATH is $name" -+ ++ + gdb_load ${binmainfile} -+ ++ + # For C programs, "start" should stop in main(). -+ ++ + gdb_test "start" \ + "main \\(\\) at .*${srcmainfile}.*" \ + "start" -+ ++ + # Check for: Cannot find shared library `/usr/lib/debug/lib/libc-2.4.90.so.debug' in dynamic linker's load module list + # as happens with TLS variables and `separate_debug_objfile_backlink'. -+ ++ + gdb_test "print var" \ + "\\\$1 = \[0-9\].*" \ + "print TLS variable from a shared library with $name-directory separate debug info file" diff --git a/gdb-6.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index 83b83b0..bf783da 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -14,7 +14,7 @@ diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 1 (pkg-config-0.24) -+# ++# +# Copyright © 2004 Scott James Remnant . +# +# This program is free software; you can redistribute it and/or modify @@ -133,11 +133,11 @@ diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then -+ AC_MSG_RESULT([no]) ++ AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` -+ else ++ else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs @@ -154,7 +154,7 @@ diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then -+ AC_MSG_RESULT([no]) ++ AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full @@ -336,7 +336,7 @@ diff --git a/gdb/build-id.c b/gdb/build-id.c + + /* Already failed the initialization before? */ + if (init_tried) -+ return 0; ++ return 0; + init_tried = 1; + +#ifdef DLOPEN_LIBRPM @@ -1148,7 +1148,7 @@ diff --git a/gdb/configure b/gdb/configure + + +if test $pkg_failed = yes; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then @@ -1166,7 +1166,7 @@ diff --git a/gdb/configure b/gdb/configure + + HAVE_LIBRPM=false +elif test $pkg_failed = untried; then -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + HAVE_LIBRPM=false +else @@ -1450,7 +1450,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac + fi + fi +fi -+ ++ AC_CONFIG_SUBDIRS(testsuite) # Check whether to support alternative target configurations diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index 7bf6d11..90f714b 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -540,18 +540,18 @@ diff --git a/gdb/build-id.c b/gdb/build-id.c + /* There can be multiple build-id symlinks pointing to real files + with the same build-id (such as hard links). Some of the real + files may not be installed. */ ++ ++ string_appendf (link, ".%u", seqno); ++ } - /* We expect to be silent on the non-existing files. */ - gdb_bfd_ref_ptr debug_bfd = gdb_bfd_open (filename.get (), gnutarget); -+ string_appendf (link, ".%u", seqno); -+ } ++ ret_link = link; - if (debug_bfd == NULL) - { - if (separate_debug_file_debug) - printf_unfiltered (_(" no, unable to open.\n")); -+ ret_link = link; -+ + struct stat statbuf_trash; + + /* `access' automatically dereferences LINK. */ @@ -574,11 +574,11 @@ diff --git a/gdb/build-id.c b/gdb/build-id.c + + continue; + } - -- return {}; ++ + /* We expect to be silent on the non-existing files. */ + gdb_bfd_ref_ptr debug_bfd = gdb_bfd_open (filename.get (), gnutarget, -1); -+ + +- return {}; + if (debug_bfd == NULL) + { + if (separate_debug_file_debug) @@ -699,7 +699,7 @@ diff --git a/gdb/build-id.c b/gdb/build-id.c +{ + gdb_bfd_ref_ptr abfd; + char *result; -+ ++ + abfd = build_id_to_exec_bfd (build_id->size, build_id->data, link_return); + if (abfd == NULL) + return NULL; @@ -1361,6 +1361,19 @@ diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefi + gdb_test "info files" "Local exec file:\r\n\[ \t\]*`[string_to_regexp $debugdir/$buildid]', file type .*" + pass $wholetest +} +diff --git a/gdb/testsuite/gdb.base/gdbinit-history.exp b/gdb/testsuite/gdb.base/gdbinit-history.exp +--- a/gdb/testsuite/gdb.base/gdbinit-history.exp ++++ b/gdb/testsuite/gdb.base/gdbinit-history.exp +@@ -181,7 +181,8 @@ proc test_empty_history_filename { } { + global env + global gdb_prompt + +- set common_history [list "set height 0" "set width 0"] ++ set common_history [list "set height 0" "set width 0" \ ++ "set build-id-verbose 0"] + + set test_dir [standard_output_file history_test] + remote_exec host "mkdir -p $test_dir" diff --git a/gdb/testsuite/gdb.base/new-ui-pending-input.exp b/gdb/testsuite/gdb.base/new-ui-pending-input.exp --- a/gdb/testsuite/gdb.base/new-ui-pending-input.exp +++ b/gdb/testsuite/gdb.base/new-ui-pending-input.exp diff --git a/gdb-6.6-bz229517-gcore-without-terminal.patch b/gdb-6.6-bz229517-gcore-without-terminal.patch index b4ddc9f..2c127cc 100644 --- a/gdb-6.6-bz229517-gcore-without-terminal.patch +++ b/gdb-6.6-bz229517-gcore-without-terminal.patch @@ -79,15 +79,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# 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@prep.ai.mit.edu diff --git a/gdb-6.6-bz230000-power6-disassembly-test.patch b/gdb-6.6-bz230000-power6-disassembly-test.patch index f40b6f6..2b36147 100644 --- a/gdb-6.6-bz230000-power6-disassembly-test.patch +++ b/gdb-6.6-bz230000-power6-disassembly-test.patch @@ -31,7 +31,7 @@ new file mode 100644 +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Test PowerPC Power6 instructions disassembly. + diff --git a/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch b/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch index 89f2d64..4faef13 100644 --- a/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch +++ b/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch @@ -29,7 +29,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -202,12 +202,12 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ diff --git a/gdb-6.7-charsign-test.patch b/gdb-6.7-charsign-test.patch index 8c89b13..1a66390 100644 --- a/gdb-6.7-charsign-test.patch +++ b/gdb-6.7-charsign-test.patch @@ -36,7 +36,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -71,15 +71,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +set testfile charsign +set srcfile ${testfile}.c diff --git a/gdb-6.8-bz442765-threaded-exec-test.patch b/gdb-6.8-bz442765-threaded-exec-test.patch index e2ed431..90685c7 100644 --- a/gdb-6.8-bz442765-threaded-exec-test.patch +++ b/gdb-6.8-bz442765-threaded-exec-test.patch @@ -175,7 +175,7 @@ diff --git a/gdb/testsuite/gdb.threads/threaded-exec.exp b/gdb/testsuite/gdb.thr +gdb_load ${binfile_nothreads} -gdb_run_cmd -+gdb_run_cmd ${binfile_nothreads} ${binfile_threads} 0 ++gdb_run_cmd [list ${binfile_nothreads} ${binfile_threads} 0] gdb_test_multiple {} "Program exited" { -re "\r\n\\\[Inferior .* exited normally\\\]\r\n$gdb_prompt $" { diff --git a/gdb-6.8-bz466901-backtrace-full-prelinked.patch b/gdb-6.8-bz466901-backtrace-full-prelinked.patch index 542a956..39d8947 100644 --- a/gdb-6.8-bz466901-backtrace-full-prelinked.patch +++ b/gdb-6.8-bz466901-backtrace-full-prelinked.patch @@ -383,12 +383,12 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -402,7 +402,7 @@ new file mode 100644 + && ![istarget *-*-elf*] + && ![istarget *-*-openbsd*]) + || (![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"])} { -+ return 0 ++ return 0 +} + +set testfile "dw2-loclist-prelinked" diff --git a/gdb-archer-vla-tests.patch b/gdb-archer-vla-tests.patch index ef94df8..f07183c 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -80,7 +80,7 @@ new file mode 100644 + # gdb.arch/x86_64-vla-pointer.c:27 + .loc 1 27 0 + movl $0, -20(%rbp) -+# SUCC: 4 [100.0%] ++# SUCC: 4 [100.0%] + jmp .L2 +# BLOCK 3 seq:1 +# PRED: 4 @@ -98,7 +98,7 @@ new file mode 100644 + .loc 1 27 0 discriminator 3 + addl $1, -20(%rbp) +# BLOCK 4 seq:2 -+# PRED: 3 (FALLTHRU,DFS_BACK) 2 [100.0%] ++# PRED: 3 (FALLTHRU,DFS_BACK) 2 [100.0%] +.L2: + # gdb.arch/x86_64-vla-pointer.c:27 + .loc 1 27 0 is_stmt 0 discriminator 1 @@ -119,7 +119,7 @@ new file mode 100644 + movq -8(%rbp), %rbx + leave + .cfi_def_cfa 7, 8 -+# SUCC: EXIT [100.0%] ++# SUCC: EXIT [100.0%] + ret + .cfi_endproc +.LFE0: @@ -1531,7 +1531,7 @@ diff --git a/gdb/testsuite/gdb.cp/gdb9593.cc b/gdb/testsuite/gdb.cp/gdb9593.cc new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/gdb9593.cc -@@ -0,0 +1,180 @@ +@@ -0,0 +1,179 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2008, 2009 Free Software Foundation, Inc. @@ -1560,27 +1560,27 @@ new file mode 100644 + + + // Single throw an exception in this function. -+ void function1() ++ void function1() + { + throw 20; + } + + // Throw an exception in another function. -+ void function2() ++ void function2() + { + function1(); + } + + // Throw an exception in another function, but handle it + // locally. -+ void function3 () ++ void function3 () + { + { + try + { + function1 (); + } -+ catch (...) ++ catch (...) + { + cout << "Caught and handled function1 exception" << endl; + } @@ -1623,8 +1623,8 @@ new file mode 100644 +NextOverThrowDerivates next_cases; + + -+int main () -+{ ++int main () ++{ + try + { + next_cases.function1 (); @@ -1711,12 +1711,11 @@ new file mode 100644 + { + } +} -+ diff --git a/gdb/testsuite/gdb.cp/gdb9593.exp b/gdb/testsuite/gdb.cp/gdb9593.exp new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/gdb9593.exp -@@ -0,0 +1,182 @@ +@@ -0,0 +1,189 @@ +# Copyright 2008, 2009 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify @@ -1771,7 +1770,7 @@ new file mode 100644 +if ![runto_main] then { + perror "couldn't run to main" + continue -+} ++} + +# See whether we have the needed unwinder hooks. +set ok 1 @@ -1860,9 +1859,16 @@ new file mode 100644 + ".*function1 ().*" \ + "step into finish, for until" + -+gdb_test "until" \ -+ ".*function1 ().*" \ -+ "until with no argument 1" ++gdb_test_multiple "until" "until with no argument 1" { ++ -re -wrap ".*function1 ().*" { ++ pass $gdb_test_name ++ } ++ -re -wrap ".*$hex\t80\t \}" { ++ # PR gcc/97774 - "Incorrect line info for try/catch" ++ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97774 ++ xfail $gdb_test_name ++ } ++} + +set line [gdb_get_line_number "marker for until" $testfile.cc] + @@ -2239,7 +2245,7 @@ new file mode 100644 + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -+ ++ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, @@ -2272,19 +2278,19 @@ diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stripped.exp b/gdb/testsuite/gdb.dwarf new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.dwarf2/dw2-stripped.exp -@@ -0,0 +1,79 @@ +@@ -0,0 +1,84 @@ +# Copyright 2006 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -2299,7 +2305,12 @@ new file mode 100644 + && ![istarget *-*-openbsd*] + && ![istarget arm-*-eabi*] + && ![istarget powerpc-*-eabi*]} { -+ return 0 ++ return 0 ++} ++ ++if {[use_gdb_stub]} { ++ untested "skipping test because of use_gdb_stub" ++ return -1 +} + +set testfile "dw2-stripped" @@ -2468,7 +2479,7 @@ new file mode 100644 + && ![istarget *-*-openbsd*] + && ![istarget arm-*-eabi*] + && ![istarget powerpc-*-eabi*]} { -+ return 0 ++ return 0 +} + +set testfile "dw2-struct-member-data-location" @@ -2636,7 +2647,7 @@ new file mode 100644 + +# This test can only be run on targets which support DWARF-2 and use gas. +if {![dwarf2_support]} { -+ return 0 ++ return 0 +} + +set testfile dw2-subrange-no-type @@ -2663,15 +2674,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This file was written by Jan Kratochvil . + @@ -2755,15 +2766,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This file was written by Jan Kratochvil . + @@ -3017,15 +3028,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This file was written by Jan Kratochvil . + @@ -3212,12 +3223,12 @@ new file mode 100644 +! it under the terms of the GNU General Public License as published by +! the Free Software Foundation; either version 3 of the License, or +! (at your option) any later version. -+! ++! +! This program is distributed in the hope that it will be useful, +! but WITHOUT ANY WARRANTY; without even the implied warranty of +! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +! GNU General Public License for more details. -+! ++! +! You should have received a copy of the GNU General Public License +! along with this program. If not, see . + @@ -3429,22 +3440,22 @@ diff --git a/gdb/testsuite/gdb.opt/fortran-string.exp b/gdb/testsuite/gdb.opt/fo new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.opt/fortran-string.exp -@@ -0,0 +1,39 @@ +@@ -0,0 +1,46 @@ +# Copyright 2009 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This file was written by Jan Kratochvil . + @@ -3466,14 +3477,21 @@ new file mode 100644 + continue +} + -+gdb_test "frame" ".*s='foo'.*" -+gdb_test "ptype s" "type = character\\*3" ++gdb_test "info args" ".*s = 'foo'.*" ++gdb_test_multiple "ptype s" "" { ++ -re -wrap "type = character \\(3\\)" { ++ pass $gdb_test_name ++ } ++ -re -wrap "type = character\\*3" { ++ pass $gdb_test_name ++ } ++} +gdb_test "p s" "\\$\[0-9\]* = 'foo'" diff --git a/gdb/testsuite/gdb.opt/fortran-string.f90 b/gdb/testsuite/gdb.opt/fortran-string.f90 new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.opt/fortran-string.f90 -@@ -0,0 +1,28 @@ +@@ -0,0 +1,29 @@ +! Copyright 2009 Free Software Foundation, Inc. +! +! This program is free software; you can redistribute it and/or modify @@ -3497,6 +3515,7 @@ new file mode 100644 + subroutine f(s) + character*(*) s + s = s ++ print *, s + end + + program main @@ -3506,7 +3525,7 @@ diff --git a/gdb/testsuite/gdb.pascal/arrays.exp b/gdb/testsuite/gdb.pascal/arra new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.pascal/arrays.exp -@@ -0,0 +1,104 @@ +@@ -0,0 +1,107 @@ +# Copyright 2008, 2009 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify @@ -3598,11 +3617,15 @@ new file mode 100644 + +if { $fpc_generates_dwarf_for_dynamic_arrays == 0} { + setup_xfail "*-*-*" ++} else { ++ setup_kfail "*-*-*" pascal/26106 +} +gdb_test "print DynArrStr" ".* = \\{'dstr0', 'dstr1', 'dstr2', 'dstr3', 'dstr4', 'dstr5', 'dstr6', 'dstr7', 'dstr8', 'dstr9', 'dstr10', 'dstr11', 'dstr12'\\}" "Print dynamic array of string" + +if { $fpc_generates_dwarf_for_dynamic_arrays == 0} { + setup_xfail "*-*-*" ++} else { ++ setup_kfail "*-*-*" pascal/26855 +} +gdb_test "print StatArrStr" ".* = \\{'str0', 'str1', 'str2', 'str3', 'str4', 'str5', 'str6', 'str7', 'str8', 'str9', 'str10', 'str11', 'str12'\\}" "Print static array of string" + @@ -3610,7 +3633,6 @@ new file mode 100644 + setup_xfail "*-*-*" +} +gdb_test "print DynArrChar" ".* = 'abcdefghijklm'" "Print dynamic array of char" -+ diff --git a/gdb/testsuite/gdb.pascal/arrays.pas b/gdb/testsuite/gdb.pascal/arrays.pas new file mode 100644 --- /dev/null @@ -3660,7 +3682,7 @@ new file mode 100644 + Stat2dArrInt: TStat2dArrInt; + + s: string; -+ ++ + i,j : integer; + +begin @@ -3690,8 +3712,8 @@ new file mode 100644 + DynArrStr[i]:='dstr'+inttostr(i); + end; + writeln(DynArrInt_[1]); -+ writeln(DynArrInt[1]); -+ writeln(DynArrStr[1]); ++ writeln(DynArrInt[1]); ++ writeln(DynArrStr[1]); + writeln(StatArrStr[1]); + writeln(DynArrChar[1]); + @@ -3736,7 +3758,7 @@ diff --git a/gdb/testsuite/lib/pascal.exp b/gdb/testsuite/lib/pascal.exp + set fpcversion_major 1 + set fpcversion_minor 0 + set fpcversion_release 0 -+ set fpcversion [ remote_exec host $fpc_compiler "-iV" ] ++ set fpcversion [ remote_exec host $fpc_compiler "-iV" ] + if [regexp {.*([0-9]+)\.([0-9]+)\.([0-9]+).?} $fpcversion] { + regsub {.*([0-9]+)\.([0-9]+)\.([0-9]+).?\n?.?} $fpcversion {\1} fpcversion_major + regsub {.*([0-9]+)\.([0-9]+)\.([0-9]+).?\n?.?} $fpcversion {\2} fpcversion_minor diff --git a/gdb-btrobust.patch b/gdb-btrobust.patch index 2c7e2d3..c7ed21a 100644 --- a/gdb-btrobust.patch +++ b/gdb-btrobust.patch @@ -43,3 +43,30 @@ diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c } return success; +diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp +--- a/gdb/testsuite/gdb.python/py-framefilter.exp ++++ b/gdb/testsuite/gdb.python/py-framefilter.exp +@@ -277,9 +277,20 @@ gdb_test_multiple "bt 1" $test { + # Now verify that we can see a quit. + gdb_test_no_output "python name_error = KeyboardInterrupt" \ + "Change ErrorFilter to throw KeyboardInterrupt" +-gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt" +- +- ++set re1 [multi_line \ ++ "Python Exception whoops: " \ ++ "\\(More stack frames follow\.\.\.\\)"] ++set re2 [multi_line \ ++ "Python Exception whoops: " \ ++ "\\(More stack frames follow\.\.\.\\)"] ++gdb_test_multiple "bt 1" "" { ++ -re -wrap $re1 { ++ pass $gdb_test_name ++ } ++ -re -wrap $re2 { ++ pass $gdb_test_name ++ } ++} + # Test with no debuginfo + + # We cannot use prepare_for_testing as we have to set the safe-patch diff --git a/gdb-bz601887-dwarf4-rh-test.patch b/gdb-bz601887-dwarf4-rh-test.patch index 87b7817..966c986 100644 --- a/gdb-bz601887-dwarf4-rh-test.patch +++ b/gdb-bz601887-dwarf4-rh-test.patch @@ -233,11 +233,11 @@ new file mode 100644 + && ![istarget *-*-openbsd*] + && ![istarget arm-*-eabi*] + && ![istarget powerpc-*-eabi*]} { -+ return 0 ++ return 0 +} + +if {![istarget x86_64-*]} { -+ return 0 ++ return 0 +} + +set testfile "rh-dwarf4-x86_64" diff --git a/gdb-bz634108-solib_address.patch b/gdb-bz634108-solib_address.patch index abbc407..58b473f 100644 --- a/gdb-bz634108-solib_address.patch +++ b/gdb-bz634108-solib_address.patch @@ -38,4 +38,4 @@ new file mode 100644 +# Skip all tests if Python scripting is not enabled. +if { [skip_python_tests] } { continue } + -+gdb_test "python print gdb.solib_name(-1)" "None" "gdb.solib_name exists" ++gdb_test "python print (gdb.solib_name(-1))" "None" "gdb.solib_name exists" diff --git a/gdb-dts-rhel6-python-compat.patch b/gdb-dts-rhel6-python-compat.patch index 697c6f0..064e7e7 100644 --- a/gdb-dts-rhel6-python-compat.patch +++ b/gdb-dts-rhel6-python-compat.patch @@ -159,7 +159,7 @@ diff --git a/gdb/python/lib/gdb/backtrace.py b/gdb/python/lib/gdb/backtrace.py new file mode 100644 --- /dev/null +++ b/gdb/python/lib/gdb/backtrace.py -@@ -0,0 +1,42 @@ +@@ -0,0 +1,41 @@ +# Filtering backtrace. + +# Copyright (C) 2008, 2011 Free Software Foundation, Inc. @@ -201,12 +201,11 @@ new file mode 100644 + if old_frame_filter is None: + return iter + return old_frame_filter (iter) -+ diff --git a/gdb/python/lib/gdb/command/backtrace.py b/gdb/python/lib/gdb/command/backtrace.py new file mode 100644 --- /dev/null +++ b/gdb/python/lib/gdb/command/backtrace.py -@@ -0,0 +1,106 @@ +@@ -0,0 +1,112 @@ +# New backtrace command. + +# Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc. @@ -290,13 +289,19 @@ new file mode 100644 + # FIXME: provide option to start at selected frame + # However, should still number as if starting from newest + newest_frame = gdb.newest_frame() -+ iter = itertools.imap (FrameWrapper, -+ FrameIterator (newest_frame)) ++ if sys.version_info.major >= 3: ++ iter = map (FrameWrapper, FrameIterator (newest_frame)) ++ else: ++ iter = itertools.imap (FrameWrapper, ++ FrameIterator (newest_frame)) + if filter: + iter = gdb.backtrace.create_frame_filter (iter) + + # Now wrap in an iterator that numbers the frames. -+ iter = itertools.izip (itertools.count (0), iter) ++ if sys.version_info.major >= 3: ++ iter = zip (itertools.count (0), iter) ++ else: ++ iter = itertools.izip (itertools.count (0), iter) + + # Reverse if the user wanted that. + if self.reverse.value: @@ -313,3 +318,17 @@ new file mode 100644 + pair[1].describe (sys.stdout, full) + +FilteringBacktrace() +diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp +--- a/gdb/testsuite/gdb.base/help.exp ++++ b/gdb/testsuite/gdb.base/help.exp +@@ -129,7 +129,9 @@ gdb_test "apropos apropos" "apropos -- Search for commands matching a REGEXP.*" + + # Test apropos for commands having aliases. + gdb_test "apropos Print backtrace of all stack frames, or innermost COUNT frames\." \ +- "backtrace, where, bt -- Print backtrace of all stack frames, or innermost COUNT frames\." ++ [multi_line \ ++ "backtrace, where, bt -- Print backtrace of all stack frames, or innermost COUNT frames\." \ ++ "new-backtrace -- Print backtrace of all stack frames, or innermost COUNT frames\."] + + # Test help for commands having aliases. + gdb_test "help bt" "backtrace, where, bt\[\r\n\]+Print backtrace of all stack frames, or innermost COUNT frames\..*" diff --git a/gdb-fortran-frame-string.patch b/gdb-fortran-frame-string.patch index a7b7b58..4bdd059 100644 --- a/gdb-fortran-frame-string.patch +++ b/gdb-fortran-frame-string.patch @@ -39,15 +39,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +standard_testfile .f90 +if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}] } { @@ -67,7 +67,7 @@ new file mode 100644 + +# Fix rejected upstream: +# https://sourceware.org/ml/gdb-patches/2014-07/msg00768.html -+setup_kfail "rejected" *-*-* ++setup_kfail "rejected" *-*-* +gdb_test "frame" { \(s='foo', .*} diff --git a/gdb/testsuite/gdb.fortran/fortran-frame-string.f90 b/gdb/testsuite/gdb.fortran/fortran-frame-string.f90 new file mode 100644 diff --git a/gdb-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index 190e2da..da9c5de 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -10,7 +10,7 @@ diff --git a/gdb/testsuite/gdb.base/gnu-ifunc-strstr-workaround.exp b/gdb/testsu new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/gnu-ifunc-strstr-workaround.exp -@@ -0,0 +1,115 @@ +@@ -0,0 +1,119 @@ +# Copyright (C) 2012 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify @@ -56,6 +56,10 @@ new file mode 100644 + untested "$test (no DWARF)" + return 0 + } ++ -re "type = \\(\\)\r\n$gdb_prompt $" { ++ untested "$test (no DWARF)" ++ return 0 ++ } +} + +set addr "" @@ -124,5 +128,5 @@ new file mode 100644 + } +} + -+gdb_test {print strstr("abc","b")} { = 0x[0-9a-f]+ "bc"} -+gdb_test {print strstr("def","e")} { = 0x[0-9a-f]+ "ef"} ++gdb_test {print (char *)strstr("abc","b")} { = 0x[0-9a-f]+ "bc"} ++gdb_test {print (char *)strstr("def","e")} { = 0x[0-9a-f]+ "ef"} diff --git a/gdb-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index 5f00bff..8e1fc7b 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -150,7 +150,7 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp --- a/gdb/testsuite/gdb.threads/attach-stopped.exp +++ b/gdb/testsuite/gdb.threads/attach-stopped.exp -@@ -56,7 +56,65 @@ proc corefunc { threadtype } { +@@ -56,7 +56,73 @@ proc corefunc { threadtype } { gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} @@ -162,10 +162,10 @@ diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.th + set test "$threadtype: set file, before attach1 to stopped process" + gdb_test_multiple "file $binfile" "$test" { + -re "Load new symbol table from.*y or n. $" { -+ gdb_test "y" "Reading symbols from $escapedbinfile\.\.\.*done." \ ++ gdb_test "y" "Reading symbols from $escapedbinfile\.\.\.*" \ + "$test (re-read)" + } -+ -re "Reading symbols from $escapedbinfile\.\.\.*done.*$gdb_prompt $" { ++ -re "Reading symbols from $escapedbinfile\.\.\.*$gdb_prompt $" { + pass "$test" + } + } @@ -185,22 +185,30 @@ diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.th + } + + # Exit and detach the process. -+ ++ + gdb_exit + + # Avoid some race: + sleep 2 + + if [catch {open /proc/${testpid}/status r} fileid] { -+ set line2 "NOTFOUND" ++ set line "NOTFOUND" + } else { -+ gets $fileid line1; -+ gets $fileid line2; ++ while { 1 } { ++ if { [gets $fileid line] < 0 } { ++ set line "EOF" ++ break ++ } ++ if {[string match "State:*" $line]} { ++ break ++ } ++ } + close $fileid; + } + + set test "$threadtype: attach1, exit leaves process stopped" -+ if {[string match "*(stopped)*" $line2]} { ++ verbose -log "line: $line" ++ if {[string match "*(stopped)*" $line]} { + pass $test + } else { + fail $test diff --git a/gdb-lineno-makeup-test.patch b/gdb-lineno-makeup-test.patch index 313421d..4b96286 100644 --- a/gdb-lineno-makeup-test.patch +++ b/gdb-lineno-makeup-test.patch @@ -64,10 +64,10 @@ new file mode 100644 + +/* DW_AT_low_pc-DW_AT_high_pc should cover the function without line number + information (.debug_line) so we cannot use an external object file. -+ ++ + It must not be just a label as it would alias on the next function even for + correct GDB. Therefore some stub data must be placed there. -+ ++ + We need to provide a real stub function body as at least s390 + (s390_analyze_prologue) would skip the whole body till reaching `main'. */ + diff --git a/gdb-physname-pr11734-test.patch b/gdb-physname-pr11734-test.patch index e862eea..835e18c 100644 --- a/gdb-physname-pr11734-test.patch +++ b/gdb-physname-pr11734-test.patch @@ -12,7 +12,7 @@ diff --git a/gdb/testsuite/gdb.cp/pr11734-1.cc b/gdb/testsuite/gdb.cp/pr11734-1. new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr11734-1.cc -@@ -0,0 +1,30 @@ +@@ -0,0 +1,29 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 Free Software Foundation, Inc. @@ -42,12 +42,11 @@ new file mode 100644 + p->foo (); + return 0; +} -+ diff --git a/gdb/testsuite/gdb.cp/pr11734-2.cc b/gdb/testsuite/gdb.cp/pr11734-2.cc new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr11734-2.cc -@@ -0,0 +1,27 @@ +@@ -0,0 +1,26 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 Free Software Foundation, Inc. @@ -74,12 +73,11 @@ new file mode 100644 +pr11734::foo(void) +{ +} -+ diff --git a/gdb/testsuite/gdb.cp/pr11734-3.cc b/gdb/testsuite/gdb.cp/pr11734-3.cc new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr11734-3.cc -@@ -0,0 +1,27 @@ +@@ -0,0 +1,26 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 Free Software Foundation, Inc. @@ -106,12 +104,11 @@ new file mode 100644 +pr11734::foo (int a) +{ +} -+ diff --git a/gdb/testsuite/gdb.cp/pr11734-4.cc b/gdb/testsuite/gdb.cp/pr11734-4.cc new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr11734-4.cc -@@ -0,0 +1,27 @@ +@@ -0,0 +1,26 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 Free Software Foundation, Inc. @@ -138,7 +135,6 @@ new file mode 100644 +pr11734::foo (char *a) +{ +} -+ diff --git a/gdb/testsuite/gdb.cp/pr11734.exp b/gdb/testsuite/gdb.cp/pr11734.exp new file mode 100644 --- /dev/null @@ -203,7 +199,7 @@ diff --git a/gdb/testsuite/gdb.cp/pr11734.h b/gdb/testsuite/gdb.cp/pr11734.h new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.cp/pr11734.h -@@ -0,0 +1,28 @@ +@@ -0,0 +1,27 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2010 Free Software Foundation, Inc. @@ -231,4 +227,3 @@ new file mode 100644 + void foo (int); + void foo (char *); +}; -+ diff --git a/gdb-ppc-power7-test.patch b/gdb-ppc-power7-test.patch index 3ca7667..c8b22cf 100644 --- a/gdb-ppc-power7-test.patch +++ b/gdb-ppc-power7-test.patch @@ -25,7 +25,7 @@ new file mode 100644 +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Test PowerPC Power7 instructions disassembly. + @@ -48,7 +48,7 @@ new file mode 100644 +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${objfile} -+ ++ + +# Disassemble the function. + diff --git a/gdb-rhbz1156192-recursive-dlopen-test.patch b/gdb-rhbz1156192-recursive-dlopen-test.patch index 6ca0c7b..96b93ae 100644 --- a/gdb-rhbz1156192-recursive-dlopen-test.patch +++ b/gdb-rhbz1156192-recursive-dlopen-test.patch @@ -81,7 +81,7 @@ diff --git a/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.c b/gdb/tes new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.c -@@ -0,0 +1,124 @@ +@@ -0,0 +1,125 @@ +/* Testcase for recursive dlopen calls. + + Copyright (C) 2014 Free Software Foundation, Inc. @@ -178,6 +178,7 @@ new file mode 100644 + /* Called recursively. */ + result = malloc (size); + /* Restore new hooks. */ ++ old_malloc_hook = __malloc_hook; + __malloc_hook = custom_malloc_hook; + return result; +} @@ -210,7 +211,7 @@ diff --git a/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.exp b/gdb/t new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.base/gdb-rhbz1156192-recursive-dlopen.exp -@@ -0,0 +1,137 @@ +@@ -0,0 +1,157 @@ +# Copyright 2014 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify @@ -226,8 +227,12 @@ new file mode 100644 +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + -+if { [skip_shlib_tests] } { -+ return 0 ++if {[skip_shlib_tests]} { ++ untested "skipping shlib tests" ++ return 0 ++} elseif {[use_gdb_stub]} { ++ untested "skipping tests because of stub" ++ return 0 +} + +# Library foo @@ -262,6 +267,21 @@ new file mode 100644 + return -1 +} + ++set supported 0 ++gdb_test_multiple "run" "initial trial run" { ++ -re -wrap "exited normally.*" { ++ set supported 1 ++ pass $gdb_test_name ++ } ++ -re -wrap "exited with code.*" { ++ untested "failed at $gdb_test_name" ++ } ++} ++ ++if { $supported == 0 } { ++ return -1 ++} ++ +proc do_test { has_libfoo has_libbar } { + global hex binfile_lib2 binfile_lib1 gdb_prompt + set libbar_match "[string_to_regexp $binfile_lib2]" @@ -314,6 +334,7 @@ new file mode 100644 + gdb_test_no_output "set stop-on-solib-events 1" "setting stop-on-solib-events" + + gdb_run_cmd ++ gdb_test "" "Wait for first prompt" + foreach l $solib_event_order { + incr pass + with_test_prefix "pass #$pass" { diff --git a/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch b/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch index b4e3109..a0eb440 100644 --- a/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch +++ b/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch @@ -73,7 +73,7 @@ new file mode 100644 +set test "rwatch aligned.var4" +if [istarget "s390*-*-*"] { + gdb_test $test {Target does not support this type of hardware watchpoint\.} -+ untested "s390* does not support hw read watchpoint" ++ untested "s390* does not support hw read watchpoint" + return +} +gdb_test $test "Hardware read watchpoint \[0-9\]+: aligned.var4" diff --git a/gdb-rhbz1398387-tab-crash-test.patch b/gdb-rhbz1398387-tab-crash-test.patch index c8fe7b4..d0555c0 100644 --- a/gdb-rhbz1398387-tab-crash-test.patch +++ b/gdb-rhbz1398387-tab-crash-test.patch @@ -428,7 +428,7 @@ new file mode 100644 + +if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { + return -+} ++} + +standard_testfile + diff --git a/gdb-rhbz1941080-fix-gdbserver-hang.patch b/gdb-rhbz1941080-fix-gdbserver-hang.patch index 9a8a1ff..e639de1 100644 --- a/gdb-rhbz1941080-fix-gdbserver-hang.patch +++ b/gdb-rhbz1941080-fix-gdbserver-hang.patch @@ -39,1804 +39,6 @@ gdb/testsuite/ChangeLog: * lib/gdbserver-support.exp (gdbserver_exit): Use the "-nowait" flag when waiting for gdbserver to exit. -diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog ---- a/gdb/testsuite/ChangeLog -+++ b/gdb/testsuite/ChangeLog -@@ -1,3 +1,1794 @@ -+<<<<<<< HEAD -+======= -+2021-03-19 Kevin Buettner -+ -+ * lib/gdbserver-support.exp (gdbserver_exit): Use the -+ "-nowait" flag when waiting for gdbserver to exit. -+ -+2021-03-19 Sourabh Singh Tomar -+ -+ * gdb.base/info-macros.exp: Append -fdebug-macro to -+ additional_flags for clang. -+ * gdb.base/macscp.exp: Likewise. -+ * gdb.base/style.exp: Likewise. -+ * gdb.linespec/macro-relative.exp: Likewise. -+ -+2021-03-17 Simon Marchi -+ Pedro Alves -+ -+ * gdb.base/run-attach-while-running.exp: New. -+ * gdb.base/run-attach-while-running.c: New. -+ -+2021-03-16 Andrew Burgess -+ -+ * gdb.python/py-framefilter-addr.c: New file. -+ * gdb.python/py-framefilter-addr.exp: New file. -+ * gdb.python/py-framefilter-addr.py: New file. -+ -+2021-03-16 Andrew Burgess -+ -+ * gdb.threads/execl.exp: Remove duplicate 'info threads' test. -+ Make use of $gdb_test_name instead of creating a separate $test -+ variable. -+ * gdb.threads/print-threads.exp: Add a with_test_prefix instead of -+ adding a '($name)' at the end of each test. This also catches the -+ one place where '($name)' was missing, and so caused a duplicate -+ test name. -+ * gdb.threads/queue-signal.exp: Give tests unique names to avoid -+ duplicate test names based on the command being tested. -+ * gdb.threads/signal-command-multiple-signals-pending.exp: -+ Likewise. -+ * lib/gdb.exp (gdb_compile_shlib_pthreads): Tweak test name to -+ avoid duplicate testnames when a test script uses this proc and -+ also gdb_compile_pthreads. -+ * lib/prelink-support.exp (build_executable_own_libs): Use -+ with_test_prefix to avoid duplicate test names when we call -+ build_executable twice. -+ -+2021-03-15 Tom Tromey -+ -+ * gdb.ada/fixed_points.exp: Add tests of unary + and -. -+ -+2021-03-15 Tom Tromey -+ -+ * gdb.ada/varsize_limit.exp: Add new test. -+ * gdb.ada/varsize_limit/vsizelim.adb: Update. -+ -+2021-03-15 Tom Tromey -+ -+ * gdb.ada/operator_call/twovecs.ads: New file. -+ * gdb.ada/operator_call/twovecs.adb: New file. -+ * gdb.ada/operator_call/opcall.adb: New file. -+ * gdb.ada/operator_call.exp: New file. -+ -+2021-03-15 Tom Tromey -+ -+ * gdb.ada/enums_overload/enums_overload_main.adb: New file. -+ * gdb.ada/enums_overload/enums_overload.ads: New file. -+ * gdb.ada/enums_overload/enums_overload.adb: New file. -+ * gdb.ada/enums_overload.exp: New file. -+ -+2021-03-15 Tom Tromey -+ -+ * gdb.ada/assign_arr/target_wrapper.ads (IArray, Put, Do_Nothing): -+ Declare. -+ * gdb.ada/assign_arr/target_wrapper.adb: New file. -+ * gdb.ada/assign_arr/main_p324_051.adb (IValue): New variable. -+ Call Put. -+ * gdb.ada/assign_arr.exp: Update. -+ -+2021-03-15 Andrew Burgess -+ -+ * gdb.python/py-auto-load-chaining-f1.c: New file. -+ * gdb.python/py-auto-load-chaining-f1.o-gdb.py: New file. -+ * gdb.python/py-auto-load-chaining-f2.c: New file. -+ * gdb.python/py-auto-load-chaining-f2.o-gdb.py: New file. -+ * gdb.python/py-auto-load-chaining.c: New file. -+ * gdb.python/py-auto-load-chaining.exp: New file. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-bad-printers.exp: Extend test names to make them -+ unique. -+ * gdb.python/py-events.exp: Likewise. -+ * gdb.python/py-finish-breakpoint2.exp: Likewise. -+ * gdb.python/py-frame-inline.exp: Likewise. -+ * gdb.python/py-frame.exp: Likewise. -+ * gdb.python/py-infthread.exp: Likewise. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-value-cc.exp: Remove a duplicate test. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/lib-types.exp: Update the test to check the correct -+ python variable. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-explore-cc.exp: Extend test names to make them -+ unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-lookup-type.exp: Remove duplicate test. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-symtab.exp: Extend test names to make them -+ unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-prompt.exp: Add with_test_prefix to make test -+ names unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-block.exp: Give tests unique names. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-pp-maint.exp: Extend test names to make them -+ unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-explore.exp: Add with_test_prefix to make test -+ names unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-finish-breakpoint.exp: Make test names unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-strfns.exp: Use with_test_prefix to make test -+ names unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-format-string.exp: Use proc_with_prefix to make -+ test names unique. -+ -+2021-03-12 Andrew Burgess -+ -+ * gdb.python/py-mi.exp: Use with_test_prefix to make test names -+ unique. -+ -+2021-03-09 Tom Tromey -+ -+ * gdb.base/cast-call.exp: New file. -+ * gdb.base/cast-call.c: New file. -+ -+2021-03-09 Andrew Burgess -+ -+ * gdb.gdb/python-helper.exp: New file. -+ -+2020-03-04 Felix Willgerodt -+ -+ * gdb.fortran/intrinsics.exp: Add LOC tests. -+ -+2021-03-09 Andrew Burgess -+ -+ * gdb.fortran/shape.exp: New file. -+ * gdb.fortran/shape.f90: New file. -+ -+2021-03-09 Andrew Burgess -+ -+ * gdb.fortran/size.exp: New file. -+ * gdb.fortran/size.f90: New file. -+ -+2021-03-09 Andrew Burgess -+ -+ * gdb.fortran/rank.exp: New file. -+ * gdb.fortran/rank.f90: New file. -+ -+2021-03-08 Tom Tromey -+ -+ * gdb.fortran/debug-expr.exp: Update tests. -+ -+2021-03-08 Tom Tromey -+ -+ * gdb.base/debug-expr.exp: Update expected dump output. -+ -+2021-03-06 Tom Tromey -+ -+ * lib/dwarf.exp (_handle_DW_FORM): Treat DW_FORM_GNU_ref_alt and -+ DW_FORM_GNU_strp_alt like DW_FORM_sec_offset. -+ * gdb.dwarf2/dwznolink.exp: New file. -+ -+2021-03-05 Mark Wielaard -+ -+ * lib/valgrind.exp (vgdb_start): Add --wait=1 to vgdbcmd. -+ -+2021-03-06 Weimin Pan -+ -+ * gdb.base/ctf-ptype.exp: Add function tests and fix typos. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/rn-dl-bind.exp: Add ldflags=-Wl,-z,lazy. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/non-stop.exp: Adjust expected source lines. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/stepi.exp: Add {} options to prepare_for_testing. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/exception.cc (main): Update test source. -+ * gdb.btrace/exception.exp: Update patterns. -+ * gdb.btrace/function_call_history.exp: Likewise. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/unknown_functions.exp: Move -Wl,-x to ldflags. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/rn-dl-bind.exp: Replace reverse-step with -+ reverse-continue to breakpoint. -+ -+2021-03-03 Markus Metzger -+ -+ * gdb.btrace/delta.exp: Remove instruction-history and -+ function-call-history checks. -+ -+2021-03-03 Markus Metzger -+ -+ * README (Note): Add nopie_ldflag. -+ * lib/gdb.exp (gdb_compile): Extend nopie handling. -+ -+2021-03-02 Tom Tromey -+ -+ * gdb.ada/fixed_points.exp: Remove most special cases for minimal -+ encodings. -+ -+2021-02-27 Lancelot Six -+ -+ PR gdb/27393 -+ * gdb.base/source-dir.exp: Test that empty dirnames are skipped. -+ -+ -+2021-02-26 Tom Tromey -+ -+ * lib/gdb.exp (skip_ctf_tests): Use expr on result. -+ -+2021-02-26 Jan Vrany -+ -+ * gdb.trace/mi-tsv-changed.exp (test_create_delete_modify_tsv): -+ Remove trailing \n from expected output. -+ -+2021-02-26 Markus Metzger -+ -+ * lib/gdb.exp (use_gdb_stub): Extend comment. -+ -+2021-02-25 Jan Matyas -+ -+ PR gdb/26819 -+ * gdb.server/stop-reply-no-thread.exp: Add two test -+ scenarios that cover remote targets which do not have -+ the concept of threads. -+ -+2021-02-25 Andrew Burgess -+ -+ * gdb.fortran/associated.exp: Add missing '-wrap' argument. -+ -+2021-02-25 Andrew Burgess -+ -+ PR fortran/26155 -+ * gdb.fortran/call-no-debug-func.f90: New file. -+ * gdb.fortran/call-no-debug-prog.f90: New file. -+ * gdb.fortran/call-no-debug.exp: New file. -+ -+2021-02-25 Andrew Burgess -+ -+ * gdb.fortran/associated.exp: New file. -+ * gdb.fortran/associated.f90: New file. -+ -+2021-02-25 Andrew Burgess -+ -+ * gdb.fortran/dot-ops.exp (dot_operations): Test ".xor.". -+ -+2021-02-24 Andrew Burgess -+ -+ * gdb.base/sect-cmd.exp: Update expected results. -+ -+2021-02-24 Andrew Burgess -+ -+ * gdb.base/sect-cmd.exp: Rewrite using modern testsuite -+ techniques. Enable the test for all targets. -+ -+2021-02-24 Andrew Burgess -+ -+ * gdb.base/maint-info-sections.exp: Add new tests. -+ (check_maint_info_target_sections_output): New proc. -+ -+2021-02-24 Andrew Burgess -+ -+ * gdb.arch/riscv-default-tdesc.exp: New file. -+ -+2021-02-24 Andrew Burgess -+ -+ * gdb.fortran/pointer-to-pointer.exp: Additional tests. -+ -+2021-02-18 Andrew Burgess -+ -+ * gdb.arch/i386-biarch-core.exp: Add target check. -+ -+2021-02-16 Alok Kumar Sharma -+ -+ * gdb.dwarf2/pr13961.S: Corrected invalid DIE references. -+ -+2021-02-12 Andrew Burgess -+ -+ * gdb.fortran/allocated.exp: New file. -+ * gdb.fortran/allocated.f90: New file. -+ -+2021-02-11 Andrew Burgess -+ -+ * gdb.fortran/lbound-ubound.exp: Remove old comment. -+ -+2021-02-11 Andrew Burgess -+ -+ * gdb.base/maint-info-sections.exp: Update expected output, and -+ add additional tests. Again. -+ -+2021-02-11 Andrew Burgess -+ -+ * gdb.base/maint-info-sections.exp: Update expected output, and -+ add additional tests. -+ -+2021-02-11 Andrew Burgess -+ -+ * gdb.base/maint-info-sections.exp: New file, content is moved -+ from gdb.base/maint.exp and cleaned up to use latest testsuite -+ techniques. -+ * gdb.base/maint.exp: Tests moved out to -+ gdb.base/maint-info-sections.exp. -+ -+2021-02-10 Simon Marchi -+ -+ * gdb.multi/multi-target.exp.tcl (setup): Add "set sysroot" to -+ GDBFLAGS. -+ -+2021-02-10 Andrew Burgess -+ -+ * gdb.fortran/lbound-ubound.F90: New file. -+ * gdb.fortran/lbound-ubound.exp: New file. -+ -+2021-02-10 Tom de Vries -+ -+ * lib/gdb.exp (gdb_load_no_complaints): Remove unnecessary -+ "Restore saved setting of complaints". -+ -+2021-02-09 Tom de Vries -+ -+ PR symtab/27341 -+ * lib/gdb.exp (with_complaints): New proc, factored out of ... -+ (gdb_load_no_complaints): ... here. -+ * gdb.fortran/function-calls.exp: Add test-case. -+ -+2021-02-09 Abid Qadeer -+ -+ * gdb.threads/signal-command-handle-nopass.exp: Call -+ 'standard_testfile' before using 'testfile'. -+ * gdb.threads/signal-command-multiple-signals-pending.exp: Likewise. -+ * gdb.threads/signal-delivered-right-thread.exp: Likewise -+ * gdb.threads/signal-sigtrap.exp: Likewise -+ -+2021-02-08 Luis Machado -+ -+ * gdb.base/gnu-ifunc.exp (build): Pass -Wl,z,lazy. -+ -+2021-02-08 Tom de Vries -+ -+ * gdb.dwarf2/enqueued-cu-base-addr.exp: Fix inter-CU reference. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.python/tui-window-disabled.c: New file. -+ * gdb.python/tui-window-disabled.exp: New file. -+ * gdb.python/tui-window-disabled.py: New file. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.python/tui-window.exp: Add new tests. -+ * gdb.python/tui-window.py (TestWindow) <__init__>: Store -+ TestWindow object into global the_window. -+ : New method. -+ (delete_window_title): New function. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.tui/winheight.exp: Add more tests. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.python/py-framefilter.exp: Update expected results. -+ * gdb.python/python.exp: Update expected results. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.tui/scroll.exp: Tighten expected results. Remove comment -+ about bug in GDB, update expected results, and add more tests. -+ -+2021-02-08 Andrew Burgess -+ -+ * gdb.tui/scroll.exp: New file. -+ * gdb.tui/tui-layout-asm-short-prog.exp: Update expected results. -+ * lib/tuiterm.exp (Term::_csi_M): Delete count lines, scroll -+ remaining lines up. -+ (Term::check_region_contents): New proc. -+ (Term::check_box_contents): Use check_region_contents. -+ -+2021-02-06 Tom de Vries -+ -+ PR testsuite/26922 -+ * gdb.tui/tui-layout-asm.exp: Ignore whitespace mismatches when -+ scrolling. -+ -+2021-02-05 Tom de Vries -+ -+ PR breakpoints/27313 -+ * gdb.base/catch-syscall.exp: Check that "catch syscall -1" is -+ rejected. -+ -+2021-02-05 Tom de Vries -+ -+ * gdb.dwarf2/main-subprogram.exp: Add KFAIL for PR symtab/24549. -+ * gdb.fortran/mixed-lang-stack.exp: Same. -+ -+2021-02-05 Tom de Vries -+ -+ PR exp/27265 -+ * gdb.base/complex-parts.exp: Add tests. -+ -+2021-02-05 Tom de Vries -+ -+ PR symtab/27307 -+ * gdb.dwarf2/clang-debug-names.exp: Check file command warnings. -+ -+2021-02-04 Shahab Vahedi -+ -+ * gdb.xml/tdesc-regs.exp: Use correct core-regs for ARC. -+ -+2021-02-03 Pedro Alves -+ -+ * gdb.threads/detach-step-over.c: New file. -+ * gdb.threads/detach-step-over.exp: New file. -+ -+2021-02-03 Pedro Alves -+ -+ * gdb.threads/attach-non-stop.c: New file. -+ * gdb.threads/attach-non-stop.exp: New file. -+ -+2021-02-02 Lancelot SIX -+ -+ * gdb.base/inferior-noarg.c: New test. -+ * gdb.base/inferior-noarg.exp: New test. -+ -+2021-02-02 Simon Marchi -+ -+ * gdb.base/scope.exp: Use proc_with_prefix. -+ -+2021-02-02 Simon Marchi -+ -+ * lib/dwarf.exp (rnglists): Add -no-offset-array option to -+ table proc. -+ * gdb.dwarf2/rnglists-sec-offset.exp: Add test for -+ .debug_rnglists table without offset array. -+ * gdb.dwarf2/loclists-sec-offset.exp: Add test for -+ .debug_loclists table without offset array. -+ -+2021-02-02 Simon Marchi -+ -+ * gdb.dwarf2/rnglists-sec-offset.exp: Add test for DW_AT_ranges -+ of DW_FORM_sec_offset form plus DW_AT_rnglists_base attribute. -+ * gdb.dwarf2/loclists-sec-offset.exp: Add test for -+ DW_AT_location of DW_FORM_sec_offset plus DW_AT_loclists_base -+ attribute -+ -+2021-02-02 Simon Marchi -+ -+ PR gdb/26813 -+ * lib/dwarf.exp (_handle_DW_FORM): Handle DW_FORM_loclistx. -+ (loclists): New proc. -+ * gdb.dwarf2/loclists-multiple-cus.c: New. -+ * gdb.dwarf2/loclists-multiple-cus.exp: New. -+ * gdb.dwarf2/loclists-sec-offset.c: New. -+ * gdb.dwarf2/loclists-sec-offset.exp: New. -+ -+2021-02-02 Simon Marchi -+ -+ * lib/dwarf.exp (_location): Add parameters. -+ (_handle_DW_FORM): Adjust. -+ -+2021-02-02 Simon Marchi -+ -+ PR gdb/26813 -+ * lib/dwarf.exp (_handle_DW_FORM): Handle DW_FORM_rnglistx. -+ (cu): Generate header for DWARF 5. -+ (rnglists): New proc. -+ * gdb.dwarf2/rnglists-multiple-cus.exp: New. -+ * gdb.dwarf2/rnglists-sec-offset.exp: New. -+ -+2021-02-02 Tom de Vries -+ -+ PR symtab/24620 -+ * gdb.dwarf2/fission-reread.exp: Add test-case. -+ -+2021-02-01 Tom de Vries -+ -+ * gdb.dwarf2/fission-base.S: Pass -DDWO=$dwo. -+ * gdb.dwarf2/fission-loclists-pie.S: Same. -+ * gdb.dwarf2/fission-loclists.S: Same. -+ * gdb.dwarf2/fission-multi-cu.S: Same. -+ * gdb.dwarf2/fission-reread.S: Same. -+ * gdb.dwarf2/fission-base.exp: Use DWO. -+ * gdb.dwarf2/fission-loclists-pie.exp: Same. -+ * gdb.dwarf2/fission-loclists.exp: Same. -+ * gdb.dwarf2/fission-multi-cu.exp: Same. -+ * gdb.dwarf2/fission-reread.exp: Same. -+ -+2021-01-29 Tom de Vries -+ -+ PR breakpoints/26063 -+ * gdb.dwarf2/dw2-step-out-of-function-no-stmt.c: New test. -+ * gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp: New file. -+ -+2021-01-29 Tom de Vries -+ -+ * gdb.opt/solib-intra-step.exp: Remove state tracking logic. -+ -+2021-01-28 Tom de Vries -+ -+ * gdb.arch/i386-gnu-cfi.exp: Capture the position of function gate -+ in the backtrace, and use that in the rest of the test instead of -+ hardcoded constant 3. Use "frame" instead of "up" for robustness. -+ -+2021-01-28 Tom de Vries -+ -+ * gdb.arch/i386-sse-stack-align.S: Rename g[0-4] to test_g[0-4]. -+ * gdb.arch/i386-sse-stack-align.c: Same. -+ * gdb.arch/i386-sse-stack-align.exp: Same. -+ -+2021-01-28 Andrew Burgess -+ -+ * lib/gdb.exp (default_gdb_init): Unset XDG_CONFIG_HOME. -+ -+2021-01-28 Tom de Vries -+ -+ * gdb.ada/out_of_line_in_inlined.exp: Use gdb_breakpoint. -+ -+2021-01-28 Tom de Vries -+ -+ * gdb.dwarf2/dw2-out-of-range-end-of-seq.exp: Add regexp to -+ "maint info line-table". Make PASS pattern more specific. Make -+ FAIL pattern work for -m32. -+ -+2021-01-27 Lancelot SIX -+ -+ PR gdb/27133 -+ * gdb.base/ui-redirect.exp: Add test case that ensures that -+ redirecting both logging and debug does not cause gdb to crash. -+ -+ -+2021-01-27 Matthew Malcomson -+ -+ * gdb.arch/insn-reloc.c: Add tests for BR and BLR. -+ -+2021-01-26 Tom de Vries -+ -+ * gdb.threads/killed-outside.exp: Allow regular output. -+ -+2021-01-26 Tom de Vries -+ -+ * gdb.opt/solib-intra-step.exp: Handle stepping into thunk. -+ -+2021-01-25 Tom de Vries -+ -+ * gdb.dwarf2/dw2-ranges-psym.exp (gdb_load_no_complaints): New proc. -+ * lib/gdb.exp: Use gdb_load_no_complaints. -+ -+2021-01-25 Tom Tromey -+ -+ * gdb.ada/fixed_points.exp: Add regression test. -+ * gdb.ada/fixed_points/fixed_points.adb (FP5_Var): New variable. -+ * gdb.ada/fixed_points/pck.adb (Delta5, FP5_Type): New. -+ -+2021-01-25 Tom Tromey -+ -+ * gdb.ada/local-enum.exp: Add enumerator resolution test. -+ -+2021-01-25 Tom Tromey -+ -+ * gdb.ada/local-enum.exp: New file. -+ * gdb.ada/local-enum/local.adb: New file. -+ -+2021-01-23 Tom Tromey -+ -+ * lib/gdb.exp (default_gdb_init): Set INPUTRC to a cached file. -+ -+2021-01-22 Bernd Edlinger -+ -+ * gdb.base/line65535.exp: Fix test expectation. -+ -+2021-01-22 Simon Marchi -+ -+ * lib/gdb.exp (gdb_test_multiple): Remove things related to test -+ suppression. -+ (default_gdb_exit): Likewise. -+ (default_gdb_spawn): Likewise. -+ (send_gdb): Likewise. -+ (gdb_expect): Likewise. -+ (gdb_expect_list): Likewise. -+ (default_gdb_init): Likewise. -+ (gdb_suppress_entire_file): Remove. -+ (gdb_suppress_tests): Remove. -+ (gdb_stop_suppressing_tests): Remove. -+ (gdb_clear_suppressed): Remove. -+ * lib/mi-support.exp (mi_uncatched_gdb_exit): Remove things -+ related to test suppression. -+ (default_mi_gdb_start): Likewise. -+ (mi_gdb_reinitialize_dir): Likewise. -+ (mi_gdb_test): Likewise. -+ (mi_run_cmd_full): Likewise. -+ (mi_runto_helper): Likewise. -+ (mi_execute_to): Likewise. -+ * lib/prompt.exp (default_prompt_gdb_start): Likewise. -+ * gdb.base/bitfields.exp: Likewise. -+ * gdb.base/bitfields2.exp: Likewise. -+ * gdb.base/break.exp: Likewise. -+ * gdb.base/call-sc.exp: Likewise. -+ * gdb.base/callfuncs.exp: Likewise. -+ * gdb.base/dfp-test.exp: Likewise. -+ * gdb.base/endian.exp: Likewise. -+ * gdb.base/exprs.exp: Likewise. -+ * gdb.base/funcargs.exp: Likewise. -+ * gdb.base/hbreak2.exp: Likewise. -+ * gdb.base/recurse.exp: Likewise. -+ * gdb.base/scope.exp: Likewise. -+ * gdb.base/sepdebug.exp: Likewise. -+ * gdb.base/structs.exp: Likewise. -+ * gdb.base/until.exp: Likewise. -+ * gdb.cp/misc.exp: Likewise. -+ -+2021-01-22 Andrew Burgess -+ -+ PR cli/25956 -+ * gdb.base/style.exp (run_style_tests): Add version string test. -+ (test_startup_version_string): Use version style name. -+ * lib/gdb-utils.exp (style): Handle version style name. -+ -+2021-01-22 Andrew Burgess -+ -+ * gdb.base/style.exp (limited_style): New proc. -+ (clean_restart_and_disable): New proc. -+ (run_style_tests): New proc. Most of the old tests from this file -+ are now in this proc. -+ (test_startup_version_string): New proc. Reamining test from the -+ old file is in this proc. -+ -+2021-01-22 Simon Marchi -+ -+ * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count): -+ Adjust to "set debug remote" changes. -+ -+2021-01-21 Luis Machado -+ -+ * lib/gdbserver-support.exp (gdb_target_cmd_ext): Handle a new error -+ message. -+ -+2021-01-21 Simon Marchi -+ -+ * lib/tuiterm.exp (_log, _log_cur): New, use throughout. -+ -+2021-01-21 Hannes Domani -+ -+ PR python/19151 -+ * gdb.python/py-breakpoint.exp: Add tests for hardware breakpoints. -+ -+2021-01-20 Simon Marchi -+ -+ * lib/tuiterm.exp: Rename _cur_x/_cur_y to _cur_col/_cur_row. -+ -+2021-01-20 Simon Marchi -+ -+ * lib/tuiterm.exp: Add links in comments. -+ -+2021-01-20 Tom de Vries -+ -+ * gdb.python/py-format-string.exp: Allow Deriv+$decimal as vtable -+ offset. -+ -+2021-01-20 Tom de Vries -+ -+ * lib/gdb.exp (skip_rust_tests): Skip if multilib_flags contains -m32. -+ -+2021-01-20 Sergio Durigan Junior -+ -+ * gdb.arch/amd64-stap-expressions.S: New file. -+ * gdb.arch/amd64-stap-expressions.exp: New file. -+ -+2021-01-19 Tom de Vries -+ -+ * gdb.base/step-over-syscall.exp: Detect and handle sysenter/int -+ sequence. -+ -+2021-01-19 Tom de Vries -+ -+ * gdb.arch/i386-mpx.c (main): Drop argc/argv parameter. -+ -+2021-01-18 Andrew Burgess -+ -+ * gdb.fortran/array-slices.exp (run_test): Avoid including -+ addresses in test names. -+ -+2021-01-15 Tom de Vries -+ -+ PR testsuite/26997 -+ * gdb.fortran/array-slices.exp (run_test): Avoid pointer arithmetic -+ when adding sizeof. -+ -+2021-01-14 Tom de Vries -+ -+ PR testsuite/24590 -+ * gdb.base/style.exp: Handle shorter argv in frame command output. -+ -+2021-01-13 Andrew Burgess -+ -+ PR gdb/26819 -+ * gdb.server/stop-reply-no-thread-multi.c: New file. -+ * gdb.server/stop-reply-no-thread-multi.exp: New file. -+ -+2021-01-12 Tom de Vries -+ -+ * gdb.arch/i386-mpx-call.c (have_mpx): Remove. -+ (main): Remove call to have_mpx. -+ * gdb.arch/i386-mpx-call.exp: Use have_mpx. -+ * gdb.arch/i386-mpx-map.c (have_mpx): Remove. -+ (main): Remote call to have_mpx. -+ * gdb.arch/i386-mpx-map.exp: Use have_mpx. -+ * gdb.arch/i386-mpx-sigsegv.c (have_mpx): Remove. -+ (main): Remove call to have_mpx. -+ * gdb.arch/i386-mpx-sigsegv.exp: Use have_mpx. -+ * gdb.arch/i386-mpx-simple_segv.c (have_mpx): Remove. -+ (main): Remove call to have_mpx. -+ * gdb.arch/i386-mpx-simple_segv.exp: Use have_mpx. -+ * gdb.arch/i386-mpx.c (have_mpx): Remove. -+ (main): Remote call to have_mpx. -+ * gdb.arch/i386-mpx.exp: Use have_mpx. -+ * lib/gdb.exp (have_mpx): New proc. -+ -+2021-01-12 Srinath Parvathaneni -+ -+ * gdb.arch/aarch64-fp.exp: Modify to test bfloat16 support. -+ -+2021-01-12 Tom de Vries -+ -+ * gdb.base/disasm-optim.exp: Require is_amd64_regs_target. -+ -+2021-01-12 Andrew Burgess -+ -+ * gdb.fortran/debug-expr.exp: Add new tests. -+ -+2021-01-12 Andrew Burgess -+ -+ * gdb.fortran/dot-ops.exp: Add new tests. -+ -+2021-01-11 Tom de Vries -+ -+ PR testsuite/26968 -+ * gdb.arch/amd64-stap-three-arg-disp.S: Remove insn modifying $ebx. -+ Move insn setting $eax to before probe point. -+ -+2021-01-09 Tom Tromey -+ -+ * gdb.trace/ax.exp: Do not require an "ext". -+ -+2021-01-08 Tom Tromey -+ -+ * gdb.ada/voidctx/pck.adb: New file. -+ * gdb.ada/voidctx/pck.ads: New file. -+ * gdb.ada/voidctx/voidctx.adb: New file. -+ * gdb.ada/voidctx.exp: New file. -+ -+2021-01-08 Simon Marchi -+ -+ PR gdb/27157 -+ * gdb.base/empty-host-env-vars.exp: New test. -+ -+2021-01-08 Andrew Burgess -+ -+ * gdb.base/completion.exp: Add a new test. -+ -+2021-01-08 Andrew Burgess -+ -+ * gdb.fortran/intvar-dynamic-types.exp: New file. -+ * gdb.fortran/intvar-dynamic-types.f90: New file. -+ -+2021-01-08 Andrew Burgess -+ -+ * gdb.fortran/intvar-array.exp: New file. -+ * gdb.fortran/intvar-array.f90: New file. -+ -+2021-01-07 Tom Tromey -+ -+ * gdb.ada/assign_arr.exp: Add 'others' test. -+ -+2021-01-06 Tom Tromey -+ -+ * gdb.ada/fixed_points/pck.ads (Delta4): New constant. -+ (FP4_Type): New type. -+ (FP4_Var): New variable. -+ * gdb.ada/fixed_points/fixed_points.adb: Update. -+ * gdb.ada/fixed_points.exp: Add tests for binary operators. -+ -+2021-01-06 Simon Marchi -+ -+ * lib/gdb.exp (gdb_test_sequence): Accept -prompt switch. -+ * gdb.threads/signal-while-stepping-over-bp-other-thread.exp: -+ Pass prompt containing debug print to gdb_test_sequence. -+ -+2021-01-04 Tom de Vries -+ -+ * gdb.dwarf2/dw2-out-of-range-end-of-seq.exp: New file. -+ -+2021-01-04 Simon Marchi -+ -+ -+ -+2021-01-04 Simon Marchi -+ -+ * gdb.server/abspath.exp: Append "set sysroot" to GDBFLAGS. -+ * gdb.server/connect-without-multi-process.exp: Likewise. -+ * gdb.server/exit-multiple-threads.exp: Likewise. -+ * gdb.server/ext-attach.exp: Likewise. -+ * gdb.server/ext-restart.exp: Likewise. -+ * gdb.server/ext-run.exp: Likewise. -+ * gdb.server/ext-wrapper.exp: Likewise. -+ * gdb.server/multi-ui-errors.exp: Likewise. -+ * gdb.server/no-thread-db.exp: Likewise. -+ * gdb.server/reconnect-ctrl-c.exp: Likewise. -+ * gdb.server/run-without-local-binary.exp: Likewise. -+ * gdb.server/server-kill.exp: Likewise. -+ * gdb.server/server-run.exp: Likewise. -+ * gdb.server/solib-list.exp: Likewise. -+ * gdb.server/stop-reply-no-thread.exp: Likewise. -+ * gdb.server/wrapper.exp: Likewise. -+ * gdb.server/sysroot.exp: Increase timeout when testing the -+ target: sysroot. -+ -+2021-01-04 Simon Marchi -+ -+ * gdb.server/server-run.exp: Use clean_restart. -+ -+2021-01-04 Simon Marchi -+ -+ * gdb.server/ext-run.exp: Use clean_restart. -+ -+2021-01-04 Simon Marchi -+ -+ * gdb.server/stop-reply-no-thread.exp: Use build_executable -+ instead of prepare_for_testing. -+ -+2021-01-04 Simon Marchi -+ -+ * gdb.server/solib-list.exp: Use clean_restart. -+ -+2021-01-04 Tom de Vries -+ -+ * gdb.base/morestack.c: Remove printf. -+ * gdb.base/morestack.exp: Don't use -fuse-ld=gold. -+ -+2020-12-31 Tom Tromey -+ -+ * gdb.rust/simple.exp: Update output for Rust 1.49. -+ -+2020-12-31 Bernd Edlinger -+ -+ * gdb.cp/step-and-next-inline.exp: Fix test case. -+ -+2020-12-30 Simon Marchi -+ -+ * gdb.python/py-frame-args.exp: De-duplicate test names. -+ -+2020-12-24 Andrew Burgess -+ -+ PR gdb/27059 -+ * gdb.dwarf2/dyn-type-unallocated.c: New file. -+ * gdb.dwarf2/dyn-type-unallocated.exp: New file. -+ -+2020-12-21 Peter Waller -+ -+ * gdb.base/style-interp-exec-mi.exp: New. -+ * gdb.base/style-interp-exec-mi.c: New. -+ -+2020-12-21 Simon Marchi -+ -+ * gdb.base/list.exp: Replace send_gdb + gdb_expect with -+ gdb_test. Use proc_with_prefix. -+ -+2020-12-21 Markus Metzger -+ -+ * gdb.btrace/exception.exp: Build with nopie. -+ * gdb.btrace/function_call_history.exp: Likewise. -+ * gdb.btrace/unknown_functions.exp: Likewise. -+ -+2020-12-21 Markus Metzger -+ -+ * gdb.btrace/multi-inferior.exp: Skip if use_gdb_stub. -+ -+2020-12-21 Markus Metzger -+ -+ * gdb.python/py-record-btrace.exp: Make test names unique. -+ * gdb.python/py-record-full.exp: Likewise. -+ -+2020-12-21 Markus Metzger -+ -+ * gdb.btrace/data.exp: Make test names unique. -+ * gdb.btrace/delta.exp: Likewise. -+ * gdb.btrace/enable.exp: Likewise. -+ * gdb.btrace/function_call_history.exp: Likewise. -+ * gdb.btrace/nohist.exp: Likewise. -+ * gdb.btrace/non-stop.exp: Likewise. -+ * gdb.btrace/rn-dl-bind.exp: Likewise. -+ * gdb.btrace/step.exp: Likewise. -+ * gdb.btrace/stepi.exp: Likewise. -+ * gdb.btrace/tailcall.exp: Likewise. -+ -+2020-12-21 Markus Metzger -+ -+ * gdb.btrace/enable.exp: Update error message. -+ * gdb.btrace/multi-inferior.exp: Likewise. -+ * gdb.btrace/reconnect.exp: Likewise. -+ * gdb.python/py-record-btrace.exp: Likewise. -+ * gdb.python/py-record-full.exp: Likewise. -+ -+2020-12-20 Tom de Vries -+ -+ * lib/gdb.exp (save_target_board_info): New proc. -+ (gdb_compile_shlib): Use save_target_board_info. -+ -+2020-12-19 Tom de Vries -+ -+ * lib/gdb.exp (supports_scalar_storage_order_attribute) -+ (supports_gnuc): New proc. -+ * gdb.base/endianity.exp: Define TEST_SSO. Eliminate -+ test_compiler_info calls. Add unsupported message. -+ * gdb.base/endianity.c: Use TEST_SSO. -+ -+2020-12-19 Hannes Domani -+ -+ PR exp/27070 -+ * gdb.python/compare-enum-type-a.c: New test. -+ * gdb.python/compare-enum-type-b.c: New test. -+ * gdb.python/compare-enum-type.exp: New file. -+ * gdb.python/compare-enum-type.h: New test. -+ -+2020-12-18 Hannes Domani -+ -+ * gdb.python/py-format-string.exp: Add tests for address keyword. -+ -+2020-12-18 Hannes Domani -+ -+ * gdb.python/py-type.exp: Add tests for TYPE_CODE_METHOD. -+ -+2020-12-18 Tom Tromey -+ -+ * gdb.ada/fixed_points.exp: Also run with -+ -fgnat-encodings=minimal. Update expected output. -+ -+2020-12-16 Simon Marchi -+ -+ * gdb.base/async-shell.exp: Enable non-stop through GDBFLAGS. -+ * gdb.base/continue-all-already-running.exp: Likewise. -+ * gdb.base/moribund-step.exp: Likewise. -+ * gdb.base/step-sw-breakpoint-adjust-pc.exp: Likewise. -+ -+2020-12-16 Tom de Vries -+ -+ * gdb.base/batch-preserve-term-settings.exp: -+ -+2020-12-16 Tom de Vries -+ -+ * lib/gdb.exp (gdb_compile_shlib_1): Factor out of ... -+ (gdb_compile_shlib): ... here. Filter out PIE-related flags. -+ -+2020-12-16 Luis Machado -+ -+ * gdb.arch/aarch64-tagged-pointer.c (main): Add a few more -+ pointer-based memory accesses. -+ * gdb.arch/aarch64-tagged-pointer.exp: Exercise additional -+ hw watchpoint cases. -+ -+2020-12-15 Rae Kim -+ -+ * gdb.base/document.exp: New test. -+ -+2020-12-15 Tom Tromey -+ -+ * gdb.base/style.exp: Add deprecation tests. -+ -+2020-12-14 Simon Marchi -+ -+ * lib/gdb.exp (gdb_test_multiple): Fix typo in doc. -+ -+2020-12-14 Mark Wielaard -+ -+ * lib/dwarf.exp (Dwarf::_handle_attribute): Handle SPECIAL_expr -+ specially, set attr_form_comment to the actual FORM string used. -+ -+2020-12-14 Mark Wielaard -+ -+ * lib/dwarf.exp (Dwarf::_read_constants): Don't set -+ _constants(SPECIAL_expr) here, but set it... -+ (Dwarf::cu): ...here based on _cu_version. -+ -+2020-12-14 Tom de Vries -+ -+ * lib/gdb.exp (gdb_compile_shlib): Make sure it's not necessary to -+ pass -fPIC. -+ * gdb.ada/catch_ex_std.exp: Don't pass -fPIC to gdb_compile_shlib. -+ * gdb.base/break-probes.exp: Same. -+ * gdb.base/ctxobj.exp: Same. -+ * gdb.base/dso2dso.exp: Same. -+ * gdb.base/global-var-nested-by-dso.exp: Same. -+ * gdb.base/info-shared.exp: Same. -+ * gdb.base/jit-reader-simple.exp: Same. -+ * gdb.base/print-file-var.exp: Same. -+ * gdb.base/skip-solib.exp: Same. -+ * gdb.btrace/dlopen.exp: Same. -+ -+2020-12-14 Tom de Vries -+ -+ PR testsuite/26963 -+ * lib/gdb.exp (run_on_host): Declare test unsupported if spawn fails. -+ -+2020-12-14 Tom de Vries -+ -+ PR testsuite/26962 -+ * gdb.base/solib-corrupted.exp: Handle "'_r_debug' has unknown type; -+ cast it to its declared type". -+ -+2020-12-14 Tom de Vries -+ -+ PR testsuite/26951 -+ * gdb.base/batch-preserve-term-settings.exp: Use "gdb-subshell$ " as -+ shell prompt. -+ -+2020-12-14 Tom Tromey -+ -+ * gdb.ada/nested.exp: Add new tests. -+ * gdb.ada/nested/hello.adb (Fourth, Fifth): New procedures. -+ -+2020-12-14 Tom Tromey -+ -+ * gdb.dwarf2/ada-thick-pointer.exp: New file. -+ -+2020-12-14 Tom Tromey -+ -+ * gdb.dwarf2/dw2-fixed-point.exp: Add test for division by zero. -+ -+2020-12-13 Tom de Vries -+ -+ PR testsuite/26953 -+ * gdb.base/endianity.exp: Skip tests requiring scalar_storage_order -+ attribute support if compiler doesn't support it. -+ -+2020-12-13 Tom de Vries -+ -+ * lib/gdb.exp (gdb_compile_shlib): Handle ada. -+ * gdb.ada/catch_ex_std.exp: Use gdb_compile_shlib to compile from -+ source to shared lib. Add ada to options. -+ -+2020-12-13 Tom de Vries -+ -+ * gdb.ada/catch_ex_std.exp: Use gnatmake -bargs and -largs instead of -+ calling gnatbind and gnatlink. -+ -+2020-12-13 Andrew Burgess -+ -+ * gdb.base/dcache-flush.c: New file. -+ * gdb.base/dcache-flush.exp: New file. -+ -+2020-12-13 Andrew Burgess -+ -+ * gdb.base/c-linkage-name.exp: Update to use new 'maint flush ...' -+ commands. -+ * gdb.base/killed-outside.exp: Likewise. -+ * gdb.opt/inline-bt.exp: Likewise. -+ * gdb.perf/gmonster-null-lookup.py: Likewise. -+ * gdb.perf/gmonster-print-cerr.py: Likewise. -+ * gdb.perf/gmonster-ptype-string.py: Likewise. -+ * gdb.python/py-unwind.exp: Likewise. -+ -+2020-12-11 Andrew Burgess -+ -+ * gdb.base/commands.exp: Update expected results. -+ -+2020-12-11 Andrew Burgess -+ -+ PR cli/15104 -+ * gdb.base/commands.exp: Add additional tests. -+ * gdb.base/completion.exp: Add additional tests. -+ -+2020-12-11 Andrew Burgess -+ -+ * gdb.base/completion.exp: Add additional tests. -+ -+2020-12-11 Tom de Vries -+ -+ PR testsuite/26991 -+ * gdb.arch/i386-mpx-call.exp: Don't expect to trigger bounds -+ violations by setting bounds registers if the bounds are passed in the -+ Bounds Table. -+ -+2020-12-11 Tom de Vries -+ -+ PR testsuite/26954 -+ * gdb.base/float128.exp: Detect and handle no mpfr support. -+ -+2020-12-10 Simon Marchi -+ -+ PR gdb/24694 -+ * gdb.multi/multi-arch-exec.c (thread_start, main): Add barrier -+ calls. -+ -+2020-12-10 Tom de Vries -+ -+ PR testsuite/26947 -+ * gdb.tui/new-layout.exp: Don't execute tests with unbalanced curly -+ braces for tcl 8.5 and earlier. -+ -+2020-12-09 Simon Marchi -+ -+ PR 26875, PR 26901 -+ * gdb.base/flexible-array-member.c: New test. -+ * gdb.base/flexible-array-member.exp: New test. -+ -+2020-12-08 Tom de Vries -+ -+ * gdb.arch/amd64-gs_base.exp: Undo commit 67748e0f66, reimplement -+ using is_amd64_regs_target. -+ -+2020-12-08 Tom de Vries -+ -+ * gdb.ada/mi_task_arg.exp: Accept as valid value of -+ self_id. -+ -+2020-12-07 Pedro Alves -+ -+ * gdb.base/break-on-linker-gcd-function.exp: Remove unused -+ 'additional_flags' variable. -+ -+2020-12-07 Tankut Baris Aktemur -+ -+ * gdb.linespec/explicit.exp: Extend with a test to check completing -+ '-' after seemingly complete options. -+ -+2020-12-07 Tankut Baris Aktemur -+ -+ * gdb.linespec/keywords.exp: Add tests to check positional -+ flexibility of "-force-condition". -+ -+2020-12-07 Tankut Baris Aktemur -+ -+ * gdb.base/bp-cmds-run-with-ex.c: New file. -+ * gdb.base/bp-cmds-run-with-ex.exp: New file. -+ * gdb.base/bp-cmds-run-with-ex.gdb: New file. -+ * gdb.gdb/python-interrupts.exp: Update the call to -+ 'catch_command_errors' with the new argument. -+ * gdb.gdb/python-selftest.exp: Ditto. -+ -+2020-12-04 Simon Marchi -+ -+ * gdb.arch/amd64-disp-step-avx.exp: Adjust pattern. -+ * gdb.threads/forking-threads-plus-breakpoint.exp: Likewise. -+ * gdb.threads/non-stop-fair-events.exp: Likewise. -+ -+2020-12-04 Simon Marchi -+ -+ * gdb.threads/step-over-exec.exp: New. -+ * gdb.threads/step-over-exec.c: New. -+ * gdb.threads/step-over-exec-execd.c: New. -+ * lib/my-syscalls.S: New. -+ * lib/my-syscalls.h: New. -+ -+2020-12-04 Simon Marchi -+ -+ * lib/dwarf.exp (declare_labels): Use name as text if text is -+ not provided. -+ -+2020-12-04 Tom de Vries -+ -+ PR testsuite/26990 -+ * gdb.arch/amd64-gs_base.exp: Handle -m32 where fs_base and gs_base -+ are unsupported. -+ -+2020-12-04 Tom de Vries -+ -+ * gdb.reverse/insn-reverse.exp: Don't break inside gdb_test_multiple -+ clause. -+ -+2020-12-04 Tom de Vries -+ -+ * gdb.reverse/insn-reverse.exp: Fix count handling. -+ -+2020-12-04 Tom de Vries -+ -+ * gdb.reverse/insn-reverse-x86.c: Guard x86_64 assembly with #ifdef -+ __x86_64__. -+ -+2020-12-04 Tom de Vries -+ -+ * gdb.reverse/insn-reverse.c (test_nr): New var. -+ (usage, parse_args): New function. -+ (main): Call parse_args. Only run test for test_nr. -+ * gdb.reverse/insn-reverse.exp: Detect lack of progress in stepi loop -+ and bail out. Run subtests individually, using an inferior arg -+ specifying the subtest. -+ -+2020-12-02 Andrew Burgess -+ -+ * gdb.arch/riscv-tdesc-regs.exp: Remove unwanted test. -+ -+2020-12-02 Andrew Burgess -+ -+ * gdb.arch/riscv-tdesc-regs.exp (get_expected_result): New proc, -+ update test to use this. -+ -+2020-12-01 Simon Marchi -+ -+ * gdb.threads/non-ldr-exc-1.exp: Fix indentation. -+ -+2020-12-01 Simon Marchi -+ -+ * gdb.threads/non-ldr-exc-1.exp: Use foreach_with_prefix. -+ (do_test): Don't use with_test_prefix. -+ * gdb.threads/non-ldr-exc-2.exp: Use foreach_with_prefix. -+ (do_test): Don't use with_test_prefix. -+ * gdb.threads/non-ldr-exc-3.exp: Use foreach_with_prefix. -+ (do_test): Don't use with_test_prefix. -+ * gdb.threads/non-ldr-exc-4.exp: Use foreach_with_prefix. -+ (do_test): Don't use with_test_prefix. -+ -+2020-12-01 Simon Marchi -+ -+ * gdb.threads/non-ldr-exit.exp: Fix comment. -+ -+2020-12-01 Andrew Burgess -+ -+ * gdb.xml/maint-xml-dump-03.xml: New file. -+ -+2020-11-30 Tom de Vries -+ -+ PR symtab/26905 -+ * gdb.dwarf2/count.exp: Remove kfails. -+ -+2020-11-24 Tankut Baris Aktemur -+ -+ * gdb.base/condbreak-multi-context.exp: Do not hard-code location -+ indices. -+ -+2020-11-24 Joel Brobecker -+ -+ * gdb.dwarf2/dw2-fixed-point.exp: Fix the expected output of -+ the "ptype pck__fp1_range_var" test for the module-2 and pascal -+ languages. Remove the associated setup_xfail. -+ -+2020-11-23 Simon Marchi -+ -+ * lib/gdb.exp (gdb_assert): Show error message on error. -+ -+2020-11-23 Tom de Vries -+ -+ * gdb.ada/enum_idx_packed.exp: Limit setup_kfail to gnat 9 and 10. -+ * gdb.ada/mod_from_name.exp: Same. -+ * gdb.ada/pckd_arr_ren.exp: Same. -+ -+2020-11-22 Simon Marchi -+ -+ * gdb.base/template.exp: New. -+ * gdb.base/template.c: New. -+ -+2020-11-22 Gary Benson -+ -+ PR gdb/26905 -+ * gdb.dwarf2/count.exp: Add test for an array whose upper bound -+ is defined using a DW_AT_count which references another DIE. -+ -+2020-11-21 Tom de Vries -+ -+ * gdb.base/vla-ptr.exp: Add XFAIL. -+ -+2020-11-19 Andrew Burgess -+ -+ * gdb.fortran/array-slices-bad.exp: New file. -+ * gdb.fortran/array-slices-bad.f90: New file. -+ * gdb.fortran/array-slices-sub-slices.exp: New file. -+ * gdb.fortran/array-slices-sub-slices.f90: New file. -+ * gdb.fortran/array-slices.exp: Rewrite tests. -+ * gdb.fortran/array-slices.f90: Rewrite tests. -+ * gdb.fortran/vla-sizeof.exp: Correct expected results. -+ -+2020-11-19 Andrew Burgess -+ -+ * gdb.base/completion.exp: Add new completion tests. -+ -+2020-11-18 Simon Marchi -+ -+ * gdb.mi/mi-nonstop-exit.exp: Enable non-stop through GDBFLAGS. -+ * gdb.mi/mi-ns-stale-regcache.exp: Likewise. -+ * gdb.mi/mi-nsintrall.exp: Likewise. -+ * gdb.mi/mi-nsmoribund.exp: Likewise. -+ * gdb.mi/mi-nsthrexec.exp: Likewise. -+ * gdb.mi/mi-watch-nonstop.exp: Likewise. -+ -+2020-11-18 Simon Marchi -+ -+ * lib/mi-support.exp (mi_run_cmd_full): Use unresovled instead -+ of perror. -+ -+2020-11-18 Joseph Myers -+ -+ * lib/mi-support.exp (mi_gdb_file_cmd): Check for case where -+ $arg.exe exists but $arg does not. -+ -+2020-11-17 Gary Benson -+ -+ * gdb.trace/trace-common.h (x86_trace_dummy): Add -+ __attribute__ ((used)). -+ -+2020-11-17 Andrew Burgess -+ -+ * gdb.gdb/unittest.exp: Spot 'Running...' lines. -+ -+2020-11-17 Andrew Burgess -+ -+ * gdb.base/completion.exp: Add new tests. -+ -+2020-11-16 Tom Tromey -+ -+ * gdb.dwarf2/data-loc.exp: Update expected output. Remove C -+ tests. -+ -+2020-11-15 Joel Brobecker -+ -+ * gdb.ada/fixed_cmp.exp: Add -fgnat-encodings=minimal testing. -+ * gdb.dwarf2/dw2-fixed-point.c (pck__fp1_var2): New global. -+ (main): Add reference to pck__fp1_var2. -+ * gdb.dwarf2/dw2-fixed-point.exp: Add comparison operator testing. -+ -+2020-11-15 Joel Brobecker -+ -+ * gdb.dwarf2/dw2-fixed-point.exp: Add arithmetic tests. -+ -+2020-11-15 Joel Brobecker -+ -+ * gdb.ada/fixed_points.exp: Add ptype tests. -+ * gdb.dwarf2/dw2-fixed-point.exp: Likewise. -+ -+2020-11-15 Joel Brobecker -+ -+ * gdb.dwarf2/dw2-fixed-point.exp: Add "print /x" tests. -+ -+2020-11-15 Joel Brobecker -+ -+ * gdb.ada/fixed_cmp.exp: Force compilation to use -fgnat-encodings=all. -+ * gdb.ada/fixed_points.exp: Add fixed-point variables printing tests. -+ * gdb.ada/fixed_points/pck.ads, gdb.ada/fixed_points/pck.adb: -+ New files. -+ * gdb.ada/fixed_points/fixed_points.adb: Add use of package Pck. -+ -+ * gdb.dwarf2/dw2-fixed-point.c, gdb.dwarf2/dw2-fixed-point.exp: -+ New files. -+ -+2020-11-14 Andrew Burgess -+ -+ PR cli/26879 -+ * gdb.fortran/completion.exp: New file. -+ * gdb.fortran/completion.f90: New file. -+ -+2020-11-12 Joseph Myers -+ -+ * lib/gdb.exp (gdb_file_cmd): Check for case where $arg.exe exists -+ but $arg does not. -+ -+2020-11-12 Andrew Burgess -+ -+ * gdb.fortran/types.exp: Add more tests. -+ -+2020-11-12 Tom Tromey -+ -+ PR rust/26799: -+ * gdb.rust/traits.exp: Remove kfails. -+ -+2020-11-12 Gary Benson -+ -+ * gdb.threads/tls-so_extern_main.c (tls_ptr): Add missing return -+ statement. -+ -+2020-11-11 Simon Marchi -+ -+ * gdb.base/continue-after-aborted-step-over.exp: Add "breakpoint -+ always-inserted" axis. -+ (do_test): Add breakpoint_always_inserted parameter. -+ -+2020-11-10 Tom Tromey -+ -+ * gdb.ada/bias.exp: Update. -+ * gdb.ada/bias/bias.adb (X): Change value. -+ -+2020-11-10 Gary Benson -+ -+ * gdb.base/vla-optimized-out.exp (p sizeof (a)): Wrap supplied -+ regexp fragment in parentheses to prevent false matching. -+ -+2020-11-10 Gary Benson -+ -+ * gdb.base/vla-optimized-out.c (f1): Add __attribute__ ((weak)). -+ -+2020-11-10 Gary Benson -+ -+ * gdb.cp/step-and-next-inline.exp: Only require -+ -gstatement-frontiers when building with GCC. -+ Only setup KFAIL's for GCC issues when using -+ a GCC-built executable. -+ -+2020-11-06 Andrew Burgess -+ -+ * gdb.base/debug-expr.c: Add extra function to allow for an -+ additional test. -+ * gdb.base/debug-expr.exp (test_debug_expr): Delete, replace calls -+ to this proc with gdb_test_debug_expr. Add an extra test. -+ * gdb.cp/debug-expr.exp (test_debug_expr): Delete, replace calls -+ to this proc with gdb_test_debug_expr, give the tests names -+ * gdb.dlang/debug-expr.exp (test_debug_expr): Delete, replace -+ calls to this proc with gdb_test_debug_expr, give the tests names -+ * gdb.fortran/debug-expr.exp: New file. -+ * gdb.fortran/debug-expr.f90: New file. -+ * lib/gdb.exp (gdb_test_debug_expr): New proc. -+ -+2020-11-06 Simon Marchi -+ -+ * lib/dwarf.exp (ranges): Handle "base" and "range" as -+ proceduresu. -+ * gdb.dwarf/dw2-bad-elf.exp: Adjust. -+ * gdb.dwarf2/dw2-inline-many-frames.exp: Adjust. -+ * gdb.dwarf2/dw2-inline-stepping.exp: Adjust. -+ * gdb.dwarf2/dw2-ranges-base.exp: Adjust. -+ * gdb.dwarf2/dw2-ranges-func.exp: Adjust. -+ * gdb.dwarf2/dw2-ranges-overlap.exp: Adjust. -+ * gdb.dwarf2/dw2-ranges-psym.exp: Adjust. -+ * gdb.dwarf2/enqueued-cu-base-addr.exp: Adjust. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/funcall_ref.exp: Update. -+ * gdb.ada/var_rec_arr.exp: Update. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/rec_ptype.exp: New file. -+ * gdb.ada/rec_ptype/main.adb: New file. -+ * gdb.ada/rec_ptype/p.ads: New file. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/tick_length_array_enum_idx.exp: Add ptype test. -+ * gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb -+ (PT_Full): New variable. -+ * gdb.ada/tick_length_array_enum_idx/pck.adb -+ (Full_PT): New type. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/array_of_variant.exp: New file. -+ * gdb.ada/array_of_variant/p.adb: New file. -+ * gdb.ada/array_of_variant/pck.ads: New file. -+ * gdb.ada/array_of_variant/pck.adb: New file. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/enum_idx_packed.exp: Add test. -+ * gdb.ada/enum_idx_packed/foo.adb (Multi_Access): -+ New variable. -+ * gdb.ada/enum_idx_packed/pck.ads (Short) -+ (Multi_Dimension, Multi_Dimension_Access): New types. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/enum_idx_packed.exp: Test two forms of -fgnat-encodings. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/set_pckd_arr_elt.exp: Also test -+ -fgnat-encodings=minimal. Add tests. -+ * gdb.ada/set_pckd_arr_elt/foo.adb (Foo): Add VA variable. -+ Call Update_Small a second time. -+ * gdb.ada/set_pckd_arr_elt/pck.adb (New_Variant): New function. -+ * gdb.ada/set_pckd_arr_elt/pck.ads (Buffer, Variant) -+ (Variant_Access): New types. -+ (New_Variant): Declare. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/mod_from_name.exp: Test printing slice. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/O2_float_param.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/access_to_unbounded_array.exp: Test different -+ -fgnat-encodings values. -+ * gdb.ada/big_packed_array.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/arr_enum_idx_w_gap.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/array_ptr_renaming.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/array_of_variable_length.exp: Test different -+ -fgnat-encodings values. -+ * gdb.ada/arrayparam.exp: Test different -fgnat-encodings values. -+ * gdb.ada/arrayptr.exp: Test different -fgnat-encodings values. -+ * gdb.ada/frame_arg_lang.exp: Revert -fgnat-encodings=minimal -+ change. -+ * gdb.ada/mi_string_access.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/mod_from_name.exp: Test different -fgnat-encodings values. -+ * gdb.ada/out_of_line_in_inlined.exp: Test different -+ -fgnat-encodings values. -+ * gdb.ada/packed_array.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/pckd_arr_ren.exp: Test different -fgnat-encodings -+ values. -+ * gdb.ada/unc_arr_ptr_in_var_rec.exp: Test different -+ -fgnat-encodings values. -+ * gdb.ada/variant_record_packed_array.exp: Test different -+ -fgnat-encodings values. -+ -+2020-11-04 Tom Tromey -+ -+ * gdb.ada/enum_idx_packed.exp: Add tests. -+ * gdb.ada/enum_idx_packed/foo.adb: Add variables. -+ * gdb.ada/enum_idx_packed/pck.adb: Add functions. -+ * gdb.ada/enum_idx_packed/pck.ads: Add types, function -+ declarations. -+ -+2020-11-03 Tom de Vries -+ -+ * lib/dwarf.exp (Dwarf::_handle_DW_TAG): Improve attribute list -+ terminator comments. -+ (Dwarf::cu, Dwarf::tu): Remove superfluous abbreviation table -+ terminator. -+ -+2020-11-02 Simon Marchi -+ -+ * gdb.base/step-over-no-symbols.exp (test_step_over): Replace -+ integer format test with regexp. -+ -+2020-11-02 Gary Benson -+ -+ * gdb.base/print-file-var.exp (test): Separate compiler and -+ linker options, and build using build_executable_from_specs -+ to accommodate this. -+ -+2020-11-02 Gary Benson -+ -+ * lib/gdb.exp (gdb_compile): Inhibit passing "-x c++" -+ for .c files compiled as C++ with Clang if any shared -+ libraries are specified. -+ -+2020-11-02 Gary Benson -+ -+ * lib/attributes.h: New header. -+ * gdb.base/backtrace.c: Include the above. Replace -+ __attribute__(noclone)) with ATTRIBUTE_NOCLONE. -+ * gdb.base/infcall-nested-structs.c: Likewise. -+ * gdb.base/vla-optimized-out.c: Likewise. -+ -+2020-11-02 Tom de Vries -+ -+ * gdb.dwarf2/fission-multi-cu.S: Remove .debug_line.dwo section. -+ -+2020-11-01 Joel Brobecker -+ -+ * gdb.ada/fixed_points/fixed_points.adb: Replace use of -+ System.Min_Int and System.Max_Int with smaller hardcoded -+ constants. -+ -+2020-10-31 Simon Marchi -+ -+ * configure.ac: Split AC_INIT into AC_INIT and AC_CONFIG_SRCDIR. -+ * configure: Re-generate. -+ -+2020-10-30 Simon Marchi -+ -+ * gdb.arch/amd64-disp-step-avx.exp: Update displaced step debug -+ expected output. -+ -+2020-10-30 Tankut Baris Aktemur -+ -+ * gdb.base/paginate-after-ctrl-c-running.exp: Update with no pagination -+ behavior. -+ * gdb.base/paginate-bg-execution.exp: Ditto. -+ * gdb.base/paginate-inferior-exit.exp: Ditto. -+ * gdb.base/double-prompt-target-event-error.c: Remove. -+ * gdb.base/double-prompt-target-event-error.exp: Remove. -+ -+2020-10-29 Tankut Baris Aktemur -+ -+ * gdb.base/kill-detach-inferiors-cmd.exp: Check that 'kill -+ inferiors' and 'detach inferiors' do not change the current -+ inferior. -+ -+2020-10-29 Tom de Vries -+ -+ * gdb.threads/tls.exp: Fix DUPLICATEs. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.python/py-symbol.exp: Add KFAILs for -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.ada/exec_changed.exp: Add KFAILs for -readnow. -+ * gdb.base/reread.exp: Same. -+ -+2020-10-28 Tom de Vries -+ -+ * lib/gdb.exp (readnow): Handle arg. -+ * gdb.rust/traits.exp: Add KFAILs for -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.base/relocate.exp: Update regexp for -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.dwarf2/dw2-error.exp: Mark failure break in main as known with -+ -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ PR symtab/26772 -+ * gdb.dwarf2/dw2-ranges-overlap.c: New test. -+ * gdb.dwarf2/dw2-ranges-overlap.exp: New file. -+ -+2020-10-28 Tom de Vries -+ -+ * lib/gdb.exp (gdb_file_cmd): Set gdb_file_cmd_msg. -+ * gdb.cp/nsalias.exp: Set complaints limit before file cmd. Expect -+ complaint during file command for -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.cp/nsalias.exp: Fix typo in test name. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.dwarf2/dw2-filename.exp: Update regexp for -readnow. -+ -+2020-10-28 Tom de Vries -+ -+ * gdb.dwarf2/dw2-stack-boundary.exp: KFAILing the complaints for -+ -readnow. -+ -+2020-10-27 Tom de Vries -+ -+ * gdb.base/multi-forks.exp: Use exp_continue to fix timeout. -+ -+2020-10-27 Tom de Vries -+ -+ * gdb.base/maint.exp: Update for -readnow. -+ -+2020-10-27 Tom de Vries -+ -+ * gdb.cp/psymtab-parameter.exp: Don't expect unexpanded CU for -+ -readnow. -+ -+2020-10-14 Gary Benson -+ -+ * gdb.python/py-format-string.exp (test_deref_refs): Treat -+ "_vptr$Base" as correct, in addition to "_vptr.Base". -+ (test_mixed): Likewise. -+ -+2020-10-27 Gary Benson -+ -+ * gdb.mi/mi-fortran-modules.exp: Check skip_fortran_tests. -+ * gdb.mi/mi-vla-fortran.exp: Likewise. Also fix a comment. -+ -+2020-10-27 Tankut Baris Aktemur -+ -+ * gdb.base/condbreak.exp: Update the completion tests to -+ consider the '-force' flag. -+ -+2020-10-27 Tom de Vries -+ -+ * gdb.base/list-ambiguous-readnow.exp: New file. -+ -+2020-10-27 Tankut Baris Aktemur -+ -+ * gdb.base/condbreak-multi-context.exp: Expand to test forcing -+ the condition. -+ * gdb.linespec/cpcompletion.exp: Update to consider the -+ '-force-condition' keyword. -+ * gdb.linespec/explicit.exp: Ditto. -+ * lib/completion-support.exp: Ditto. -+ -+2020-10-27 Tankut Baris Aktemur -+ -+ * gdb.base/condbreak-multi-context.cc: New file. -+ * gdb.base/condbreak-multi-context.exp: New file. -+ -+2020-10-26 Tom Tromey -+ -+ * lib/mi-support.exp (default_mi_gdb_start): Call -+ gdb_stdin_log_init. -+ * lib/gdb.exp (standard_output_file_with_gdb_instance): Don't -+ subtract one from gdb_instances. -+ (gdb_stdin_log_write): Flush in_file. -+ -+2020-10-26 Tom de Vries -+ -+ * gdb.dwarf2/enqueued-cu-base-addr.exp: New file. -+ -+2020-10-26 Tom Tromey -+ -+ * gdb.ada/unsigned_range/foo.adb: New file. -+ * gdb.ada/unsigned_range/pack.adb: New file. -+ * gdb.ada/unsigned_range/pack.ads: New file. -+ * gdb.ada/unsigned_range.exp: New file. -+ -+2020-10-26 Tom de Vries -+ -+ * lib/gdb.exp (INTERNAL_GDBFLAGS): Set heigth and width. -+ -+2020-10-26 Tom de Vries -+ -+ * gdb.dwarf2/dw2-objfile-overlap-inner.S: Specify default base address -+ for CU. -+ * gdb.dwarf2/dw2-objfile-overlap-outer.S: Same. -+ -+2020-10-23 Tom de Vries -+ -+ * lib/dwarf.exp (Dwarf::_guess_form): Return "" by default instead of -+ DW_FORM_string. -+ (Dwarf::_default_form): New proc. -+ (Dwarf::_handle_DW_TAG): Use _default_form. Error out if no form was -+ guessed. -+ -+2020-10-23 Tom de Vries -+ -+ * gdb.dwarf2/ada-linkage-name.exp: Use $srcfile for DW_AT_name of CU. -+ * gdb.dwarf2/atomic-type.exp: Same. -+ * gdb.dwarf2/bad-regnum.exp: Same. -+ * gdb.dwarf2/cpp-linkage-name.exp: Same. -+ * gdb.dwarf2/dw2-align.exp: Same. -+ * gdb.dwarf2/dw2-bad-elf.exp: Same. -+ * gdb.dwarf2/dw2-bad-mips-linkage-name.exp: Same. -+ * gdb.dwarf2/dw2-bad-unresolved.exp: Same. -+ * gdb.dwarf2/dw2-namespaceless-anonymous.exp: Same. -+ * gdb.dwarf2/dw2-opt-structptr.exp: Same. -+ * gdb.dwarf2/dw2-unusual-field-names.exp: Same. -+ * gdb.dwarf2/enum-type.exp: Same. -+ * gdb.dwarf2/frame-inlined-in-outer-frame.exp: Same. -+ * gdb.dwarf2/info-locals-optimized-out.exp: Same. -+ * gdb.dwarf2/main-subprogram.exp: Same. -+ * gdb.dwarf2/missing-type-name.exp: Same. -+ * gdb.dwarf2/nonvar-access.exp: Same. -+ * gdb.dwarf2/typedef-void-finish.exp: Same. -+ * gdb.dwarf2/var-access.exp: Same. -+ * gdb.dwarf2/void-type.exp: Same. -+ -+>>>>>>> e0d6d274068 (Fix potential hang during gdbserver testing) - 2020-10-22 Simon Marchi - - PR gdb/26693 diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp diff --git a/gdb-test-dw2-aranges.patch b/gdb-test-dw2-aranges.patch index 054a769..458e8ba 100644 --- a/gdb-test-dw2-aranges.patch +++ b/gdb-test-dw2-aranges.patch @@ -203,7 +203,7 @@ new file mode 100644 + && ![istarget *-*-openbsd*] + && ![istarget arm-*-eabi*] + && ![istarget powerpc-*-eabi*]} { -+ return 0 ++ return 0 +} + +set testfile "dw2-aranges" diff --git a/gdb-test-ivy-bridge.patch b/gdb-test-ivy-bridge.patch index c0d8edc..ed82789 100644 --- a/gdb-test-ivy-bridge.patch +++ b/gdb-test-ivy-bridge.patch @@ -57,21 +57,21 @@ new file mode 100644 + vcvtps2ph $0x2,%ymm4,%xmm4 + vcvtps2ph $0x2,%ymm8,(%r8) + vcvtps2ph $0x2,%xmm4,%xmm4 -+ vcvtps2ph $0x2,%xmm4,(%rcx) ++ vcvtps2ph $0x2,%xmm4,(%rcx) + + .intel_syntax noprefix + vcvtph2ps ymm4,xmm4 + vcvtph2ps ymm8,XMMWORD PTR [r8] + vcvtph2ps ymm4,[rcx] + vcvtph2ps xmm6,xmm4 -+ vcvtph2ps xmm4,QWORD PTR [rcx] ++ vcvtph2ps xmm4,QWORD PTR [rcx] + vcvtph2ps xmm4,[rcx] + vcvtps2ph xmm4,ymm4,0x2 -+ vcvtps2ph XMMWORD PTR [rcx],ymm4,0x2 -+ vcvtps2ph [rcx],ymm4,0x2 ++ vcvtps2ph XMMWORD PTR [rcx],ymm4,0x2 ++ vcvtps2ph [rcx],ymm4,0x2 + vcvtps2ph xmm4,xmm4,0x2 -+ vcvtps2ph QWORD PTR [r8],xmm8,0x2 -+ vcvtps2ph [rcx],xmm4,0x2 ++ vcvtps2ph QWORD PTR [r8],xmm8,0x2 ++ vcvtps2ph [rcx],xmm4,0x2 + +/* gas/i386/x86-64-fsgs.s */ + .att_syntax prefix @@ -80,34 +80,34 @@ new file mode 100644 + rdfsbase %r8d + rdfsbase %r8 + rdgsbase %ebx -+ rdgsbase %rbx -+ rdgsbase %r8d -+ rdgsbase %r8 -+ wrfsbase %ebx -+ wrfsbase %rbx -+ wrfsbase %r8d -+ wrfsbase %r8 -+ wrgsbase %ebx -+ wrgsbase %rbx -+ wrgsbase %r8d -+ wrgsbase %r8 ++ rdgsbase %rbx ++ rdgsbase %r8d ++ rdgsbase %r8 ++ wrfsbase %ebx ++ wrfsbase %rbx ++ wrfsbase %r8d ++ wrfsbase %r8 ++ wrgsbase %ebx ++ wrgsbase %rbx ++ wrgsbase %r8d ++ wrgsbase %r8 + + .intel_syntax noprefix -+ rdfsbase ebx -+ rdfsbase rbx -+ rdfsbase r8d ++ rdfsbase ebx ++ rdfsbase rbx ++ rdfsbase r8d + rdfsbase r8 -+ rdgsbase ebx -+ rdgsbase rbx -+ rdgsbase r8d ++ rdgsbase ebx ++ rdgsbase rbx ++ rdgsbase r8d + rdgsbase r8 -+ wrfsbase ebx -+ wrfsbase rbx -+ wrfsbase r8d ++ wrfsbase ebx ++ wrfsbase rbx ++ wrfsbase r8d + wrfsbase r8 -+ wrgsbase ebx -+ wrgsbase rbx -+ wrgsbase r8d ++ wrgsbase ebx ++ wrgsbase rbx ++ wrgsbase r8d + wrgsbase r8 diff --git a/gdb/testsuite/gdb.arch/amd64-ivy-bridge.exp b/gdb/testsuite/gdb.arch/amd64-ivy-bridge.exp new file mode 100644 @@ -136,7 +136,7 @@ new file mode 100644 +set testfile amd64-ivy-bridge +set test compilation +if [prepare_for_testing ${testfile}.exp ${testfile}.x ${testfile}.S [list debug "additional_flags=-m64 -nostdlib"]] { -+ fail $test ++ unsupported $test + return -1 +} +pass $test @@ -288,7 +288,7 @@ diff --git a/gdb/testsuite/gdb.arch/i386-ivy-bridge.S b/gdb/testsuite/gdb.arch/i new file mode 100644 --- /dev/null +++ b/gdb/testsuite/gdb.arch/i386-ivy-bridge.S -@@ -0,0 +1,67 @@ +@@ -0,0 +1,66 @@ +/* Copyright 2011 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify @@ -325,23 +325,23 @@ new file mode 100644 + vcvtph2ps %xmm4,%xmm6 + vcvtph2ps (%ecx),%xmm4 + vcvtps2ph $0x2,%ymm4,%xmm4 -+ vcvtps2ph $0x2,%ymm4,(%ecx) ++ vcvtps2ph $0x2,%ymm4,(%ecx) + vcvtps2ph $0x2,%xmm4,%xmm4 -+ vcvtps2ph $0x2,%xmm4,(%ecx) ++ vcvtps2ph $0x2,%xmm4,(%ecx) + + .intel_syntax noprefix + vcvtph2ps ymm4,xmm4 + vcvtph2ps ymm4,XMMWORD PTR [ecx] + vcvtph2ps ymm4,[ecx] + vcvtph2ps xmm6,xmm4 -+ vcvtph2ps xmm4,QWORD PTR [ecx] ++ vcvtph2ps xmm4,QWORD PTR [ecx] + vcvtph2ps xmm4,[ecx] + vcvtps2ph xmm4,ymm4,0x2 -+ vcvtps2ph XMMWORD PTR [ecx],ymm4,0x2 -+ vcvtps2ph [ecx],ymm4,0x2 ++ vcvtps2ph XMMWORD PTR [ecx],ymm4,0x2 ++ vcvtps2ph [ecx],ymm4,0x2 + vcvtps2ph xmm4,xmm4,0x2 -+ vcvtps2ph QWORD PTR [ecx],xmm4,0x2 -+ vcvtps2ph [ecx],xmm4,0x2 ++ vcvtps2ph QWORD PTR [ecx],xmm4,0x2 ++ vcvtps2ph [ecx],xmm4,0x2 + +/* gas/i386/fsgs.s */ + .att_syntax prefix @@ -351,11 +351,10 @@ new file mode 100644 + wrgsbase %ebx + + .intel_syntax noprefix -+ rdfsbase ebx -+ rdgsbase ebx -+ wrfsbase ebx -+ wrgsbase ebx -+ ++ rdfsbase ebx ++ rdgsbase ebx ++ wrfsbase ebx ++ wrgsbase ebx diff --git a/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp b/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp new file mode 100644 --- /dev/null diff --git a/gdb-test-pid0-core.patch b/gdb-test-pid0-core.patch index 4401dcd..fea4def 100644 --- a/gdb-test-pid0-core.patch +++ b/gdb-test-pid0-core.patch @@ -45,22 +45,22 @@ new file mode 100644 +++ b/gdb/testsuite/gdb.arch/x86_64-pid0-core.exp @@ -0,0 +1,46 @@ +# This testcase is part of GDB, the GNU debugger. -+# ++# +# Copyright 2010 Free Software Foundation, Inc. -+# ++# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Some kernel core files have PID 0 - for the idle task. + diff --git a/gdb-vla-intel-stringbt-fix.patch b/gdb-vla-intel-stringbt-fix.patch index 1a2bbb1..20cb3fe 100644 --- a/gdb-vla-intel-stringbt-fix.patch +++ b/gdb-vla-intel-stringbt-fix.patch @@ -91,15 +91,15 @@ new file mode 100644 +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. -+# ++# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. -+# ++# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +set testfile "dynamic-other-frame" +set srcfile1 ${testfile}.f90 diff --git a/generate-git-repo-from-patches.sh b/generate-git-repo-from-patches.sh index 6f454cc..8477e30 100755 --- a/generate-git-repo-from-patches.sh +++ b/generate-git-repo-from-patches.sh @@ -34,6 +34,8 @@ test "$1" = "-h" && usage uncommit=0 if [ "$1" = "-u" ]; then + command -v stg > /dev/null 2>&1 \ + || die "Cannot find stg. Is stgit installed?" uncommit=1 shift fi @@ -46,7 +48,6 @@ fi test -f _git_upstream_commit || die "Cannot find _git_upstream_commit file." test -f _patch_order || die "Cannot find _patch_order file." -command -v stg > /dev/null 2>&1 || die "Cannot find stg. Is stgit installed?" last_ancestor_commit=`cat _git_upstream_commit` diff --git a/process_psymtab_comp_unit-type-unit.patch b/process_psymtab_comp_unit-type-unit.patch new file mode 100644 index 0000000..1f572c0 --- /dev/null +++ b/process_psymtab_comp_unit-type-unit.patch @@ -0,0 +1,65 @@ +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Keith Seitz +Date: Tue, 23 Mar 2021 11:17:28 -0700 +Subject: process_psymtab_comp_unit-type-unit.patch + +;; Backport "Handle DW_TAG_type_unit in process_symtab_unit" +;; (Tom de Vries) + + commit e77b0004dd114d6ddf3bb92b521b2854341f3f85 + Author: Tom de Vries + Date: Fri Feb 5 17:47:07 2021 +0100 + +[gdb/symtab] Handle DW_TAG_type_unit in process_psymtab_comp_unit + +When running test-case gdb.cp/cpexprs-debug-types.exp with target board +unix/gdb:debug_flags=-gdwarf-5, I run into: +... +(gdb) file cpexprs-debug-types^M +Reading symbols from cpexprs-debug-types...^M +ERROR: Couldn't load cpexprs-debug-types into GDB (eof). +ERROR: Couldn't send delete breakpoints to GDB. +ERROR: GDB process no longer exists +GDB process exited with wait status 23054 exp9 0 0 CHILDKILLED SIGABRT SIGABRT +... + +We're running into this abort in process_psymtab_comp_unit: +... + switch (reader.comp_unit_die->tag) + { + case DW_TAG_compile_unit: + this_cu->unit_type = DW_UT_compile; + break; + case DW_TAG_partial_unit: + this_cu->unit_type = DW_UT_partial; + break; + default: + abort (); + } +... +because reader.comp_unit_die->tag == DW_TAG_type_unit. + +Fix this by adding a DW_TAG_type_unit case. + +Tested on x86_64-linux. + +gdb/ChangeLog: + +2021-02-05 Tom de Vries + + PR symtab/27333 + * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit. + +diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c +--- a/gdb/dwarf2/read.c ++++ b/gdb/dwarf2/read.c +@@ -7715,6 +7715,9 @@ process_psymtab_comp_unit (dwarf2_per_cu_data *this_cu, + case DW_TAG_partial_unit: + this_cu->unit_type = DW_UT_partial; + break; ++ case DW_TAG_type_unit: ++ this_cu->unit_type = DW_UT_type; ++ break; + default: + abort (); + } diff --git a/testing-custom-inputrc.patch b/testing-custom-inputrc.patch new file mode 100644 index 0000000..78f038e --- /dev/null +++ b/testing-custom-inputrc.patch @@ -0,0 +1,52 @@ +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Keith Seitz +Date: Tue, 23 Mar 2021 09:32:37 -0700 +Subject: testing-custom-inputrc.patch + +;; Backport "Disable bracketed paste mode in GDB tests" +;; (Tom Tromey) + + commit 1af4c9c4209c3478224f18dfb79dc09567b96705 + Author: Tom Tromey + Date: Sat Jan 23 08:52:45 2021 -0700 + + Disable bracketed paste mode in GDB tests + + I have a patch to import GNU readline 8.1 into GDB. However, when + running the tests, there were a number of failures due to "bracketed + paste mode". This is a terminal feature that readline 8.1 enables by + default. + + The simplest way to work around this was to always make a ".inputrc" + for GDB tests that will tell readline to disable brackted paste mode. + + gdb/testsuite/ChangeLog + 2021-01-23 Tom Tromey + + * lib/gdb.exp (default_gdb_init): Set INPUTRC to a cached file. + +diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp +--- a/gdb/testsuite/lib/gdb.exp ++++ b/gdb/testsuite/lib/gdb.exp +@@ -5084,13 +5084,14 @@ proc default_gdb_init { test_file_name } { + setenv LC_CTYPE C + setenv LANG C + +- # Don't let a .inputrc file or an existing setting of INPUTRC mess up +- # the test results. Even if /dev/null doesn't exist on the particular +- # platform, the readline library will use the default setting just by +- # failing to open the file. OTOH, opening /dev/null successfully will +- # also result in the default settings being used since nothing will be +- # read from this file. +- setenv INPUTRC "/dev/null" ++ # Don't let a .inputrc file or an existing setting of INPUTRC mess ++ # up the test results. Certain tests (style tests and TUI tests) ++ # want to set the terminal to a non-"dumb" value, and for those we ++ # want to disable bracketed paste mode. Versions of Readline ++ # before 8.0 will not understand this and will issue a warning. ++ # We tried using a $if to guard it, but Readline 8.1 had a bug in ++ # its version-comparison code that prevented this for working. ++ setenv INPUTRC [cached_file inputrc "set enable-bracketed-paste off"] + + # This disables style output, which would interfere with many + # tests.