Commit Graph

188 Commits

Author SHA1 Message Date
Michael Chastain 89a237cb65 2004-08-17 Michael Chastain <mec.gnu@mindspring.com>
* configure.in: Add gdb.fortran.
	* configure: Regenerate.
	* gdb.fortran/Makefile.in: New file.
	* lib/gdb.exp (skip_fortran_tests): New procedure.
2004-08-17 16:33:28 +00:00
Michael Chastain 78c9050252 2004-08-09 Michael Chastain <mec.gnu@mindspring.com>
* lib/cp-support.exp: New file.
	* lib/cp-support.exp (cp_test_type_class): New function.
	* gdb.cp/derivation.exp: Use cp_test_ptype_class.
	* gdb.cp/virtfunc.exp (test_one_ptype): Removed.
	* gdb.cp/virtfunc.exp (test_ptype_of_classes): Use
	cp_test_ptype_class.
2004-08-09 22:47:50 +00:00
Daniel Jacobowitz 04f6ecf279 PR gdb/1736
* lib/gdb.exp (gdb_test_multiple): Handle return -code return.
	* gdb.base/sigaltstack.exp (finish_test): Consume output until
	the prompt.
	* gdb.base/sigstep.exp: Add KFAIL for gdb/1736.
2004-08-09 13:16:16 +00:00
Michael Chastain c6fee70509 2004-08-08 Michael Chastain <mec.gnu@mindspring.com>
* lib/gdb.exp (gdb_get_line_number): Rewrite with native tcl
	rather than asking gdb to search.
2004-08-08 16:16:42 +00:00
Michael Chastain 46dad34018 2004-07-19 Michael Chastain <mec.gnu@mindspring.com>
* lib/java.exp: Update copyright notice.
2004-07-19 21:33:53 +00:00
Andrew Cagney 586027e615 2004-07-16 Andrew Cagney <cagney@redhat.com>
* lib/insight-support.exp: Delete file.
	* lib/java.exp (java_init): Fix copyright.
2004-07-17 02:03:00 +00:00
Martin Hunt d629a7cb0a 2004-07-14 Martin Hunt <hunt@redhat.com>
* lib/insight-support.exp (gdbtk_start): Unset TCL_LIBRARY
	which fixes some problems where init.tcl was not found.
2004-07-14 18:55:22 +00:00
Michael Chastain d205ad70f2 2004-07-02 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Accept __HP_CXD_SPP for old hp ansi c compiler.
	* lib/compiler.cc: Likewise.
2004-07-02 04:18:17 +00:00
Michael Chastain 06ea1a610f 2004-06-30 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.cc: Work around string preprocessing problem
	with old hp c++ compiler.
	* lib/compiler.c: Likewise.
2004-06-30 08:01:33 +00:00
Michael Chastain 4f70a4c95a 2004-06-14 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Remove gcc_compiled, hp_cc_compiler,
	hp_aCC_compiler.
	* lib/compiler.cc: Likewise.
	* lib/gdb.exp (get_compiler_info): Eval lines only if they are
	'set' commands.  Log diagnostics for other lines.  Set
	gcc_compiled, hp_cc_compiler, and hp_aCC_compiler.
2004-06-14 15:29:30 +00:00
Andrew Cagney 338e05af82 2004-06-10 Andrew Cagney <cagney@gnu.org>
* lib/compiler.cc, lib/compiler.c: Append either
	__GNUC_PATCHLEVEL__, or "unknown" to the compiler_info.
	* gdb.base/structs.exp (test_struct_calls): Check for gcc-3-3-*
	instead of gcc-3-3.
2004-06-10 21:38:03 +00:00
Joel Brobecker 734b8fe8d4 * lib/gdb.exp (gdb_test_multiple): Improve regexp matching the
GDB prompt.
2004-05-21 17:27:01 +00:00
Joel Brobecker d40d2c921c * lib/ada.exp: Add copyright notice.
* bar.ads: Likewise.
        * bar.adb: Likewise.
        * null_record.adb: Likewise.
        * null_record.exp: Likewise.
        * gnat_ada.gpr.in: Likewise. Fix typo in a comment, clarify another.
2004-04-01 18:42:08 +00:00
Joel Brobecker 414e70e3d0 * lib/ada.exp (gdb_compile_ada): Emit UNSUPPORTED if we failed
to build the application. Remove the message printed when in
        verbose mode, redundant with the UNSUPPORTED message above.
2004-04-01 17:45:48 +00:00
Joel Brobecker 034cb68144 * lib/ada.exp: New file. 2004-04-01 00:51:13 +00:00
Daniel Jacobowitz 78a1a89446 * gdb.base/gdb1250.exp: Use runto {allow-pending}.
* lib/gdb.exp (runto, gdb_breakpoint): Support {allow-pending}.
2004-03-24 18:41:50 +00:00
Jeff Johnston 9f27c60433 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Update query string to match
        new nquery format.
        * gdb.base/pending.exp: Ditto.
2004-02-23 19:27:46 +00:00
Andrew Cagney 5c5455dc1e 2004-02-10 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_expect_list): Recover from internal-errors
	using gdb_internal_error_resync.
2004-02-10 21:00:15 +00:00
Daniel Jacobowitz 14b1a05659 * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
breakpoints.
2004-02-08 22:30:42 +00:00
Daniel Jacobowitz 83f66e8f3b * config/sim.exp (gdb_load): Handle $arg == "".
* lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run.
	* gdb.objc/basicclass.exp: Use gdb_run_cmd.
2004-02-08 03:56:15 +00:00
Jeff Johnston 18fe20335a 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Add pending breakpoint
        support.
        * gdb.base/langs.exp: Fix test which attempts to create
        breakpoint on non-existent function to handle new pending
        support.
        * gdb.base/shlib-call.exp: Use gdb_breakpoint to set
        a breakpoint.
        * gdb.base/pending.exp: New test.
        * gdb.base/pending.c: New file.
        * gdb.base/pendshr.c: Ditto.
2004-02-02 21:14:33 +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
Michael Chastain 94b8e87660 2004-01-24 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Add hp_cc_compiler and hp_aCC_compiler.
	* lib/compiler.cc: Likewise.
	* lib/gdb.exp (get_compiler_info): Always call gdb_compile to
	get the right preprocessor.  Eval the output directly.  Remove
	special tests for hp_cc_compiler and hp_aCC_compiler.  Remove
	hp_f77_compiler and hp_f90_compiler completely.
	(gdb_preprocess): Delete.
	(get_compiler): Delete.
2004-01-24 21:59:03 +00:00
Daniel Jacobowitz da6012e52d * config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
Remove downloading, guessing the host executable, the calls to
	gdb_file_cmd and gdb_target_cmd, and "load" support.
	(infer_host_exec): New function broken out from gdb_load.
	(gdb_load): New wrapper for gdbserver_gdb_load.
	* lib/mi-support.exp (mi_gdb_target_cmd): New function, based on
	gdb_target_cmd.  Use -target-select.
	(mi_gdb_file_cmd): New function, broken out from mi_gdb_load.
	Download binaries to the host.  Clear last_mi_remote_file when
	we load a new binary.
	(mi_gdb_load): Call mi_gdb_file_cmd.  If gdbserver.exp is loaded,
	call gdbserver_gdb_load and mi_gdb_target_cmd.
2004-01-18 15:23:30 +00:00
Elena Zannoni 1f8a6abba1 2004-01-12 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/sepdebug.exp: New file.
	* gdb.base/sepdebug.c: New file.
	* lib/gdb.exp (separate_debug_filename): New procedure.
	(gdb_gnu_strip_debug): New procedure.
2004-01-12 17:20:41 +00:00
Michael Chastain 0643ec3f3c 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.cc: Remove supports_template_debugging.
	* gdb.cp/templates.exp: Do not test supports_template_debugging.
2004-01-02 23:20:51 +00:00
Andrew Cagney d422fe19c6 2003-11-22 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_test_multiple): Add simple example.
	* gdb.base/structs.exp: Use gdb_test_multiple.
2003-11-23 01:09:19 +00:00
Andrew Cagney 2b211c59a2 2003-11-20 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_internal_error_resync): Issue a perror when the
	resync count exceeded.
2003-11-20 15:58:08 +00:00
Andrew Cagney 039cf96dc4 2003-11-20 Andrew Cagney <cagney@redhat.com>
* gdb.base/maint.exp: Use gdb_internal_error_resync to recover
	from the internal error.
	* lib/gdb.exp (gdb_internal_error_resync): New procedure.
	Original from Jim Blandy.
	(gdb_test_multiple): Use gdb_internal_error_resync.
2003-11-20 15:36:34 +00:00
Andrew Cagney 853d6e5b6d 2003-11-17 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (compiler_info): New global.
	(test_compiler_info): New function.
	(get_compiler_info): Set compiler_info.
	* lib/compiler.c, lib/compiler.cc: Add copyright.  When GNUC, set
	"compiler_info" to gcc-<major>-<minor>.
2003-11-17 15:00:20 +00:00
Richard Earnshaw 594e6d67cd * lib/java.exp (java_init): Import target_alias before using it. 2003-09-25 16:25:56 +00:00
Daniel Jacobowitz 1df0c130e8 * lib/mi-support.exp (mi_run_cmd): Expect an MI response to
000-exec-continue.
2003-06-22 00:04:27 +00:00
Adam Fedor 130cacceca * Makefile.in (ALL_SUBDIRS): Add gdb.objc
* configure.in (AC_OUTPUT): Add gdb.objc/Makefile
* gdb.objc/Makefile.in, gdb.objc/basicclass.exp,
gdb.objc/basicclass.m: : New files

* lib/gdb.exp (gdb_compile_objc): New procedure.
2003-05-01 01:09:51 +00:00
Andrew Cagney ed4c619a67 2003-04-02 Andrew Cagney <cagney@redhat.com>
* gdb.base/callfuncs.exp: Make "print add" messages unique.
	* gdb.base/ending-run.exp: Put spaces around "breakpoint" to stop
	matching directories by the name breakpoint.
	* gdb.base/pointers.exp: Make "ptype pppC" message consistent.
	Make "continue to marker1" consistent.
	* gdb.base/call-rt-st.exp: Make "finish out from loop_count"
	message consistent.
	* lib/gdb.exp: Put "the program is no longer running", and "the
	program exited" in parenthesis.
	* lib/mi-support.exp: Ditto.
2003-04-03 16:34:48 +00:00
Stephane Carrez 1146c7f1ab * lib/gdb.exp: Don't execute C++ tests on m6811/m6812 targets. 2003-02-23 22:11:07 +00:00
Mark Salter b53f9b27af Support remote targets. 2003-01-31 13:11:26 +00:00
Michael Chastain 38a94d4494 2003-01-30 Michael Chastain <mec@shout.net>
* lib/gdb.exp: Revert patch of 2003-01-06, which set LC_ALL.
	This was a workaround for a UTF-8 bug in readline 4.3.  The bug
	has been fixed in gdb/readline on 2003-01-09.
2003-01-31 00:39:28 +00:00
Daniel Jacobowitz 2307bd6a50 * gdb.exp (gdb_test_multiple): New function, cloned from
gdb_test.  Accept a list of expect arguments as the third
	parameter.
	(gdb_test): Use it.
2003-01-23 01:35:21 +00:00
Andreas Schwab 8e9e0fe6da * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite
failures.
2003-01-06 18:10:32 +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
Jeff Johnston da81390ba6 2002-12-16 Jeff Johnston <jjohnstn@redhat.com>
* lib/mi-support.exp (mi_reinitialize_dir): Check mi level
        to see whether we are using the new -environment-directory
        command which resets via -r or the old version of the command
        which may prompt the user.  Part of fix for gdb/741.
2002-12-16 20:03:17 +00:00
Andrew Cagney b304d13005 Remove obsolete testsuite code. 2002-12-16 19:33:54 +00:00
Jim Blandy f1c8a9492e * lib/mi-support.exp (mi_delete_breakpoints): Change name of
function appearing in error message.
2002-11-25 19:54:09 +00:00
Jim Blandy f81a4d0bea Revert previous change --- the hour was late, and I was confused about
its status.
2002-11-22 19:07:28 +00:00
Jim Blandy b6d3ce7015 * gdb.base/step-line.exp: Check that GDB can handle filenames that
appear in the line number info, but not in the preprocessor macro
info.

* lib/gdb.exp (gdb_internal_error_regexp): New variable.
(gdb_internal_error_resync): New procedure.
(gdb_test): If the command results in an internal error,
answer GDB's questions until we get back to a prompt.
2002-11-22 07:00:37 +00:00
Jeff Johnston 1f312e798b 2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
* lib/mi-support.exp (mi_gdb_start): Verify the startup message
        for mi1 and current mi is in correct format.  New mi startup message
        should be in mi console format.  This is part of fix for PR gdb/604.
2002-11-08 20:37:50 +00:00
Keith Seitz 9e8aab7587 * lib/insight-support.exp (gdbtk_start): Figure out where
the insight executable is based on where gdb is. Use this
        executable to start insight instead of gdb.
2002-09-27 14:49:26 +00:00
Corinna Vinschen 11350d2a6f * lib/gdb.exp (rerun_to_main): Allow restarting application.
* gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.
2002-09-18 15:34:10 +00:00
Corinna Vinschen 1c56143ab1 * lib/gdb.exp (gdb_continue_to_end): Fix typo in expected string. 2002-09-13 17:20:11 +00:00
Keith Seitz 08b468e0c5 * lib/mi-support.exp (mi_runto): New proc. Does the same as gdb's
runto proc.
        (mi_run_to_main): Use mi_runto.
        (mi_execute_to): Renamed from mi_run_to. Changed all callers.
2002-09-10 22:28:19 +00:00