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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.stabs/] [exclfwd.exp] - Blame information for rev 841

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 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
 
33
set testfile exclfwd
34
set binfile ${objdir}/${subdir}/${testfile}
35
 
36
foreach file {exclfwd1 exclfwd2} {
37
    if {[gdb_compile "${srcdir}/${subdir}/${file}.c" "${file}.o" object {debug}] != ""} {
38
        untested exclfwd.exp
39
        return -1
40
    }
41
}
42
 
43
if {[gdb_compile "exclfwd1.o exclfwd2.o" ${binfile} executable {debug}] != "" } {
44
     untested exclfwd.exp
45
     return -1
46
}
47
 
48
gdb_exit
49
gdb_start
50
gdb_reinitialize_dir $srcdir/$subdir
51
gdb_load ${binfile}
52
 
53
if ![runto_main] then {
54
    perror "couldn't run to breakpoint"
55
    continue
56
}
57
 
58
get_debug_format
59
 
60
set eol "\[ \t\]*\[\n\r\]+"
61
 
62
gdb_test "ptype v1" "type = struct a {$eol
63
    int x;$eol
64
    int y;$eol
65
}$eol"
66
 
67
if { [test_debug_format "stabs"] } then {
68
    setup_kfail "gdb/1602" *-*-*
69
}
70
gdb_test "ptype v2" "type = struct a {$eol
71
    const char .c;$eol
72
}$eol"
73
 
74
if { [test_debug_format "stabs"] } then {
75
    setup_kfail "gdb/1603" *-*-*
76
}
77
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.