Blame SOURCES/gdb-6.5-last-address-space-byte-test.patch

7a6771
Index: ./gdb/testsuite/gdb.base/largecore-last-address-lock.exp
7a6771
===================================================================
7a6771
RCS file: ./gdb/testsuite/gdb.base/largecore-last-address-lock.exp
7a6771
diff -N ./gdb/testsuite/gdb.base/largecore-last-address-lock.exp
7a6771
--- /dev/null	1 Jan 1970 00:00:00 -0000
7a6771
+++ ./gdb/testsuite/gdb.base/largecore-last-address-lock.exp	15 Nov 2006 21:43:24 -0000
7a6771
@@ -0,0 +1,49 @@
7a6771
+# Copyright 2006 Free Software Foundation, Inc.
7a6771
+
7a6771
+# This program is free software; you can redistribute it and/or modify
7a6771
+# it under the terms of the GNU General Public License as published by
7a6771
+# the Free Software Foundation; either version 2 of the License, or
7a6771
+# (at your option) any later version.
7a6771
+# 
7a6771
+# This program is distributed in the hope that it will be useful,
7a6771
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
7a6771
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7a6771
+# GNU General Public License for more details.
7a6771
+# 
7a6771
+# You should have received a copy of the GNU General Public License
7a6771
+# along with this program; if not, write to the Free Software
7a6771
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
7a6771
+
7a6771
+if $tracelevel then {
7a6771
+    strace $tracelevel
7a6771
+}
7a6771
+
7a6771
+# Get things started.
7a6771
+
7a6771
+gdb_exit
7a6771
+gdb_start
7a6771
+
7a6771
+# i386 (32-bit) only: gdb with Red Hat largecore patch did lock up:
7a6771
+# https://enterprise.redhat.com/issue-tracker/?module=issues&action=view&tid=103263
7a6771
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=210614
7a6771
+
7a6771
+# i386: Bug exists when the `target_xfer_memory' condition
7a6771
+# `(memaddr + len < region->hi)' operates on 64-bit operands on
7a6771
+# largecore-patched with 32-bit addresses and so it can get `false' with
7a6771
+# arbitrary `len'.
7a6771
+
7a6771
+# x86_64: The bug is not present as the operands and calculations have the same
7a6771
+# bit size.  Would would still need to pass there the highest address
7a6771
+# (`memaddr == 0xffffffffffffffff') but we would need to pass `len == 0'
7a6771
+# to make the condition `(memaddr + len < region->hi)' false.
7a6771
+# `len == 0' would get caught eariler.
7a6771
+
7a6771
+# Error in the success case is immediate.
7a6771
+set timeoutold ${timeout}
7a6771
+set timeout 10
7a6771
+
7a6771
+gdb_test "x/xb 0xffffffff" \
7a6771
+         "Cannot access memory at address 0xffffffff" \
7a6771
+         "Read the last address space byte"
7a6771
+
7a6771
+set timeout ${timeoutold}