projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update year range in copyright notice of all files owned by the GDB project.
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.threads
/
pthreads.exp
diff --git
a/gdb/testsuite/gdb.threads/pthreads.exp
b/gdb/testsuite/gdb.threads/pthreads.exp
index d2a8968b570ce66496ec960e21c2ca4080aef53c..80cae2cbc28518bcfbf40cb17839f64501869d37 100644
(file)
--- a/
gdb/testsuite/gdb.threads/pthreads.exp
+++ b/
gdb/testsuite/gdb.threads/pthreads.exp
@@
-1,5
+1,4
@@
-# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2007, 2008,
-# 2009, 2010 Free Software Foundation, Inc.
+# Copyright (C) 1996-2015 Free Software Foundation, Inc.
# 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
# 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
@@
-16,19
+15,8
@@
# This file was written by Fred Fish. (fnf@cygnus.com)
# This file was written by Fred Fish. (fnf@cygnus.com)
-if $tracelevel then {
- strace $tracelevel
-}
-
-
-# This only works with native configurations
-if ![isnative] then {
- return
-}
-set testfile "pthreads"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
# regexp for "horizontal" text (i.e. doesn't include newline or
# carriage return)
# regexp for "horizontal" text (i.e. doesn't include newline or
# carriage return)
@@
-40,17
+28,11
@@
if [istarget "*-*-linux"] then {
set target_cflags ""
}
set target_cflags ""
}
-if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable
[list debug "incdir=${objdir}"]
] != "" } {
+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable
debug
] != "" } {
return -1
}
return -1
}
-
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
gdb_test_no_output "set print sevenbit-strings"
#gdb_test_no_output "set print address off"
gdb_test_no_output "set print sevenbit-strings"
#gdb_test_no_output "set print address off"
@@
-58,11
+40,7
@@
gdb_test_no_output "set width 0"
# We'll need this when we send_gdb a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.
# We'll need this when we send_gdb a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.
-# On Ultrix, we don't need it and it is really slow (because shell_escape
-# doesn't use vfork).
-if ![istarget "*-*-ultrix*"] then {
- gdb_test "shell stty intr '^C'" ".*"
-}
+gdb_test "shell stty intr '^C'" ".*"
proc all_threads_running {} {
global gdb_prompt
proc all_threads_running {} {
global gdb_prompt
@@
-97,7
+75,7
@@
proc all_threads_running {} {
}
if { $return_me == 1 } then {
}
if { $return_me == 1 } then {
- return 0
;
+ return 0
}
# Check that we stopped when we actually expected to stop, by
}
# Check that we stopped when we actually expected to stop, by
@@
-157,7
+135,7
@@
proc test_startup {} {
}
if { $return_me == 1 } then {
}
if { $return_me == 1 } then {
- return 0
;
+ return 0
}
# Extract the thread id number of main thread from "info threads" output.
}
# Extract the thread id number of main thread from "info threads" output.
@@
-227,7
+205,7
@@
proc check_control_c {} {
}
timeout {
fail "$description (timeout)"
}
timeout {
fail "$description (timeout)"
- return 1
;
+ return 1
}
}
gdb_test "bt" ".*"
}
}
gdb_test "bt" ".*"
@@
-236,7
+214,7
@@
proc check_control_c {} {
if [all_threads_running] then {
pass "All threads running after continuing from ^C stop"
}
if [all_threads_running] then {
pass "All threads running after continuing from ^C stop"
}
- return 0
;
+ return 0
}
proc check_backtraces {} {
}
proc check_backtraces {} {
@@
-269,30
+247,27
@@
proc check_backtraces {} {
"set break at common_routine in thread 2"
gdb_test_multiple "continue" "continue to bkpt at common_routine in thread 2" {
"set break at common_routine in thread 2"
gdb_test_multiple "continue" "continue to bkpt at common_routine in thread 2" {
- -re "Breakpoint .* common_routine \\(arg=2\\).*" {
+ -re "Breakpoint .* common_routine \\(arg=2\\).*
$gdb_prompt $
" {
pass "continue to bkpt at common_routine in thread 2"
gdb_test "backtrace" \
"#0.*common_routine \\(arg=2\\).*#1.*thread2.*" \
"backtrace from thread 2 bkpt in common_routine"
}
pass "continue to bkpt at common_routine in thread 2"
gdb_test "backtrace" \
"#0.*common_routine \\(arg=2\\).*#1.*thread2.*" \
"backtrace from thread 2 bkpt in common_routine"
}
- -re "Breakpoint .* common_routine \\(arg=0\\).*" {
+ -re "Breakpoint .* common_routine \\(arg=0\\).*
$gdb_prompt $
" {
fail "continue to bkpt at common_routine in thread 2 (arg=0)"
}
fail "continue to bkpt at common_routine in thread 2 (arg=0)"
}
- -re "Breakpoint .* common_routine \\(arg=1\\).*" {
+ -re "Breakpoint .* common_routine \\(arg=1\\).*
$gdb_prompt $
" {
fail "continue to bkpt at common_routine in thread 2 (arg=1)"
}
}
}
fail "continue to bkpt at common_routine in thread 2 (arg=1)"
}
}
}
-setup_xfail "alpha-*-osf*"
if [runto_main] then {
if [runto_main] then {
- clear_xfail "alpha-*-osf*"
if [test_startup] then {
if [check_control_c] then {
warning "Could not stop child with ^C; skipping rest of tests.\n"
if [test_startup] then {
if [check_control_c] then {
warning "Could not stop child with ^C; skipping rest of tests.\n"
- return
;
+ return
}
check_backtraces
}
}
}
check_backtraces
}
}
-clear_xfail "alpha-*-osf*"
This page took
0.043151 seconds
and
4
git commands to generate.