* Per-inferior thread numbers. * Breakpoint "explicit locations" (via CLI and GDB/MI). * New convenience variables ($_gthread, $_inferior). * Record btrace now supports non-stop mode. * Various improvements on AArch64 GNU/Linux: - Multi-architecture debugging support. - displaced stepping. - tracepoint support added in GDBserver. * In Ada, the overloads selection menu provides the parameter types and return types for the matching overloaded subprograms. * Various remote protocol improvements, including several new packets which can be used to support features such as follow-exec-mode, exec catchpoints, syscall catchpoints, etc. * Some minor improvements in the Python API for extending GDB. - Added new patches from Fedora: gdb-fedora-libncursesw.patch gdb-fortran-stride-intel-1of6.patch gdb-fortran-stride-intel-2of6.patch gdb-fortran-stride-intel-3of6.patch gdb-fortran-stride-intel-4of6.patch gdb-fortran-stride-intel-5of6.patch gdb-fortran-stride-intel-6of6-nokfail.patch gdb-fortran-stride-intel-6of6.patch gdb-opcodes-clflushopt-test.patch gdb-testsuite-readline63-sigint.patch - Removed obsolete patches: gdb-6.3-bz231832-obstack-2gb.patch gdb-pahole-python2.patch gdb-probes-based-interface-robust-1of2.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=132
83 lines
3.0 KiB
Diff
83 lines
3.0 KiB
Diff
For:
|
|
http://sourceware.org/ml/gdb-patches/2008-04/msg00379.html
|
|
http://sourceware.org/ml/gdb-cvs/2008-04/msg00104.html
|
|
|
|
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.base/watchpoint-cond.exp
|
|
===================================================================
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.base/watchpoint-cond.exp 2016-02-15 23:33:49.519099759 +0100
|
|
@@ -0,0 +1,37 @@
|
|
+# 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 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 <http://www.gnu.org/licenses/>.
|
|
+
|
|
+set testfile watchpoint-cond
|
|
+set srcfile ${testfile}.c
|
|
+set binfile [standard_output_file ${testfile}]
|
|
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
|
+ untested "Couldn't compile test program"
|
|
+ return -1
|
|
+}
|
|
+
|
|
+# Get things started.
|
|
+
|
|
+gdb_exit
|
|
+gdb_start
|
|
+gdb_reinitialize_dir $srcdir/$subdir
|
|
+gdb_load ${binfile}
|
|
+
|
|
+if { [runto_main] < 0 } {
|
|
+ untested watchpoint-cond
|
|
+ return -1
|
|
+}
|
|
+
|
|
+gdb_test "watch i if i < 20" "atchpoint \[0-9\]+: i"
|
|
+gdb_test "cont" "atchpoint \[0-9\]+: i.*Old value = 20.*New value = 19.*"
|
|
Index: gdb-7.10.90.20160211/gdb/testsuite/gdb.base/watchpoint-cond.c
|
|
===================================================================
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
+++ gdb-7.10.90.20160211/gdb/testsuite/gdb.base/watchpoint-cond.c 2016-02-15 23:32:51.974691188 +0100
|
|
@@ -0,0 +1,31 @@
|
|
+/* This testcase is part of GDB, the GNU debugger.
|
|
+
|
|
+ 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 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 <http://www.gnu.org/licenses/>.
|
|
+
|
|
+ Please email any bugs, comments, and/or additions to this file to:
|
|
+ bug-gdb@prep.ai.mit.edu */
|
|
+
|
|
+int
|
|
+main (int argc, char **argv)
|
|
+{
|
|
+ static int i = 0; /* `static' to start initialized. */
|
|
+ int j = 2;
|
|
+
|
|
+ for (j = 0; j < 30; j++)
|
|
+ i = 30 - j;
|
|
+
|
|
+ return 0;
|
|
+}
|