Patch
Index: testsuite/lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.24
diff -p -r1.24 gdb.exp
*** testsuite/lib/gdb.exp 29 Aug 2002 22:36:52 -0000 1.24
--- testsuite/lib/gdb.exp 3 Sep 2002 18:51:29 -0000
*************** proc gdb_compile {source dest type optio
*** 1176,1182 ****
# against several different thread libraries, to see which one this
# system has.
proc gdb_compile_pthreads {source dest type options} {
! set build_binfile 0
set why_msg "unrecognized error"
foreach lib {-lpthreads -lpthread -lthread} {
# This kind of wipes out whatever libs the caller may have
--- 1176,1182 ----
# against several different thread libraries, to see which one this
# system has.
proc gdb_compile_pthreads {source dest type options} {
! set built_binfile 0
set why_msg "unrecognized error"
foreach lib {-lpthreads -lpthread -lthread} {
# This kind of wipes out whatever libs the caller may have
*************** proc gdb_compile_pthreads {source dest t
*** 1201,1207 ****
}
}
}
! if {$built_binfile == "0"} {
unsupported "Couldn't compile $source: ${why_msg}"
return -1
}
--- 1201,1207 ----
}
}
}
! if {!$built_binfile} {
unsupported "Couldn't compile $source: ${why_msg}"
return -1
}