]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.hp/gdb.threads-hp/usrthfork.exp
* target.c (debug_print_register): New function. Handle oversize
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / gdb.threads-hp / usrthfork.exp
1 # OBSOLETE # user_th_basic.exp -- Expect script to test gdb with user threads
2 # OBSOLETE # Copyright (C) 1992 Free Software Foundation, Inc.
3 # OBSOLETE
4 # OBSOLETE # This program is free software; you can redistribute it and/or modify
5 # OBSOLETE # it under the terms of the GNU General Public License as published by
6 # OBSOLETE # the Free Software Foundation; either version 2 of the License, or
7 # OBSOLETE # (at your option) any later version.
8 # OBSOLETE #
9 # OBSOLETE # This program is distributed in the hope that it will be useful,
10 # OBSOLETE # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # OBSOLETE # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # OBSOLETE # GNU General Public License for more details.
13 # OBSOLETE #
14 # OBSOLETE # You should have received a copy of the GNU General Public License
15 # OBSOLETE # along with this program; if not, write to the Free Software
16 # OBSOLETE # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 # OBSOLETE
18 # OBSOLETE # Please email any bugs, comments, and/or additions to this file to:
19 # OBSOLETE # bug-gdb@prep.ai.mit.edu
20 # OBSOLETE
21 verbose "HP's thread tests are broken beyond repair right now."
22 return 0
23 # OBSOLETE
24 # OBSOLETE if $tracelevel {
25 # OBSOLETE strace $tracelevel
26 # OBSOLETE }
27 # OBSOLETE
28 # OBSOLETE if { ![istarget "hppa*-*-hpux*"] || [istarget "hppa64-*-*"] } {
29 # OBSOLETE verbose "HPUX thread test ignored for non-hppa or PA64 targets."
30 # OBSOLETE return 0
31 # OBSOLETE }
32 # OBSOLETE
33 # OBSOLETE set testfile usrthfork
34 # OBSOLETE set srcfile ${srcdir}/${subdir}/${testfile}.c
35 # OBSOLETE set binfile ${srcdir}/${subdir}/${testfile}
36 # OBSOLETE
37 # OBSOLETE # To build the executable we need to link against the thread library.
38 # OBSOLETE #
39 # OBSOLETE # /opt/ansic/bin/cc -Ae -g -o usrthfork -lcma usrthfork.c
40 # OBSOLETE #
41 # OBSOLETE ## we have trouble building it on 11.0, so we use the prebuilt
42 # OBSOLETE ## executable instead.
43 # OBSOLETE ##
44 # OBSOLETE ##if { [gdb_compile "${srcdir}/${subdir}/${testfile}.c" "${binfile}" executable {debug additional_flags=-Ae ldflags=-lcma}] != "" } {
45 # OBSOLETE ## gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
46 # OBSOLETE ##}
47 # OBSOLETE
48 # OBSOLETE #=========================
49 # OBSOLETE #
50 # OBSOLETE # Test looking at threads.
51 # OBSOLETE #
52 # OBSOLETE gdb_exit
53 # OBSOLETE gdb_start
54 # OBSOLETE gdb_reinitialize_dir $srcdir/$subdir
55 # OBSOLETE gdb_load ${binfile}
56 # OBSOLETE
57 # OBSOLETE gdb_test "set follow-fork-mode parent" ".*" "set follow-fork-mode parent"
58 # OBSOLETE gdb_test "b main" "Breakpoint 1.*" "b main"
59 # OBSOLETE gdb_test "run" "Breakpoint 1, main.*:8.*" "run to main"
60 # OBSOLETE ##gdb_test "next" \
61 # OBSOLETE ## ".*New process.*Detaching after fork from process.*13.*parent.*" \
62 # OBSOLETE ## "next on CMA fork"
63 # OBSOLETE send_gdb "next\n"
64 # OBSOLETE gdb_expect {
65 # OBSOLETE -re ".*Detaching after fork from.*$gdb_prompt $" {
66 # OBSOLETE pass "next on CMA fork"
67 # OBSOLETE }
68 # OBSOLETE -re ".*$gdb_prompt $" { fail "next on CMA fork" }
69 # OBSOLETE timeout { fail "(timeout) next on CMA fork" }
70 # OBSOLETE }
71 # OBSOLETE exec sleep 1
72 # OBSOLETE
73 # OBSOLETE gdb_exit
74 # OBSOLETE
75 # OBSOLETE return 0