Commit Graph

80 Commits

Author SHA1 Message Date
Jim Blandy f10b16d41f * gdb.threads/linux-dp.exp: Fix output regexp to handle output
under NPTL when there is debugging info available for libpthread.
2004-12-15 18:28:54 +00:00
Randolph Chung 8de0841b1c 2004-11-30 Randolph Chung <tausq@debian.org>
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name
	instead of "tbug".  Fix regexp to work properly with gdb_test.
2004-12-01 06:56:21 +00:00
Daniel Jacobowitz f073ae8c82 * gdb.threads/threadapply.exp: Correct "macro details" test. 2004-11-14 18:45:17 +00:00
Jeff Johnston 19ad59e76a 2004-11-11 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/threadapply.exp: New test.
        * gdb.threads/threadapply.c: New file.
2004-11-11 21:37:24 +00:00
Joel Brobecker 88f9d34f0c * gdb.threads/bp_in_thread.c: New file, copied from
pthread_cond_wait.c.
        * gdb.threads/bp_in_thread.c: Use bp_in_thread.c as the source
        file, rather than reusing the .c file from another testcase.
2004-10-29 21:35:20 +00:00
Jeff Johnston e1923096a1 2004-10-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/schedlock.c: Add comment markers to use to find
        line numbers.
        * gdb.threads/schedlock.exp: Adjust regex to handle the new
        comments.
        * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find
        breakpoint lines.
2004-10-12 22:49:17 +00:00
Orjan Friberg a271cc337c 2004-10-11 Orjan Friberg <orjanf@axis.com>
* gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead
	of "run", since the latter doesn't work with remote targets.  Adjust
	the breakpoint numbering accordingly.
	* gdb.threads/pthread_cond_wait.exp: Ditto.
2004-10-11 12:22:33 +00:00
Michael Chastain 2222769610 2004-09-14 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/killed.c: Include <stdlib.h>.
	* gdb.threads/pthreads.c: Likewise.
2004-09-14 20:28:25 +00:00
Michael Chastain 7dd403a4be 2004-09-14 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/killed.c: Add copyright notice.
2004-09-14 15:50:03 +00:00
Andrew Cagney c72b934c3a 2004-09-01 Andrew Cagney <cagney@gnu.org>
* gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
	files.
2004-09-01 18:02:45 +00:00
Manoj Iyer ce78e7c3cf Added new testcases:
* gdb.threads/thread_check.exp: New testcase.
	* gdb.threads/thread_check.c: New testcase.
2004-08-31 20:01:13 +00:00
Joel Brobecker 4b6f5fd267 * gdb.threads/bp_in_thread.exp: New testcase. 2004-08-27 14:28:15 +00:00
Michael Chastain e5b2549632 2004-08-27 Michael Chastain <mec.gnu@mindspring.com>
Fix PR testsuite/1735.
	* gdb.threads/schedlock.c (thread_function): Add a cast
	to suppress a gcc warning.
	* gdb.threads/thread-specific.c (thread_function): Likewise.
2004-08-27 11:13:28 +00:00
Michael Chastain a96404235b 2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/schedlock.c: Add copyright notice.
2004-08-26 13:10:19 +00:00
Jeff Johnston 5633ea5c9f 2004-07-27 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/watchthreads.exp: New test for threaded watchpoints.
2004-07-27 23:40:49 +00:00
Michael Chastain 51d01eda1d 2004-06-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/pthreads.exp: Update copyright years.
	(check_control_c): Change asynchronous 'after' to synchronous.
2004-06-04 23:27:50 +00:00
Michael Chastain 4013522b5c 2004-06-02 Michael Chastain <mec.gnu@mindspring.com>
Fix PR gdb/1636.
	* gdb.threads/manythreads.exp: Change asynchronous 'after'
	calls to synchronous.
2004-06-03 22:10:56 +00:00
Joel Brobecker 8b923272a9 * gdb.threads/pthread_cond_wait.c: New file.
* gdb.threads/pthread_cond_wait.exp: New testcase.
2004-05-19 21:41:03 +00:00
Jeff Johnston 1e9f977e1f 2004-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.threads/manythreads.c: Reduce thread stack size.
2004-04-23 19:01:17 +00:00
Jeff Johnston 899d9e3aac 2004-04-23 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/manythreads.c: Add copyright notice.
2004-04-23 18:50:35 +00:00
Jeff Johnston 7339a42e03 2004-04-22 Jeff Johnston <jjohnstn@redhat.com>
Daniel Jacobowitz  <drow@mvista.com>

        * gdb.threads/manythreads.c: New testcase.
        * gdb.threads/manythreads.exp: Ditto.
2004-04-22 22:19:40 +00:00
Daniel Jacobowitz 9cf689d7c7 * gdb.threads/thread-specific.exp: Stop early if no threads are
found.
2004-02-09 22:45:35 +00:00
Fred Fish 3ad1377116 Reviewed and approved by drow@mvista.com:
2004-02-01  Fred Fish  <fnf@redhat.com>
	* gdb.base/dump.exp: Use runto_main instead of "runto main".
	* gdb.base/finish.exp: Ditto.
	* gdb.base/gcore.exp: Ditto.
	* gdb.base/huge.exp: Ditto.
	* gdb.base/info-proc.exp: Ditto.
	* gdb.base/return2.exp: Ditto.
	* gdb.threads/gcore-thread.exp: Ditto.
2004-02-02 05:15:27 +00:00
Daniel Jacobowitz 44c7584953 * gdb.threads/thread-specific.exp: Add missing anchor to regexp. 2004-02-02 01:57:56 +00:00
Daniel Jacobowitz c47cebdbd2 * gdb.threads/thread-specific.c: New file.
* gdb.threads/threads-specific.exp: New test script.
	* lib/gdb.exp (gdb_test_multiple): Allow user patterns access
	to expect_out.
2004-02-01 18:04:37 +00:00
Elena Zannoni 19ac3974bc 2004-01-13 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/gcore-thread.exp: Prefix name of binary with
         test specific name.
         * gdb.mi/gdb669.exp: Ditto.
         * gdb.mi/mi-pthreads.exp: Ditto.
         * gdb.mi/mi1-pthreads.exp: Ditto.
         * gdb.mi/mi2-pthreads.exp: Ditto.
2004-01-13 17:08:03 +00:00
Michael Chastain c39d742707 2003-10-22 Michael Chastain <mec@shout.net>
* gdb.threads/pthreads.c: Add copyright notice.
2003-10-23 04:43:54 +00:00
Daniel Jacobowitz d1d69fdd54 * gdb.threads/killed.exp: Use gdb_run_cmd. 2003-10-13 16:32:51 +00:00
Daniel Jacobowitz 7d605576a6 * gdb.base/gcore.exp: Issue an UNSUPPORTED and exit if we can't
create a core file.
	* gdb.threads/gcore-thread.exp: Likewise.
2003-10-13 16:30:45 +00:00
Daniel Jacobowitz 5445b2aee4 * gdb.threads/switch-threads.exp: New test.
* gdb.threads/switch-threads.c: New source file.
2003-10-09 19:49:28 +00:00
Elena Zannoni e0f353ceed 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp,
        gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp,
        gdb.trace/save-trace.exp: Make sure that full pathnames are
        escaped correctly.
2003-08-07 17:55:41 +00:00
Elena Zannoni 5710a1afa9 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* configure.in: Don't generate config.h from config.hin.
        * configure: Regenerate.
        * config.hin: Remove file.
        * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs.
        * gdb.threads/pthreads.c: Ditto.
2003-08-07 17:49:22 +00:00
Michael Chastain 51514e061b 2003-07-29 Michael Chastain <mec@shout.net>
* gdb.threads/tls.c (spin): Check errno only if sem_wait
	actually failed.
	(do_pass): Likewise.
	* gdb.threads/tls.exp: Always initialize no_of_threads.
2003-07-29 21:51:25 +00:00
Daniel Jacobowitz 4ee6625b53 * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
pattern.
	* gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
	* gdb.threads/tls.exp: Recognize one case of the host library not
	supporting TLS.
2003-07-28 00:57:29 +00:00
Elena Zannoni e00759efb0 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.exp :Add kfail for 'info address' case.
2003-07-23 03:08:26 +00:00
Elena Zannoni 8bc2021fdc 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.c : New file.
        * gdb.threads/tls.exp : New file.
        * gdb.threads/tls-main.c : New file.
        * gdb.threads/tls-shared.c : New file.
        * gdb.threads/tls-shared.exp : New file.
2003-07-22 15:49:45 +00:00
Daniel Jacobowitz f56973f819 * gdb.threads/print-threads.exp (test_all_threads): Add kfail for
gdb/1265.
2003-06-29 19:29:42 +00:00
Jeff Johnston 85e851634c 2003-05-14 Jeff Johnston <jjohnstn@redhat.com>
Roland McGrath  <roland@redhat.com>
        * gdb.threads/linux-dp.exp: Account for fact that in nptl model
        there is no manager thread.
2003-05-14 19:36:56 +00:00
Jeff Johnston a25fbfec62 2003-05-08 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/schedlock.exp: Remove assumption that all threads
        will run in a particular small time slice.  Also ensure we break
        in one of the child threads rather than the main thread.
2003-05-08 19:23:29 +00:00
Elena Zannoni 5dd55bddfe 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/schedlock.c: Change type of thread function argument
	to long, to avoid warnings on 64-bit platforms.
2003-04-15 02:23:11 +00:00
Elena Zannoni 2a11c64dc4 2003-04-11 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/pthreads.exp (test_startup): When setting a breakpoint
        match on sourcefile name, instead of directory name.
2003-04-11 13:55:32 +00:00
Daniel Jacobowitz 8d77e5c3a8 * gdb.threads/killed.exp: Use KFAIL for gdb/568. 2003-01-14 18:13:11 +00:00
Daniel Jacobowitz 696d5a5b84 * Makefile.in (ALL_SUBDIRS): New variable.
(subdirs, clean, distclean): Use it.
	* gdb.arch/Makefile.in: Clean up Makefile.  Remove rules for
	regenerating Makefile, since it is generated from the top level.
	* gdb.asm/Makefile.in: Likewise.
	* gdb.base/Makefile.in: Likewise.
	* gdb.c++/Makefile.in: Likewise.
	* gdb.disasm/Makefile.in: Likewise.
	* gdb.java/Makefile.in: Likewise.
	* gdb.mi/Makefile.in: Likewise.
	* gdb.threads/Makefile.in: Likewise.
	* gdb.trace/Makefile.in: Likewise.
2003-01-09 18:50:28 +00:00
Daniel Jacobowitz b5ab8ff3a4 Fix PR gdb/844
* lib/gdb.exp (gdb_compile): Handle "quiet" option.
	(gdb_compile_pthreads): Pass "quiet" to gdb_compile.

	* gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads.  Return
	instead of calling gdb_suppress_entire_file.
	* gdb.threads/print-threads.exp: Likewise.
	* gdb.threads/schedlock.exp: Likewise.

	* gdb.threads/killed.exp: Return instead of calling
	gdb_suppress_entire_file.
	* gdb.threads/linux-dp.exp: Likewise.
	* gdb.threads/pthreads.exp: Likewise.
2003-01-04 23:05:05 +00:00
Mark Kettenis dc62bfc2fc * configure.in: Call AC_CONFIG_HEADER. Don't call
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace.  Call
AC_CHECK_HEADERS on pthread.h.  Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 15:37:40 +00:00
Daniel Jacobowitz 322b3f65ca * gdb.threads/schedlock.c (args): Make unsigned. 2002-10-23 03:22:56 +00:00
Jim Blandy 2f71430b46 * gdb.threads/killed.exp: Fix test failure message. 2002-09-05 19:45:11 +00:00
Jim Blandy 38fc42c80d * gdb.threads/killed.exp, gdb.threads/killed.c: New test. 2002-09-03 20:02:48 +00:00
Jim Blandy b6ff0e81ff * gdb.threads/pthreads.exp: Move the portable thread compilation
code into a function in lib/gdb.exp, and call that from here.
* lib/gdb.exp (gdb_compile_pthreads): New function.
2002-08-29 22:36:52 +00:00
Daniel Jacobowitz 0312286c94 * gdb.threads/print-threads.c: New file.
* gdb.threads/print-threads.exp: New file.
        * gdb.threads/schedlock.c: New file.
        * gdb.threads/schedlock.exp: New file.
2002-08-23 20:32:02 +00:00