Commit Graph

1261 Commits

Author SHA1 Message Date
Orjan Friberg 6bae5bceb3 2001-03-16 Orjan Friberg <orjanf@axis.com>
* gdb.base/signals.exp: Set count to 0 explicitly.
2001-03-16 09:05:16 +00:00
Orjan Friberg b7844da629 2001-03-16 Orjan Friberg <orjanf@axis.com>
* gdb.base/signals.exp: Set count to 0 explicitly.
2001-03-16 08:57:44 +00:00
Mark Salter 880a15ee85 *** empty log message *** 2001-03-15 21:47:38 +00:00
Mark Salter f949823c68 (gdb_load): Add support for additional target_info: gdb_download_size
and gdb_load_timeout.
2001-03-15 21:46:57 +00:00
Mark Salter 0015fd9aa4 *** empty log message *** 2001-03-15 18:51:56 +00:00
Mark Salter 269a569e35 (gdb_target_cmd): Add explicit error return.
(gdb_target_monitor): Add check of gdb_target_cmd return value.
2001-03-15 18:51:25 +00:00
David Taylor fc33412a6a * gdb.base/annota1.exp: Move test of isnative to earlier in the
file -- to prevent failing when the compile fails but we have no
 	intention of running the tests anyway.

	* gdb.base/long_long.exp: Test target_info for no_long_long, skip
	tests if set.

	* gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
 	integers.

	* gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
	* gdb.c++/namespace.exp: Ditto.

Fix PR gdb/16.
2001-03-08 21:09:23 +00:00
Orjan Friberg 115f06de3d 2001-03-07 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
2001-03-07 17:29:58 +00:00
Orjan Friberg 1b3c55407c 2001-02-26 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
2001-03-07 17:21:43 +00:00
Kevin Buettner b6ba6518e9 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
Michael Chastain 60e012f18d Reverted revision 1.2. 2001-03-05 23:40:47 +00:00
Michael Chastain 997079667f Revert revisions 1.81, 1.82, 1.83, 1.84, and 1.85. 2001-03-05 23:37:38 +00:00
Michael Chastain 6cd43bc59e Obvious fix: in an entry for 1997-02-01, expand wildcard to explicit
list of files actually modified.
2001-03-04 22:23:30 +00:00
Michael Chastain af6704f764 Obvioux fix: in an entry for 1997-06-29, expand wildcard to explicit
list of files actually modified.
2001-03-04 22:08:49 +00:00
Michael Chastain 5adc7e6d3b Obvious fix: in an entry for 1997-09-10, expand wildcard to explicit
list of files actually modified.
2001-03-04 21:41:15 +00:00
Michael Chastain 7f8890b962 Obvious fix. Add missing ChangeLog entry for gdb.c++/ovldbreak.exp
change on 2001-01-28.  Embarrassing!
2001-03-04 21:23:05 +00:00
Michael Chastain f48893aa08 Obvious fix: in an entry for 2001-02-11, change "gdb.base/cplusfuncs.exp"
to "gdb.c++/cplusfuncs.exp".
2001-03-04 21:15:17 +00:00
Michael Chastain 15744ab16c Obvious fix: in an entry for 1997-02-23, expand wildcard to explicit
list of files actually modified.
2001-03-04 20:26:44 +00:00
Michael Snyder dc96c6c7af [fix my email address in changelog entries] 2001-03-01 22:18:45 +00:00
Michael Snyder d8f92b1f63 2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/varargs.c (find_max_double): Fix printf format string:
	first arg is int not float.
2001-02-28 01:54:47 +00:00
Michael Snyder 40f33b9b8e 2001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/reread.exp: Unsupported for non-native targets;
	doesn't work for remote debugging.
2001-02-23 19:04:40 +00:00
Fernando Nasser 9b0c4aebb4 2001-02-19 Fernando Nasser <fnasser@redhat.com>
From  Drew Moseley  <dmoseley@redhat.com>
        * gdb.base/ending-run.exp: Properly handle the BSP state when
        stepping past the end of main.
2001-02-19 21:48:52 +00:00
Michael Chastain 02aa71d5de 2001-02-19 John Moore <jmoore@redhat.com>
* gdb.base/commands.exp (infrun_breakpoint_command_test):
	Converted HPUX fix for non-expected items following multiple
	step commands into general solution for all platforms.
2001-02-19 20:44:27 +00:00
Michael Chastain 1fa449a475 2001-02-18 Michael Chastain <chastain@redhat.com>
* gdb.c++/classes.exp (do_tests): Change runto statements
	from "runto 'foo(void)'" to "runto 'foo'".  This makes the
	statements demangler agnostic.
	* gdb.c++/virtfunc.exp (do_tests): Likewise.
	(gdb_virtfunc_restart): Likewise.
2001-02-18 19:59:57 +00:00
Michael Chastain b2f9ec70af 2001-02-14 Michael Chastain <chastain@redhat.com>
* gdb.c++/inherit.exp (do_tests): Change runto statements
	from "runto 'foo(void)'" to "runto 'foo'".  This makes the
	statements demangler agnostic.
2001-02-18 07:10:32 +00:00
Andrew Cagney cf74b8caf7 Make thread messages more consistent in pass/fail cases. 2001-02-15 05:32:12 +00:00
Michael Chastain 99f78f560a 2001-02-11 Michael Chastain <chastain@redhat.com>
* gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
	Helps the test script figure out which demangler is in use.
	(dm_type_foo_ref): Ditto.
	(dm_type_int_star): Ditto.
	(dm_type_long_star): Ditto.
	(dm_type_unsigned_int): Ditto.
	(dm_type_void): Ditto.
	(dm_type_void_star): Ditto.
	* gdb.base/cplusfuncs.exp (probe_demangler): New function.
	Probe the gdb demangler and set variables to accommodate
	formatting differences.
	(info_func_regexp): New function.  Same as info_func, but
	matches against a regexp.
	(info_func): Match against a literal string.
	(print_addr_2): New function.  Match against a literal string,
	which can be different from the input to gdb.
	(print_addr): Simply call print_addr_2 with the same argument twice.
	(test_lookup_operator_functions): Use demangler formatting variables.
	Blow away the xfails and workarounds for gnats gdb bug gdb/18.  Sort
	the tests in the same order as the C++ class declaration.
	(test_paddr_operator_functions): Ditto.
	(test_paddr_overloaded_functions): Ditto.
	(test_paddr_hairy_functions): Use demangler formatting variables.
	Add reference to gdb/19 for related tests.
	(do_tests): Call probe_demangler.
2001-02-14 19:54:04 +00:00
Kevin Buettner 7b769fb03b Replace blanked lines from earlier commit with comment stating that
the reason why the space is empty.
2001-01-30 22:18:21 +00:00
Kevin Buettner 1de8f0232c Remove unused printf() definition. 2001-01-30 16:45:23 +00:00
Michael Chastain f8bf377815 Removed files structs3.c structs3.exp.
These were added by accident.  Whoops!
2001-01-30 04:48:50 +00:00
Michael Chastain c9049fc98f 2001-01-29 Michael Chastain <chastain@redhat.com>
* symtab.c (block_lookup_symbol): Use 'namespace' parameter in
	symbol comparisons in binary search.
2001-01-30 02:49:36 +00:00
Michael Chastain b2bbed47aa 2001-01-28 Michael Chastain <chastain@redhat.com>
* gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc
	to call when tests fail.  It takes gdb out of the overloaded
	function choice menu back to the main prompt, so that the test
	program stays synchronized.
	(set_bp_overloaded): New proc to collect all the common
	code for setting a breakpoint on an overloaded name.  Calls
	take_gdb_out_of_choice_menu when needed.
	(menu_overload1arg): New variable to collect the repeated
	instances of the expected menu for an overloaded name.	Change
	the regular expression to handle changes in g++ type encoding:
	"void" can be either "void" or "", and "unsigned int" can be
	either "unsigned int" or "unsigned".
	(continue_to_bp_overloaded): Change regular expressions to handle
	changes in g++ type encoding.
	(no proc): Call take_gdb_out_of_choice_menu when needed.
	Remove redundant calls to "info break".  Accept either "canceled"
	or "cancelled".  Change regular expressions in "info break"
	calls to handle changes in g++ type encoding.  Give all tests
	unique strings.
2001-01-28 23:49:43 +00:00
Mark Kettenis 7d76bd60cf * mi-support.exp (mi_gdb_start): Skip mi tests if -i flag is
recognized (i.e. if GDB was compiled with UI_OUT, but the mi
interpreter wasn't recognized (because it wasn't compiled in).
2001-01-21 15:07:05 +00:00
Ben Elliston 9c646a6e13 2001-01-17 Ben Elliston <bje@redhat.com>
* config/sid.exp: New file.
2001-01-16 23:03:19 +00:00
Andrew Cagney 9549d9c176 Restore missing space lost when switching to UI_OUT. 2001-01-12 09:45:57 +00:00
Michael Snyder 315f8b0e91 2000-12-21 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
        Add a RE to accept a non-ascii char if one is ever presented.
2000-12-22 01:49:46 +00:00
Fernando Nasser 297dd0fd54 Fix typo on last entry. 2000-12-20 21:26:14 +00:00
Fernando Nasser b4df4f6849 2000-12-20 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code
        to be compiled.  Defines UI_OUT.
        (SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT.
        (INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS.
        * configure.in (UIOUT_CFLAGS): New configuration variable.
        (--with-uiout): New configuration option.  Causes uiout code to
        be compiled, instead of the old *printf one.
        * configure: Regenerate.
        * top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT.
        * testsuite/lib/mi-support.exp (mi_gdb_start): Test for MI_OUT,
        not UI_OUT.
2000-12-20 21:24:28 +00:00
Michael Snyder 49c890fc5e 2000-12-18 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/setvar.exp: Use double '\\' to quote curly braces
        in regexp.  One '\' does not suffice on Linux.
2000-12-20 16:29:27 +00:00
Michael Chastain 4a7bddb62e 2000-12-09 Michael Chastain <chastain@redhat.com>
* gdb.base/break.exp (test_clear_command): Use a marker function
	rather than 'main' for the test function.  Also move this
	test to an execution point where the marker function names are
	guaranteed to be bound to functions.  (Executing tests after a
	'finish' from main runs into name conflicts with local names
	in __libc_start_main).
2000-12-09 22:35:05 +00:00
Michael Snyder efb663452c 2000-12-07 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/finish.exp: New test for gdb's "finish" command.
        * gdb.base/return2.exp: New test for gdb's "return" command.
        * gdb.base/return2.c: New source file for above.
2000-12-08 19:30:32 +00:00
Michael Snyder 3c077de93f 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:57:36 +00:00
Michael Snyder 660fd4696e 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Test result of "up" command.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.base/scope.exp:     Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:14:40 +00:00
Fernando Nasser 44097287e5 2000-11-22 Michael Chastain <chastain@redhat.com>
* mips_pro.exp: Accept either "middle -> top -> main" or
	"middle -> main" in the backtrace, because gcc can optimize
	tail calls to jumps.  Remove setup_xfail for the hppa case.
	Add a comment with the original warning messages from PR 3016,
	which was filed in 1993, to preserve them for posterity.
2000-11-28 22:53:38 +00:00
Nicholas Duffek 9d2e1bab9d * lib/gdb.exp (gdb_test): Override timeout with board info. 2000-11-17 17:16:24 +00:00
Nicholas Duffek 1aca8eb7fa * gdb.base/display.exp: Don't kill running stub. Add "again" to
the second kill and detach messages.
2000-11-17 17:13:33 +00:00
Nicholas Duffek 930764990d * configure.in: Add AC_EXEEXT.
* configure: Regenerate.
	* Makefile.in (just-check): Export EXEEXT.
	* lib/gdb.exp ($EXEEXT): Import from environment.
	* gdb.base/maint.exp: Expect $EXEEXT in executable name.  Don't
	expect "maint dump-me" on Cygwin.
	* gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
	$EXEEXT.
2000-11-17 16:37:48 +00:00
Nicholas Duffek 30e87cd372 * gdb.base/break.exp: Test backtrace and finish from called
function on all platforms, not just HP-UX.
2000-11-17 16:24:48 +00:00
Michael Snyder 08e706b15a 2000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/monitor.exp (gdb_target_cmd): Abstracts some of the
        code from gdb_target_monitor, so it can be used independantly
        for gdbserver.  Also comment out an unnecessary PUTS.
2000-11-14 22:19:02 +00:00
Michael Snyder 958a4e4cde 2000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
        * gdb.base/corefile.exp: Expect the message "Program is being
        debugged already" when we send the "corefile" command, since
        the preceeding gdb_load may have connected gdb to a remote target.
        * gdb.base/display.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.
        Replace single-letter commands with more readable ones.
        * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
        if new board info variable "no_hardware_watchpoints" is true.
        * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
        to see if stdio (printf) testing is possible.
        * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.  Use new
        proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2000-11-14 22:12:26 +00:00
Fernando Nasser 39124deab4 2000-11-13 Fernando Nasser <fnasser@redhat.com>
From Orjan Friberg  <orjanf@axis.com>:
        * gdb.base/printcmds.exp: Escape curly braces followed by a number
        in array print pattern match.
2000-11-14 02:36:22 +00:00
Fernando Nasser a9e2e984e2 2000-11-09 Fernando Nasser <fnasser@redhat.com>
* gdb.c++/templates.exp (test_template_breakpoints): Change Britsh
        spelling "cancelled" to U.S. spelling "canceled" to match changes
        made to gdb.
        * gdb.c++/ovldbreak.exp: Ditto.
2000-11-09 23:29:20 +00:00
Peter Schauer c7db355bcd * gdb.base/callfuncs.c (main): Moved to end of file, call
t_double_values to initialize the FPU before inferior calls are made.
	* gdb.base/callfuncs.exp:  Test for register preservation after calling
	inferior functions.  Add tests for continuining, finishing and
	returning from a stop in a call dummy.
2000-11-06 20:38:02 +00:00
Michael Snyder 42f5c13f56 2000-10-24 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/commands.exp: Break up long lines, and re-indent.
2000-10-24 18:36:32 +00:00
Michael Snyder ae0323a862 2000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/gdbserver.exp:  Rewritten from the ground up, to make it
        compatible with the current dejagnu tree, and to make it work with
        the new "gdbserver" in libremote.
2000-10-19 21:46:42 +00:00
Michael Snyder 13a5e3b841 2000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* lib/gdb.exp (gdb_skip_float_test): New proc.  Skip test if
        no floating point support.
        (gdb_skip_stdio_test): New proc.  Skip test if no stdio support.
        * gdb.base/call-ar-st.exp: Use above procs to skip tests.
        * gdb.base/call-rt-st.exp: Ditto.
        * gdb.base/call-strs.exp: Ditto.
        * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
        * gdb.base/varargs.exp: Skip entire test if no printf support.
        * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
        * gdb.base/shlib-call.exp: Skip several tests if no printf support.
2000-10-17 20:00:21 +00:00
Jimmy Guo c946fab65c * gdb.hp/gdb.aCC/namespace.exp: Remove. Moved to gdb.c++.
* gdb.hp/gdb.aCC/namespace.cc: Remove.	Moved to gdb.c++.
2000-08-03 00:47:59 +00:00
Jimmy Guo bac5fc66f2 * gdb.base/sizeof.c: include <stdio.h>. 2000-08-02 22:13:01 +00:00
Jimmy Guo 73d28ce1c1 * gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
'finish', otherwise uncaptured gdb_prompt would potentially
throw remaining test points out of sync.
2000-08-02 22:10:10 +00:00
Scott Bambrough b22a602753 2000-07-26 Scott Bambrough <scottb@netwinder.org>
* gdb.base/recurse.exp: Run tests for all targets.
	* gdb.base/so-impl-ld.exp: Added wildcard to handle the
	gnu-oldld case on ARM.
	* gdb.base/watchpoint.exp (test_stepping): Clear xfail
	for ARM targets.
2000-07-28 20:17:28 +00:00
Anthony Green d8231941c0 * gdb.java/configure.in (AC_INIT): Use jmisc.exp.
* gdb.java/configure: Rebuild.
2000-07-24 14:44:16 +00:00
Anthony Green 8caabe694f * language.c: Include jv-lang.h.
(lang_bool_type): Add case for java booleans.

And in testsuite...

	* gdb.java/jv-exp.exp: New file.
2000-07-24 05:04:19 +00:00
Anthony Green 9d273ca387 * configure: Rebuilt.
* configure.in (configdirs): Add gdb.java.
	* gdb.java/jmisc.java: New file.
	* gdb.java/jmisc.exp: New file.
	* gdb.java/Makefile.in: New file.
	* gdb.java/configure: Rebuilt.
	* gdb.java/configure.in: New file.
	* lib/java.exp: New file.
2000-07-24 04:34:52 +00:00
Andrew Cagney 4f823a66fa * gdb.base/exprs.exp: Test casts to a pointer including over and
underflow.
2000-07-17 02:56:12 +00:00
Andrew Cagney c8e2a5aa11 Oops, one to many ChangeLog entries. 2000-07-13 07:57:34 +00:00
Andrew Cagney 2391e11d3a Check that GDB and the C compiler agree about the sizeof a few basic C
types.
2000-07-13 05:07:54 +00:00
Nicholas Duffek 546022221a * gdb.c++/misc.cc (class ClassParam, class_param): Define.
(use_methods): New function.
	(main): Call use_methods().
	* gdb.c++/classes.exp (test_method_param_class): New procedure.
	(do_tests): Call test_method_param_class.
2000-07-09 05:16:11 +00:00
Nicholas Duffek 2bec05724f * gdb.c++/classes.exp (test_nonexistant_members): Fix name
spelling.
	(test_enums): New procedure.  Move enum tests from end of script
	to here.  Set breakpoint on function name instead of line number.
	* gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions.
	(enums2): New marker function.
	(enums1): New function.
	(main): Call enums1().  Move enum tests to enums1().
2000-07-09 05:10:13 +00:00
Andrew Cagney 78492fde3d Rewrite gdb.asm so that it doesn't assume a C comiler (or any C
support).
2000-07-04 02:47:08 +00:00
Andrew Cagney 49a2cef8b7 Replace jumbo pattern match with gdb_expect_list(). 2000-07-04 02:38:05 +00:00
Elena Zannoni 3e6c8688d2 2000-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/maint.exp: Add 'maint print architecture' item to output
        of 'help maint print' command.
2000-06-19 14:56:21 +00:00
Andrew Cagney 9ff5cbe93a Re-do multi-line tests using gdb_expect_list(). 2000-06-18 03:45:35 +00:00
Michael Snyder 7346e70f2e 2000-06-02 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/annota1.exp (run until main breakpoint): Loosen up
       the regular expression: accept an (almost) arbitrary sequence of
       "frames-invalid" and "breakpoints-invalid" messages both before
       and after the "starting" message.
2000-06-12 20:34:00 +00:00
Daniel Berlin 66a55e80fc Forgot a file 2000-06-12 01:31:41 +00:00
Andrew Cagney 17c579bd62 Use ``set remote memory-read-packet-size'' instead of ``set endian
big'' in deprecate test.
2000-06-07 04:14:02 +00:00
Michael Snyder e5f9ba7b27 2000-06-02 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.c++/local.exp: This test has never been known to work with g++.
2000-06-06 20:17:13 +00:00
Daniel Berlin 55b13a653e Revert an accidental commit 2000-06-06 00:38:10 +00:00
Daniel Berlin e6d71bf34e New tests, fix old tests, make more tests work 2000-06-05 20:47:28 +00:00
Michael Snyder 0a791409a5 2000-05-18 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/annota1.exp (annotate-signal-handler-caller):
      Relax the regular expression a little, make it pass on Solaris 8.
2000-05-24 17:14:50 +00:00
Michael Snyder 1a570b2f5f 2000-05-12 Michael Snyder <msnyder@.cygnus.com>
* gdb.base/break.exp (bp on small function, optimized file):
        Add a second pass pattern.  The behavior differs here between stabs
        and dwarf for one-line functions.  Stabs preserves two line symbols
        (one before the prologue and one after) with the same line number,
        but dwarf regards these as duplicates and discards one of them.
        Therefore the address after the prologue (where the breakpoint is)
        has no exactly matching line symbol, and GDB reports the breakpoint
        as if it were in the middle of a line rather than at the beginning.
2000-05-17 17:10:19 +00:00
Kevin Buettner 8216cda9b4 For IA-64, allow ``finish'' to land on caller rather than on next executable
line after the caller.
2000-05-13 01:38:05 +00:00
Michael Snyder 89cb06a200 2000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/interrupt.exp: Make "pass" message say "send"
        rather than "send_gdb" (for consistancy).
2000-05-08 22:18:05 +00:00
Michael Snyder e919ea793d 2000-04-28 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/break.exp: When compiled with -O2 optimization,
        gdb may not stop at the first line of main, due to code motion.
2000-05-05 21:50:23 +00:00
Andrew Cagney 7d4187854f From 2000-04-28 Andreas Jaeger <aj@suse.de>:
Properly check for GCC version number.
2000-05-01 05:45:36 +00:00
Michael Snyder 1960c4001c 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/call-ar-st.exp: Bail out if target is sparclet.
        This test depends on parsing the printf output from the target.
        Since the sparclet stub doesn't do stdio, this will never work.
        * gdb.base/call-rt-st.exp: ditto.
        * gdb.base/call-strs: ditto.
2000-04-27 00:45:19 +00:00
Michael Snyder b84b7669fb 2000-04-24 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/miscexprs.exp: make sizeof long array test portable.

        * gdb.base/ending-run.exp: After connecting to a remote target,
        but before running, the target will appear to be in a random
        location.  Specify both a file and a line for breakpoints.
        Also, the function that calls main may be called 'init'
        rather than 'start'.
2000-04-24 21:32:51 +00:00
Andrew Cagney 92e9dde927 Do not delete testcmds. 2000-04-18 08:03:40 +00:00
Elena Zannoni a5a5122549 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/help.exp: Update output for add-symbol-file command.
2000-04-17 16:14:37 +00:00
Fernando Nasser 7930cc7cdc 2000-04-10 Fernando Nasser <fnasser@cygnus.com>
From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
	* gdb.base/structs2.c: Support platforms defaulting to a unsigned char.
2000-04-10 14:14:54 +00:00
J.T. Conklin e93c542c45 * gdb.base/call-ar-st.exp: Relax patterns matching tab characters. 2000-04-08 05:10:43 +00:00
J.T. Conklin 23e37ab112 2000-04-07 J.T. Conklin <jtc@redback.com>
* gdb.base/funcargs.exp: Relax patterns matching pointers to char.
2000-04-07 22:26:35 +00:00
Nicholas Duffek 2f09097b73 * sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):
Change to rely on PIDGET etc.
	* config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS,
	TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
	STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint):
	define.  Allow target to use procfs hardware watchpoints.
	* config/sparc/nm-sun4sol2.h: ditto.
	* config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify
	definitions to use 16 bits for the pid, 15 bits for the tid, and
	1 bit for the flag.
	* config/sparc/tm-sun4sol2.h: ditto.
	(SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine.
	* testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow
	for more than 15 thread increments.
2000-04-07 01:14:10 +00:00
Philippe De Muyter 591b8fa3ef * gdb.base/call-ar-st.c (init_small_structs, main): Use floating-point
values that can be represented exactly.
	* gdb.base/call-ar-st.exp (print print_small_structs): Fixed to match
	above change, and to not check against the directory part of the source
	file name.
	(step into print_long_arg_list): Likewise.
	(print print_small_structs from print_long_arg_list): Likewise.
	(print print_long_arg_list): Likewise.
2000-03-30 23:32:30 +00:00
Elena Zannoni 30b53638f1 2000-03-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
fix typo.
2000-03-27 17:44:32 +00:00
Elena Zannoni 7a49518043 2000-03-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/printcmds.c: Terminate char array ctable2 with 0.
2000-03-27 17:34:48 +00:00
Andrew Cagney beb998c6a0 Revert white space changes. 2000-03-27 05:29:24 +00:00
Daniel Berlin 1c689132b1 Fix maintenance deprecate crash, add testcase 2000-03-25 15:32:19 +00:00
Jonathan Larmour c1790a9d97 * gdb.base/break.exp: Add new test for setting breakpoints on
optimized code so we can test breakpoints work even when function
        prologues may be optimized away
2000-03-24 21:35:42 +00:00
Fernando Nasser 003ba2901f 2000-03-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
From David Whedon <dwhedon@gordian.com>
        * gdb.base/commands.exp : Added command deprecator tests.
2000-03-23 23:48:28 +00:00
Daniel Berlin 6837a0a2a9 Added the apropos command 2000-03-23 23:21:27 +00:00