OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.stabs/] [exclfwd.exp] - Blame information for rev 834

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
#   Copyright 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program.  If not, see .
15
 
16
# Please email any bugs, comments, and/or additions to this file to:
17
# bug-gdb@gnu.org
18
 
19
if $tracelevel {
20
    strace $tracelevel
21
}
22
 
23
# If the test directory was not created by configure then skip
24
# this test.
25
if ![file isdirectory ${objdir}/${subdir}] then {
26
    return 0
27
}
28
 
29
#
30
# test running programs
31
#
32
set prms_id 0
33
set bug_id 0
34
 
35
set testfile exclfwd
36
set binfile ${objdir}/${subdir}/${testfile}
37
 
38
foreach file {exclfwd1 exclfwd2} {
39
    if {[gdb_compile "${srcdir}/${subdir}/${file}.c" "${file}.o" object {debug}] != ""} {
40
        untested exclfwd.exp
41
        return -1
42
    }
43
}
44
 
45
if {[gdb_compile "exclfwd1.o exclfwd2.o" ${binfile} executable {debug}] != "" } {
46
     untested exclfwd.exp
47
     return -1
48
}
49
 
50
gdb_exit
51
gdb_start
52
gdb_reinitialize_dir $srcdir/$subdir
53
gdb_load ${binfile}
54
 
55
if ![runto_main] then {
56
    perror "couldn't run to breakpoint"
57
    continue
58
}
59
 
60
get_debug_format
61
 
62
set eol "\[ \t\]*\[\n\r\]+"
63
 
64
gdb_test "ptype v1" "type = struct a {$eol
65
    int x;$eol
66
    int y;$eol
67
}$eol"
68
 
69
if { [test_debug_format "stabs"] } then {
70
    setup_kfail "gdb/1602" *-*-*
71
}
72
gdb_test "ptype v2" "type = struct a {$eol
73
    const char .c;$eol
74
}$eol"
75
 
76
if { [test_debug_format "stabs"] } then {
77
    setup_kfail "gdb/1603" *-*-*
78
}
79
gdb_test "ptype v3" "type = const char ."

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.