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