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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc3/] [gdb/] [testsuite/] [gdb.base/] [hbreak.exp] - Diff between revs 330 and 513

Only display areas with differences | Details | Blame | View Log

Rev 330 Rev 513
# Copyright 2009, 2010 Free Software Foundation, Inc.
# Copyright 2009, 2010 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
# along with this program.  If not, see .
# Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
# Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
     && ![istarget "ia64-*-*"])
     && ![istarget "ia64-*-*"])
    || [target_info exists gdb,no_hardware_watchpoints]} then {
    || [target_info exists gdb,no_hardware_watchpoints]} then {
    verbose "Skipping hbreak test."
    verbose "Skipping hbreak test."
    return
    return
}
}
set test hbreak
set test hbreak
set srcfile ${test}.c
set srcfile ${test}.c
if { [prepare_for_testing ${test}.exp ${test} ${srcfile}] } {
if { [prepare_for_testing ${test}.exp ${test} ${srcfile}] } {
    return -1
    return -1
}
}
if ![runto_main] {
if ![runto_main] {
    untested ${test}.exp
    untested ${test}.exp
    return -1
    return -1
}
}
set breakline [gdb_get_line_number "break-at-exit"]
set breakline [gdb_get_line_number "break-at-exit"]
gdb_test "hbreak ${srcfile}:${breakline}" \
gdb_test "hbreak ${srcfile}:${breakline}" \
         "Hardware assisted breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*${srcfile}, line ${breakline}\\." \
         "Hardware assisted breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*${srcfile}, line ${breakline}\\." \
         "hbreak"
         "hbreak"
gdb_test "continue" \
gdb_test "continue" \
         "Continuing\\.\[ \r\n\]+Breakpoint \[0-9\]+, .*break-at-exit.*" \
         "Continuing\\.\[ \r\n\]+Breakpoint \[0-9\]+, .*break-at-exit.*" \
         "continue to break-at-exit after hbreak"
         "continue to break-at-exit after hbreak"
 
 

powered by: WebSVN 2.1.0

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