1 |
1181 |
sfurman |
# OBSOLETE # Copyright 1995, 1996 Free Software Foundation, Inc.
|
2 |
|
|
# OBSOLETE
|
3 |
|
|
# OBSOLETE # This program is free software; you can redistribute it and/or modify
|
4 |
|
|
# OBSOLETE # it under the terms of the GNU General Public License as published by
|
5 |
|
|
# OBSOLETE # the Free Software Foundation; either version 2 of the License, or
|
6 |
|
|
# OBSOLETE # (at your option) any later version.
|
7 |
|
|
# OBSOLETE #
|
8 |
|
|
# OBSOLETE # This program is distributed in the hope that it will be useful,
|
9 |
|
|
# OBSOLETE # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
|
|
# OBSOLETE # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
|
|
# OBSOLETE # GNU General Public License for more details.
|
12 |
|
|
# OBSOLETE #
|
13 |
|
|
# OBSOLETE # You should have received a copy of the GNU General Public License
|
14 |
|
|
# OBSOLETE # along with this program; if not, write to the Free Software
|
15 |
|
|
# OBSOLETE # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
|
|
# OBSOLETE
|
17 |
|
|
# OBSOLETE # Please email any bugs, comments, and/or additions to this file to:
|
18 |
|
|
# OBSOLETE # bug-gdb@prep.ai.mit.edu
|
19 |
|
|
# OBSOLETE
|
20 |
|
|
# OBSOLETE if $tracelevel then {
|
21 |
|
|
# OBSOLETE strace $tracelevel
|
22 |
|
|
# OBSOLETE }
|
23 |
|
|
# OBSOLETE
|
24 |
|
|
# OBSOLETE if [skip_chill_tests] then { continue }
|
25 |
|
|
# OBSOLETE
|
26 |
|
|
# OBSOLETE set testfile "string"
|
27 |
|
|
# OBSOLETE set srcfile ${srcdir}/$subdir/${testfile}.ch
|
28 |
|
|
# OBSOLETE set binfile ${objdir}/${subdir}/${testfile}.exe
|
29 |
|
|
# OBSOLETE if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
|
30 |
|
|
# OBSOLETE perror "Couldn't compile ${srcfile}"
|
31 |
|
|
# OBSOLETE return -1
|
32 |
|
|
# OBSOLETE }
|
33 |
|
|
# OBSOLETE
|
34 |
|
|
# OBSOLETE proc do_tests {} {
|
35 |
|
|
# OBSOLETE global prms_id bug_id subdir objdir srcdir binfile gdb_prompt
|
36 |
|
|
# OBSOLETE
|
37 |
|
|
# OBSOLETE set prms_id 0
|
38 |
|
|
# OBSOLETE set bug_id 0
|
39 |
|
|
# OBSOLETE
|
40 |
|
|
# OBSOLETE # Start with a fresh gdb.
|
41 |
|
|
# OBSOLETE
|
42 |
|
|
# OBSOLETE gdb_exit
|
43 |
|
|
# OBSOLETE gdb_start
|
44 |
|
|
# OBSOLETE gdb_reinitialize_dir $srcdir/$subdir
|
45 |
|
|
# OBSOLETE gdb_load $binfile
|
46 |
|
|
# OBSOLETE
|
47 |
|
|
# OBSOLETE gdb_test "set language chill" ""
|
48 |
|
|
# OBSOLETE
|
49 |
|
|
# OBSOLETE # These tests based on Cygnus PR chill/5696.
|
50 |
|
|
# OBSOLETE runto string.ch:22
|
51 |
|
|
# OBSOLETE gdb_test "p s20" { = "Moser Wilfried"} "print simple vstring"
|
52 |
|
|
# OBSOLETE gdb_test "p s20(1)" { = 'o'} "print vstring element"
|
53 |
|
|
# OBSOLETE gdb_test "p s20(1:3)" { = "ose"} "print vstring slice (:)"
|
54 |
|
|
# OBSOLETE gdb_test "p s20(2 up 3)" { = "ser"} "print vstring slice (up)"
|
55 |
|
|
# OBSOLETE gdb_test "p s10" { = "1234567890"} "print simple string"
|
56 |
|
|
# OBSOLETE gdb_test "p s10(1)" { = '2'} "print string element"
|
57 |
|
|
# OBSOLETE gdb_test "p s10(1:3)" { = "234"} "print string slice (:)"
|
58 |
|
|
# OBSOLETE gdb_test "p s10(2 up 3)" { = "345"} "print string slice (up)"
|
59 |
|
|
# OBSOLETE
|
60 |
|
|
# OBSOLETE gdb_test "p length(s10)" { = 10} "print string length"
|
61 |
|
|
# OBSOLETE gdb_test "p length(s20)" { = 14} "print varying string length"
|
62 |
|
|
# OBSOLETE gdb_test "p lower(s10)" { = 0} "print string lower"
|
63 |
|
|
# OBSOLETE gdb_test "p upper(s10)" { = 9} "print string upper"
|
64 |
|
|
# OBSOLETE gdb_test "p lower(s20)" { = 0} "print varying string lower"
|
65 |
|
|
# OBSOLETE gdb_test "p upper(s20)" { = 19} "print varying string upper"
|
66 |
|
|
# OBSOLETE
|
67 |
|
|
# OBSOLETE # These tests are based on Cygnus PR chill/9078.
|
68 |
|
|
# OBSOLETE gdb_test "print foo // bar" { = "Moser Wilfried"}
|
69 |
|
|
# OBSOLETE gdb_test "print foo // bar1" { = "Moser abcde"}
|
70 |
|
|
# OBSOLETE gdb_test "print foo1 // bar1" { = "12345abcde"}
|
71 |
|
|
# OBSOLETE }
|
72 |
|
|
# OBSOLETE
|
73 |
|
|
# OBSOLETE do_tests
|