rpms/gdb/devel gdb-6.8-ia64-exec-hw-watchpoint.patch, NONE, 1.1 gdb.spec, 1.313, 1.314

Jan Kratochvil jkratoch at fedoraproject.org
Tue Nov 18 20:01:33 UTC 2008


Author: jkratoch

Update of /cvs/pkgs/rpms/gdb/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9700

Modified Files:
	gdb.spec 
Added Files:
	gdb-6.8-ia64-exec-hw-watchpoint.patch 
Log Message:
* Tue Nov 18 2008 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.8-31
- Enable ia64 hardware watchpoints if created before starting inferior.


gdb-6.8-ia64-exec-hw-watchpoint.patch:

--- NEW FILE gdb-6.8-ia64-exec-hw-watchpoint.patch ---
It is a regression from:
http://sourceware.org/ml/gdb-patches/2007-03/msg00290.html
http://sourceware.org/ml/gdb-cvs/2007-03/msg00114.html

Without started inferior the only target in the stack is `exec' which has no
hardware-watchpoints support for sure.

--- /dev/null	2008-11-16 09:11:50.595000000 +0100
+++ gdb-6.8/gdb/config/ia64/nm-linux.h	2008-11-18 11:00:34.000000000 +0100
@@ -0,0 +1,31 @@
+/* Native support for GNU/Linux, for GDB, the GNU debugger.
+
+   Copyright 1999, 2000, 2001, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   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.  */
+
+#ifndef NM_LINUX_H
+#define NM_LINUX_H
+
+#include "config/nm-linux.h"
+
+/* Hardware watchpoints */
+
+#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
+
+#endif /* #ifndef NM_LINUX_H */
--- gdb-6.8/gdb/config/ia64/linux.mh-orig	2007-04-26 00:17:48.000000000 +0200
+++ gdb-6.8/gdb/config/ia64/linux.mh	2008-11-18 11:09:33.000000000 +0100
@@ -1,6 +1,6 @@
 # Host: Intel IA-64 running GNU/Linux
 
-NAT_FILE= config/nm-linux.h
+NAT_FILE= nm-linux.h
 NATDEPFILES= inf-ptrace.o fork-child.o corelow.o gcore.o \
 	core-regset.o ia64-linux-nat.o \
 	proc-service.o linux-thread-db.o linux-nat.o linux-fork.o
--- /dev/null	2008-11-16 09:11:50.595000000 +0100
+++ gdb-6.8/gdb/testsuite/gdb.base/hw-watchpoint-available.exp	2008-11-18 11:28:40.000000000 +0100
@@ -0,0 +1,35 @@
+# 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/>.
+
+if {![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] && ![istarget "ia64-*-*"]
+    && ![istarget "s390*-*-*"]} then {
+    verbose "Skipping hw-watchpoint-available test."
+    return
+}
+
+set testfile hw-watchpoint-available
+set srcfile ${testfile}.c
+set binfile ${objdir}/${subdir}/${testfile}
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+    untested "Couldn't compile test program"
+    return -1
+}
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+gdb_test "watch watchee" "Hardware watchpoint 1: watchee"
--- /dev/null	2008-11-16 09:11:50.595000000 +0100
+++ gdb-6.8/gdb/testsuite/gdb.base/hw-watchpoint-available.c	2008-11-18 11:24:38.000000000 +0100
@@ -0,0 +1,27 @@
+/* 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 at prep.ai.mit.edu  */
+
+int watchee;
+
+int
+main (void)
+{
+  return 0;
+}


Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.313
retrieving revision 1.314
diff -u -r1.313 -r1.314
--- gdb.spec	9 Nov 2008 21:04:28 -0000	1.313
+++ gdb.spec	18 Nov 2008 20:01:02 -0000	1.314
@@ -13,7 +13,7 @@
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 30%{?_with_upstream:.upstream}%{?dist}
+Release: 31%{?_with_upstream:.upstream}%{?dist}
 
 License: GPLv3+
 Group: Development/Debuggers
@@ -425,6 +425,9 @@
 # Fix resolving of variables at locations lists in prelinked libs (BZ 466901).
 Patch348: gdb-6.8-bz466901-backtrace-full-prelinked.patch
 
+# Enable ia64 hardware watchpoints if created before starting inferior.
+Patch349: gdb-6.8-ia64-exec-hw-watchpoint.patch
+
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
 BuildRequires: flex bison sharutils expat-devel
 Requires: readline
@@ -629,6 +632,7 @@
 %patch342 -p1
 %patch343 -p1
 %patch348 -p1
+%patch349 -p1
 %patch124 -p1
 
 find -name "*.orig" | xargs rm -f
@@ -892,6 +896,9 @@
 %endif
 
 %changelog
+* Tue Nov 18 2008 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.8-31
+- Enable ia64 hardware watchpoints if created before starting inferior.
+
 * Sun Nov  9 2008 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.8-30
 - Fix a race in the testcase `gdb.threads/step-thread-exit.exp'.
 




More information about the fedora-extras-commits mailing list