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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.threads/] [bp_in_thread.exp] - Diff between revs 834 and 842

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

Rev 834 Rev 842
# Copyright (C) 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# Copyright (C) 2004, 2007, 2008, 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 .
# gdb 6.1.1 on AIX had a bug where the aix-threads code called
# gdb 6.1.1 on AIX had a bug where the aix-threads code called
# getthrds() incorrectly so that gdb lost track of breakpoints.
# getthrds() incorrectly so that gdb lost track of breakpoints.
# GDB reported a SIGTRAP signal in a random thread when hitting
# GDB reported a SIGTRAP signal in a random thread when hitting
# a breakpoint.
# a breakpoint.
if $tracelevel then {
if $tracelevel then {
        strace $tracelevel
        strace $tracelevel
}
}
set testfile "bp_in_thread"
set testfile "bp_in_thread"
set srcfile ${testfile}.c
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
set binfile ${objdir}/${subdir}/${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } {
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } {
    return -1
    return -1
}
}
gdb_exit
gdb_exit
gdb_start
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
gdb_load ${binfile}
runto_main
runto_main
gdb_test "break noreturn" \
gdb_test "break noreturn" \
         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
         "Breakpoint 2 at .*: file .*${srcfile}, line .*" \
         "breakpoint on noreturn"
         "breakpoint on noreturn"
# Run the program and make sure GDB reports that we stopped after
# Run the program and make sure GDB reports that we stopped after
# hitting breakpoint 1 in noreturn().
# hitting breakpoint 1 in noreturn().
gdb_test "continue" \
gdb_test "continue" \
         ".*Breakpoint 2, noreturn ().*" \
         ".*Breakpoint 2, noreturn ().*" \
         "run to noreturn"
         "run to noreturn"
 
 

powered by: WebSVN 2.1.0

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