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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.hp/] [gdb.compat/] [xdb1.exp] - Blame information for rev 842

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# Copyright (C) 1992, 1994, 1995, 2007, 2008, 2009, 2010
2
# Free Software Foundation, Inc.
3
 
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program.  If not, see .  */
16
 
17
# This file was written by Fred Fish. (fnf@cygnus.com)
18
 
19
if $tracelevel then {
20
        strace $tracelevel
21
        }
22
 
23
if { [skip_hp_tests] } then { continue }
24
 
25
global usestubs
26
 
27
#
28
# test running programs
29
#
30
set prms_id 0
31
set bug_id 0
32
 
33
set testfile "xdb"
34
set srcfile ${testfile}.c
35
set binfile ${objdir}/${subdir}/${testfile}
36
if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
37
     untested xdb1.exp
38
     return -1
39
}
40
 
41
if [get_compiler_info ${binfile}] {
42
    return -1;
43
}
44
if { $gcc_compiled } then { continue }
45
 
46
global GDBFLAGS
47
set saved_gdbflags $GDBFLAGS
48
 
49
set GDBFLAGS "$GDBFLAGS --xdb"
50
 
51
gdb_exit
52
gdb_start
53
gdb_reinitialize_dir $srcdir/$subdir
54
gdb_load ${binfile}
55
 
56
gdb_test "set pagination off" ""
57
gdb_test "show pagination" "State of pagination is off."
58
gdb_test "set pagination on" ""
59
gdb_test "show pagination" "State of pagination is on."
60
 
61
gdb_test "txbreak callee" "Breakpoint.*at.*"
62
gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*del.*y.*"
63
 
64
gdb_test "xbreak callee" "Breakpoint.*at.*.*"
65
gdb_test "info break" "Num.*Type.*Disp.*Enb.*Address.*What\r\n.*breakpoint.*keep.*y.*"
66
 
67
gdb_exit
68
set GDBFLAGS $saved_gdbflags
69
return 0
70
 
71
 
72
 
73
 
74
 
75
 
76
 

powered by: WebSVN 2.1.0

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