OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.arch/] [i386-permbkpt.exp] - Blame information for rev 524

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

Line No. Rev Author Line
1 330 jeremybenn
# Copyright (C) 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
 
17
# This file is part of the gdb testsuite.
18
 
19
if $tracelevel {
20
    strace $tracelevel
21
}
22
 
23
# Test inserting breakpoints over permanent breakpoints on i386 and amd64.
24
 
25
if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then {
26
    verbose "Skipping i386 test for multi break at permanent breakpoint location."
27
    return
28
}
29
 
30
set testfile "i386-permbkpt"
31
set srcfile ${testfile}.S
32
set binfile ${objdir}/${subdir}/${testfile}
33
 
34
# Some targets have leading underscores on assembly symbols.
35
# TODO: detect this automatically
36
set additional_flags ""
37
if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then {
38
    set additional_flags "additional_flags=-DSYMBOL_PREFIX=_"
39
}
40
 
41
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
42
    untested i386-permbkpt.exp
43
    return -1
44
}
45
 
46
gdb_exit
47
gdb_start
48
gdb_reinitialize_dir $srcdir/$subdir
49
gdb_load ${binfile}
50
 
51
gdb_test "break main" "" "First permanent break"
52
gdb_test "break main" "" "Second permanent break"

powered by: WebSVN 2.1.0

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