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

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