Commit Graph

778 Commits

Author SHA1 Message Date
Paul N. Hilfinger c817078231 * gdb.base/bitfields2.exp: New test.
* gdb.base/bitfields2.c: New file.
2004-11-29 09:11:20 +00:00
Randolph Chung 0107feeddf 2004-11-16 Randolph Chung <tausq@debian.org>
* gdb.base/unload.exp: Pass relative path to gdb_get_line_number.
2004-11-23 19:51:35 +00:00
Mark Kettenis 9cf0961bb8 * gdb.base/savedregs.exp: Correct pattern used for sigtramp
frames.
2004-11-07 16:47:57 +00:00
Felix Lee c789492af8 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
* gdb.base/cursal.exp: New file.
        * gdb.base/cursal.c: New file.
2004-11-05 08:53:19 +00:00
Andrew Cagney a1e167bbea 2004-11-03 Andrew Cagney <cagney@gnu.org>
* gdb.base/savedregs.exp, gdb.base/savedregs.c: New files.
2004-11-03 14:46:18 +00:00
Michael Chastain 895ce074f7 2004-10-08 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/overlays.exp: Update copyright years.
2004-10-08 18:19:18 +00:00
Kazuhiro Inaoka 6be3092d07 2004-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
* gdb.base/overlays.exp: Disable if target is Linux.
2004-10-08 01:01:42 +00:00
Andrew Cagney 3c0edcdc64 2004-09-24 Andrew Cagney <cagney@redhat.com>
David Anderson <anderson@redhat.com>

	* gdb.base/bigcore.exp (extract_heap): If the expect "file size"
	command fails, assume things will work.
	* gdb.base/bigcore.c: Include <sys/stat.h> and <fcntl.h>.
	(_GNU_SOURCE): Define.
	(print_unsigned, print_hex): Change parameter to "long long".
	(print_byte_count): New function, use to print byte counts.
	(large_off_t, large_lseek, O_LARGEFILE): Define dependant on
	O_LARGEFILE.
	(main): Compute an upper bound on a corefile in max_core_size.
	Limit memory chunk size to max_core_size.  Limit total memory
	allocated to max_core_size.
2004-09-24 18:44:56 +00:00
Andrew Cagney 4bb3667f25 2004-09-23 Andrew Cagney <cagney@gnu.org>
* gdb.base/bigcore.exp: Replace the code that creates a corefile
	from a separate process with code that creates a corefile by
	making the inferior dump core.
2004-09-23 20:48:04 +00:00
Mark Kettenis 60fe1a5107 * gdb.base/sigstep.exp: Avoid comments withing gdb_test_multiple
block.
2004-09-23 20:29:30 +00:00
Michael Chastain 8e937346a7 2004-09-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/constvars.exp (local_compiler_xfail_check_2):
	New proc.  Accept both gcc 3.x.x and gcc 4.x.x.
	* gdb.base/volatile.exp (local_compiler_xfail_check_2):
	Likewise.
2004-09-23 18:18:58 +00:00
Joel Brobecker eac69dcad3 * gdb.base/bigcore.exp: Deactivate on IRIX targets. 2004-09-16 05:23:13 +00:00
Jason Molenda 33f2d56778 [gdb/ChangeLog]
2004-09-10  Jason Molenda  (jmolenda@apple.com)

        * cli/cli-script.c (read_next_line): Accept zero or more whitespace
        chars after 'if' or 'while' commands in user-defined commands.

[gdb/testsuite/ChangeLog]
2004-09-10  Jason Molenda  (jmolenda@apple.com)

        * gdb.base/define.exp: Two new tests to verify zero space chars
        after 'if' and 'while' commands in a user-defined command is correctly
        parsed.

Approved here:
http://sources.redhat.com/ml/gdb-patches/2004-09/msg00160.html
http://sources.redhat.com/ml/gdb-patches/2004-09/msg00157.html
2004-09-10 23:12:12 +00:00
Michael Chastain 2db8e78e67 2004-09-09 Michael Chastain <mec.gnu@mindspring.com>
* lib/gdb.exp (gdb_file_cmd): Revert the return value to
	previous simple convention.  Use a global variable to store
	information about what was found.
	(gdb_run_cmd): Adapt to reverted return value.
	* gdb.base/remote.exp: Adapt to reverted return value.
	* gdb.gdb/complaints.exp: Likewise.
	* gdb.gdb/observer.exp: Likewise.
	* gdb.gdb/selftest.exp: Likewise.
	* gdb.gdb/xfullpath.exp: Likewise.
2004-09-10 01:04:59 +00:00
Andrew Cagney e05b62ac69 2004-09-08 Andrew Cagney <cagney@gnu.org>
* gdb.base/signals.exp (signal_tests_1): Delete.  Merge signal
	delivery test with duplicate at end of file.
2004-09-08 22:00:47 +00:00
Mark Kettenis 9cbe82da8b * gdb.base/unload.exp: Link with -dl on *-*-solaris*. 2004-09-06 11:09:46 +00:00
Michael Chastain 714e341b13 2004-09-02 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/sigstep.exp (advance): Use "-continue_timer" option
	of "exp_continue".
	(advancei): Likewise.
2004-09-02 09:47:38 +00:00
Jeff Johnston 1236e623c6 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/unload.exp: Fix so messages aren't duplicated.
2004-09-01 23:26:43 +00:00
Jeff Johnston edd9b715ac 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/unload.exp: Fix expected warning message to match
        latest format.
2004-09-01 17:56:20 +00:00
Corinna Vinschen fb4ce06b35 * gdb.base/call-rt-st.exp: Fix typos. 2004-09-01 16:36:30 +00:00
Andrew Cagney 2dedb159fe 2004-08-31 Andrew Cagney <cagney@gnu.org>
* gdb.base/sigstep.exp (breakpoint_to_handler_entry)
	(skip_to_handler_entry): New procedures.  Test stepping into a
	handler when the breakpoint is at the handler's entry point.
2004-08-31 14:43:18 +00:00
Andrew Cagney 68f5350246 2004-08-30 Andrew Cagney <cagney@gnu.org>
Fix PR breakpoints/1757.
	* infrun.c (struct execution_control_state): Replace
	remove_breakpoints_on_following_step with
	step_after_step_resume_breakpoint.
	(init_execution_control_state): Update.
	(handle_inferior_event): For signals, when stepping off a
	breakpoint, set step_after_step_resume_breakpoint.  When
	BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
	(keep_going): Delete code handling
	remove_breakpoints_on_following_step.

Index: testsuite/ChangeLog
2004-08-30  Andrew Cagney  <cagney@gnu.org>

	* gdb.base/sigstep.exp (breakpoint_over_handler): Remove kfail
	gdb/1757.
2004-08-30 16:59:45 +00:00
Michael Chastain 3e3ffd2b74 2004-08-27 Michael Chastain <mec.gnu@mindspring.com>
With code from Manoj Iyer <manjo@austin.ibm.com>:
	* lib/gdb.exp (gdb_file_cmd): Return more information in the
	return value.  Add an arm for "no debugging symbols found".
	Change a stray "error" to "perror".
	(gdb_run_cmd): Adapt to new return value.
	* gdb.base/remote.exp: Adapt to new return value.
	* gdb.gdb/complaints.exp: Likewise.
	* gdb.gdb/observer.exp: Likewise.
	* gdb.gdb/selftest.exp: Likewise.
	* gdb.gdb/xfullpath.exp: Likewise.
2004-08-28 23:55:48 +00:00
Michael Chastain 934353d642 2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/unload.c: Include <stdlib.h>.
2004-08-26 19:26:11 +00:00
Michael Chastain 3a77aa2811 2004-08-26 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/call-sc.exp (test_scalar_returns): Make sure PC is
	synchronized after the "return".
2004-08-26 18:02:59 +00:00
Andrew Cagney b04e311dda 2004-08-25 Andrew Cagney <cagney@gnu.org>
* gdb.base/sigstep.exp (breakpoint_to_handler, skip_to_handler)
	(skip_over_handler, breakpoint_over_hander): New test procedures.
	(advance, advancei): Add a proper prefix, do not use
	rerun_to_main.
	* gdb.base/sigstep.c (main): Change to use an infinite loop.
2004-08-25 15:26:19 +00:00
Michael Chastain d782e0bfb0 2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/whatis.c: Remove conditional disabling of "signed".
	* gdb.base/whatis.exp: Remove signed_keyword_not_used.
2004-08-23 13:04:03 +00:00
Michael Chastain 96033e836e 2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/whatis.c: Add copyright notice.
2004-08-23 12:28:23 +00:00
Michael Chastain 2f193b694d 2004-08-20 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/call-sc.exp (test_scalar_returns):
	Fix cut-and-paste glitch in "Make fun return now".
2004-08-20 10:57:08 +00:00
Mark Kettenis 00b51b9f52 * gdb.base/unload.c (main): Make local variable msg const. 2004-08-15 10:24:08 +00:00
Mark Kettenis 4e83846489 * gdb.base/bigcore.c: Include <sys/types.h> and <sys/time.h>.
* lib/gdb.exp: Recognize relative path names as well as absolute
ones.
2004-08-14 20:17:43 +00:00
Jeff Johnston 37fdf8545e 2004-08-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/unload.exp: New test for breakpoints in dynamically
        loaded libraries.
        * gdb.base/unload.c: Ditto.
        * gdb.base/unloadshr.c: Ditto.
2004-08-12 20:22:59 +00:00
Mark Kettenis 6a89fc9c75 * gdb.base/sigaltstack.exp: Provide proper anchoring. 2004-08-09 19:09:30 +00:00
Daniel Jacobowitz 1a5ce3f34d PR gdb/1738
* gdb.base/signals.exp (signal_tests_1): KFAIL bug in continuing
	from a breakpoint with a pending signal.
2004-08-09 13:17:34 +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
Daniel Jacobowitz d2f6abb049 PR gdb/1736
* gdb.base/sigaltstack.exp (finish_test): New procedure.  KFAIL
	for i?86-*-linux*.
2004-08-08 23:14:33 +00:00
Michael Chastain dd90efdb05 2004-08-05 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/gcore.c: Include <string.h>.
2004-08-05 07:44:47 +00:00
Michael Chastain 1e84bec179 2004-08-05 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/gcore.c: Add copyright notice.
2004-08-05 07:38:42 +00:00
Michael Chastain e425eb2b82 2004-08-05 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/freebpcmd.c: Include <stdio.h>.
	* gdb.base/long_long.c: Include <string.h>.
	* gdb.base/sigaltstack.c: Include <stdlib.h> <string.h>.
	* gdb.base/siginfo.c: Include <string.h>.
	* gdb.base/sigstep.c: Include <string.h>.
2004-08-05 07:28:20 +00:00
Michael Chastain cb9aaed5ee 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Include <stdlib.h>.
2004-08-05 00:59:23 +00:00
Michael Chastain 55944f3dc4 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Add copyright notice.
2004-08-05 00:53:01 +00:00
Michael Chastain 7b2953d9c2 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/charset.c: Include <stdlib.h>.
2004-08-05 00:31:49 +00:00
Michael Chastain c9133d23e8 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/auxv.c: Include <stdlib.h>.
2004-08-05 00:20:38 +00:00
Michael Chastain 0a8490ad3a 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/auxv.c: Add copyright notice.
2004-08-05 00:04:28 +00:00
Michael Chastain 3426d5eccb 2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/coremaker.c: Add copyright notice.
	* gdb.base/coremaker2.c: Add copyright notice.
2004-08-04 23:55:15 +00:00
Andrew Cagney 8da195dd34 2004-08-04 Andrew Cagney <cagney@gnu.org>
* gdb.base/store.exp: Update copyright.
	(check_set, up_set, check_struct, up_struct): Add a prefix to test
	names, do not import gdb_prompt.
2004-08-04 14:59:56 +00:00
Andrew Cagney 8d394f983f 2004-08-01 Andrew Cagney <cagney@gnu.org>
Fix PR testsuite/1729.
	* gdb.base/dump.exp: Add test name to callers of capture_value, do
	not use capture_value with value 4.
	(capture_value): Add optional test name parameter.
	(test_reload_saved_value, test_restore_saved_value): Use $msg as
	the prefix, pass to capture_value.
2004-08-02 03:13:56 +00:00
Michael Chastain 4a1135b808 2004-07-22 Michael Chastain <mec.gnu@mindspring.com>
Test for PR exp/1715.
	* gdb.base/radix.exp: Refactor common procedures.  Make all
	test names unique.  Change XFAIL to KFAIL.
2004-07-22 09:56:42 +00:00
Andrew Cagney 23b451cfe2 2004-07-20 Andrew Cagney <cagney@gnu.org>
* gdb.base/signals.exp: Replace send_gdb and gdb_expect with
	gdb_test and gdb_test_multiple.  Delete bash_bug.  Delete suspect
	XFAILs.  Clean up test messages and comments.  Check backtraces.
	Delete re-sync code.
2004-07-20 19:59:26 +00:00
Michael Chastain ab618a0235 2004-07-19 Michael Chastain <mec.gnu@mindspring.com>
Fix PR cli/740.
	* gdb.base/annota1.exp: Honor gdb,nosignals.
	* gdb.base/annota3.exp: Likewise.
2004-07-20 00:24:41 +00:00