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

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