Commit Graph

752 Commits

Author SHA1 Message Date
Adam Fedor f3205b34a1 * gdb.base/gdb1555.exp: New file.
* gdb.base/gdb1555-main.c, gdb.base/gdb1555.c: New files.
2004-02-18 03:35:08 +00:00
Elena Zannoni 9d62932daa 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (defs_h): Remove dependency on progress_h.
	* defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
	progress.h.
	* main.c (captured_main): Delete use of START_PROGRESS and
	END_PROGRESS.

2004-02-17  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
2004-02-18 00:21:01 +00:00
Andrew Cagney 2d822687d5 2004-02-16 Andrew Cagney <cagney@redhat.com>
* gdb.base/bigcore.exp: New file.
	* gdb.base/bigcore.c: New file.
2004-02-16 18:49:09 +00:00
Michael Chastain d2dc51dbff 2004-02-09 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/pending.exp: Remove extra \n from gdb_test calls.
2004-02-09 10:55:24 +00:00
Elena Zannoni 30fc0091a5 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/maint.exp: Update test to reflect
         obstack changes.
2004-02-07 23:26:47 +00:00
Jeff Johnston 4d80692901 2004-02-04 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/pendshr.c (pendfunc): New function that calls
        pendfunc1.
        * gdb.base/pending.c: Call pendfunc instead of pendfunc1.
2004-02-05 01:19:14 +00:00
Fred Fish 1b8021965a Reviewed and approved by drow@mvista.com.
2004-02-02  Fred Fish  <fnf@redhat.com>
	* gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
	remote targets.  Update copyright years.
2004-02-02 21:30:02 +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
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
Mark Kettenis 005bc093f6 * gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
that opening the file succeeds on OpenBSD.
2004-02-01 18:51:29 +00:00
Mark Kettenis 5a01311c59 * gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs
only on the "print_small_structs from print_long_arg_list" test.
2004-02-01 10:17:36 +00:00
Daniel Jacobowitz ce22a4f1db * gdb.base/completion.exp: Kill a stray backslash.
From Jim Ingham <jingham@apple.com>:
	* gdb.base/completion.exp: Test that "complete file ./gdb.base/compl"
	agrees with the result from sending a tab.
2004-02-01 05:49:07 +00:00
Daniel Jacobowitz abbab9d3eb * gdb.base/chng-syms.exp: Remove stray newline. 2004-01-31 18:11:25 +00:00
Paul N. Hilfinger d8679d841d New test to check that GDB does not crash due to memory corruption
when a reload caused by a change in an executable invalidates
a breakpoint condition.
2004-01-29 11:15:44 +00:00
Mark Kettenis 7cf03d44ce * gdb.base/charset.c, gdb.base/dump.c, gdb.base/huge.c: Include
<string.h>.
2004-01-24 18:25:06 +00:00
Mark Kettenis 7049b4b8ac * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns
used with gdb_test_multiple.
2004-01-18 21:17:57 +00:00
Mark Kettenis 52470da313 * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
read at address 0.  This fixes PR testsuite/1504.
2004-01-18 16:35:11 +00:00
Michael Chastain 4120d7e626 2004-01-15 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/setvar.exp: Remove setup_xfail for hppa*-*-*11*.
2004-01-15 22:23:26 +00:00
Michael Chastain 091c48f61a 2004-01-15 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/setvar.exp: Add copyright years.
2004-01-15 19:28:46 +00:00
Elena Zannoni a51dab8874 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/sepdebug.exp: Bail out of the test if we don't know
	what debug info we have. Print a better message if something goes
	wrong while producing the separate debug info file.
2004-01-14 15:09:37 +00:00
Michael Chastain a476ccc9d7 2004-01-14 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/callfuncs.c: Remove explicit declaration of malloc.
2004-01-14 14:32:54 +00:00
Michael Chastain f453692c70 2004-01-14 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/callfuncs.c: Add copyright notice.
2004-01-14 14:11:40 +00:00
David Carlton 2970ae720e 2004-01-13 David Carlton <carlton@kealia.com>
* gdb.base/completion.exp: Don't look for 'ask' after set
	follow-fork-mode.  Update copyright.
2004-01-13 23:39:54 +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
Andrew Cagney a94154757c 2004-01-12 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Update copyright year.  On GNU/Linux, for
	"Renaming a directory to a non-empty directory returns ENOTEMPTY
	or EEXIST", treat EBUSY as an XFAIL.
2004-01-12 14:44:49 +00:00
Michael Chastain 83b8cf9d6b 2004-01-11 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/scope.exp: Remove obsolete setup_xfail for
	hp_cc_compiler.
2004-01-11 23:16:25 +00:00
Mark Kettenis 209721fe3f * gdb.base/gdb1476.exp: Fix typo. 2004-01-09 16:43:05 +00:00
Michael Chastain 10d1bea8d5 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/funcargs.exp: Remove obsolete setup_xfail for
	hp_cc_compiler.
2004-01-08 07:26:50 +00:00
Michael Chastain 053248ffab 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/constvars.exp: Do not force lang=c++ if using HP
	compilers.  Delete duplicate call to get_compiler_info.
	(local_compiler_xfail_check): setup_xfail if $hp_cc_compiler.
	* gdb.base/volatile.exp: Likewise.
2004-01-07 22:44:54 +00:00
Mark Kettenis 84acecdda8 * gdb.base/gdb1476.exp: Only run the tests if we can't read the
memory at address 0.
2004-01-07 22:12:34 +00:00
Andrew Cagney 60ad077b5a 2004-01-07 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.c (strerrno): Add "EBUSY".
2004-01-07 16:39:02 +00:00
Andrew Cagney 1c9b8f3352 2004-01-07 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.c (test_open): Do not pass S_IWUSR to "open"
	when creating the read-only file.  From analysis by Roland McGrath
	and Elena Zannoni.
2004-01-07 16:02:27 +00:00
Michael Chastain eca3e36bf8 2004-01-06 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/cvexpr.c: Be type-safe with function pointers and
	data pointers.
2004-01-07 08:32:51 +00:00
Michael Chastain 9b4e0f9493 2004-01-06 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/call-ar-st.exp: Delete explicit reference to ${binfile}.ci.
	* gdb.base/call-rt-st.exp: Likewise.
	* gdb.base/nodebug.exp: Likewise.
	* gdb.base/volatile.exp: Likewise.
	* gdb.cp/ref-types.exp: Likewise.
	* gdb.cp/templates.exp: Likewise.
2004-01-06 19:05:14 +00:00
Mark Kettenis 023c10246b * gdb.base/gdb1476.exp, gdb.base/gdb1476.c: New files. 2004-01-05 22:55:33 +00:00
Michael Chastain 19703c4ab8 2004-01-05 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/funcargs.exp: Delete special timeout of 240 seconds for
	hppa*-hp-hpux*.
2004-01-05 12:32:11 +00:00
Mark Kettenis ba6219c89f * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
x86_64-*-*.
2004-01-04 15:04:41 +00:00
Mark Kettenis 18b6703720 * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
sparc64-*-* and sparc*-solaris2*.
2004-01-04 14:06:00 +00:00
Mark Kettenis 1bfbbb9d24 * gdb.base/structs.exp: Remove ${testfile} from "zed L<n> for
return ${tests}" test.  The ${tests} already mentions the
filename.
2004-01-03 23:49:31 +00:00
Andrew Cagney ede47fe902 Revert accidental commit. 2004-01-02 22:53:12 +00:00
Andrew Cagney e42c953419 2004-01-02 Andrew Cagney <cagney@redhat.com>
* utils.c (do_my_cleanups): Make static, add forward declaration.
	* defs.h (do_my_cleanups): Delete declaration.
2004-01-02 17:35:01 +00:00
Michael Chastain 850742db45 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/sect-cmd.exp: Handle compiling test case from multiple
	source files.
2003-12-18 16:25:21 +00:00
Michael Chastain eb4bbda805 2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/environ.exp: Handle compiling test case from multiple
	source files.
2003-12-18 07:48:37 +00:00
Michael Chastain e42c777187 2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/structs.exp: Call gdb_exit as well as gdb_start.
2003-12-17 22:32:18 +00:00
Jim Blandy 5f06973a05 * gdb.base/freebpcmd.c: Add copyright notice. 2003-12-17 21:34:51 +00:00
Jim Blandy 80e4b428e6 * gdb.base/freebpcmd.exp: Mark the interesting failure as known. 2003-12-17 21:28:40 +00:00
Michael Chastain 0ab84fb789 2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/maint.exp: Add generic FAIL patterns to prevent timeouts.
2003-12-17 05:43:46 +00:00
Jim Blandy 1b3bb3d032 * gdb.base/freebpcmd.exp, gdb.base/freebpcmd.c: New test. 2003-12-13 20:12:31 +00:00
Fred Fish a1dea79abe Committed after testing and independent approval/endorsement.
2003-12-09  Fred Fish  <fnf@redhat.com>
	* gdb.base/break.c (marker1, marker2, marker3, marker4): Move
	functions to break1.c and leave prototypes behind.  Add more
	"set breakpoint NN here" comments.
	* gdb.base/break1.c: New file.
	* gdb.base/break.exp: Handle compiling test case from multiple
	source files and change source file references as needed.
	* gdb.base/completion.exp: Ditto.
	* gdb.base/condbreak.exp: Ditto.
	* gdb.base/define.exp: Ditto.
	* gdb.base/ena-dis-br.exp: Ditto.
	* gdb.base/info-proc.exp: Ditto.
	* gdb.base/maint.exp: Ditto.
	* gdb.base/until.exp: Ditto.
	* gdb.base/condbreak.exp: Use bp_locationNN variables instead of
	hardcoded line numbers.
	* gdb.base/define.exp: Ditto.
	* gdb.base/ena-dis-br.exp: Ditto.
	* gdb.base/maint.exp: Ditto.
	* gdb.base/until.exp: Ditto.
	* gdb.base/completion.exp: Use "break1" for completion tests since
	"break" is no longer a unique prefix.
2003-12-09 18:19:20 +00:00
Andrew Cagney 5266b69c16 2003-12-06 Andrew Cagney <cagney@redhat.com>
* gdb.base/structs.exp (test_struct_returns): When applicable, set
	"return_value_unimplemented".  When an unimplemented struct return
	architecture, report incorrect values as a KFAIL
2003-12-06 22:49:02 +00:00
Michael Chastain ba9b20a7b1 2003-12-05 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/scope.exp (test_at_main): Replace references to
	gcc_compiled with calls to test_compiler_info.
	(test_at_foo): Likewise.
	(test_at_bar): Likewise.
2003-12-06 02:06:22 +00:00
Michael Chastain b74b6d0b9f 2003-12-04 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/so-impl-ld.exp: Replace reference to gcc_compiled with call
	to test_compiler_info.
2003-12-05 01:53:46 +00:00
Michael Chastain ccfa340233 2003-12-03 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/so-impl-ld.exp: Update copyright notice.
2003-12-04 04:37:54 +00:00
Michael Chastain f6246aba72 2003-12-02 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/mips_pro.exp: Replace references to gcc_compiled with calls
	to test_compiler_info.
2003-12-02 17:53:58 +00:00
Michael Chastain 96457b64cf 2003-12-01 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/callfuncs.exp (do_function_calls): Replace reference to
	gcc_compiled with call to test_compiler_info.
2003-12-01 22:09:06 +00:00
Michael Chastain f35309fcfd 2003-11-30 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/list.exp (test_list_function): Delete unused declaration
	of gcc_compiled.
2003-11-30 23:13:34 +00:00
Michael Chastain d7afdf9bce 2003-11-29 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/complex.exp: Replace reference to gcc_compiled with
	call to test_compiler_info.
2003-11-30 06:50:49 +00:00
Michael Chastain f81f93f75e 2003-11-28 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/constvars.exp: Replace references to gcc_compiled with
	calls to test_compiler_info.
2003-11-29 06:56:06 +00:00
Michael Chastain 9a77938ecf 2003-11-27 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456.
	* gdb.base/volatile.exp: Replace references to gcc_compiled with
	calls to test_compiler_info.
2003-11-28 03:31:24 +00:00
Mark Kettenis e8367dc76a * gdb.base/structs.exp: Use i*86-*-* instead of i686-*-* as a
pattern for the KFAILs.
2003-11-27 20:40:52 +00:00
Michael Chastain b729099eb3 2003-11-23 Michael Chastain <mec@shout.net>
Fix PR testsuite/1463.
	* gdb.base/structs.exp (start_structs_test): Call
	get_debug_format before using the debug format.
2003-11-23 17:48:00 +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 6882279b13 2003-11-20 Andrew Cagney <cagney@redhat.com>
* gdb.base/structs.exp: Handle and recover from internal errors.
	Replace "foo${n}" with "foo<n>" in test messages.
2003-11-20 18:03:48 +00:00
Andrew Cagney e53890ae03 2003-11-20 Andrew Cagney <cagney@redhat.com>
* gdb.base/structs.exp: Update copyright.  Rewrite.
	* gdb.base/structs.c: Update copyright.  Rewrite.
2003-11-20 17:11:55 +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 eac98b22ae 2003-11-19 Andrew Cagney <cagney@redhat.com>
* gdb.base/callfuncs.exp: Change the XFAILed descriptor test to a
	KFAIL.
2003-11-19 18:34:52 +00:00
Andrew Cagney b496706087 Oops, accidental commit, reverting. 2003-11-17 15:09:19 +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
Elena Zannoni a50d3602e0 2003-11-13 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/break.c: Add comments to aid finding line numbers for
       breakpoints.
       * gdb.base/break.exp: Remove all references to explicit line
       numbers.
2003-11-13 15:34:39 +00:00
Nick Clifton d9407aaa54 Do not run for targets which do not support shared objects. 2003-11-11 17:58:28 +00:00
Corinna Vinschen db488fc1b2 * gdb.base/fileio.exp: Drop tests for nointerrupts and noinferiorio.
Don't run tests if nofileio flag is given.
2003-11-10 09:12:20 +00:00
Elena Zannoni 0b915e9cc2 2003-11-06 Elena Zannoni <ezannoni@redhat.com>
Reported by Jim Ingham <jingham@apple.com>:
	* gdb.base/annota1.exp: Match at least one occurrence of the
	signal handler annotation.
2003-11-06 20:50:47 +00:00
Michael Chastain 8b7d96c1c4 2003-10-20 Michael Chastain <mec@shout.net>
* gdb.base/gdb1056.exp: New test script.
2003-10-21 00:35:02 +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
Corinna Vinschen 618ec11271 * gdb.base/call-rt-st.c (struct bit_flags_char_t): New bitfield
type, based on char type.
	(struct bit_flags_short_t): New bitfield type, based on short type.
	(init_bit_flags_char): New fuction.
	(init_bit_flags_short): Ditto.
	(print_bit_flags_char): Ditto.
	(print_bit_flags_short): Ditto.
	(main): Add handling for bit_flags_char_t and bit_flags_short_t.
2003-10-13 09:13:43 +00:00
Michael Chastain 9367a73cbc 2003-10-11 Michael Chastain <mec@shout.net>
* gdb.base/call-rt-st.exp: Update copyright year.
2003-10-11 20:57:42 +00:00
Corinna Vinschen aec24853b5 * gdb.base/ending-run.exp: Add sh specific case. 2003-10-07 16:02:16 +00:00
Andrew Cagney adc7428d50 2003-10-06 Andrew Cagney <cagney@redhat.com>
* gdb.base/watchpoint.exp: Delete obsolete clear_xfail.
	* gdb.disasm/mn10200.exp: Delete obsolete file.
2003-10-06 19:31:43 +00:00
Daniel Jacobowitz c9d37158cc * ChangeLog: Correct an entry command.exp -> commands.exp.
* gdb.base/commands.exp (bp_deleted_in_command_test)
	(temporary_breakpoint_commands): Check noargs.
2003-09-29 15:08:52 +00:00
David Carlton 10f0d45173 2003-09-25 David Carlton <carlton@kealia.com>
* gdb.base/corefile.exp: Delete obsolete setup_xfail.
2003-09-25 15:40:20 +00:00
Elena Zannoni 274bcba01c 2003-09-23 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/selftest.exp: Accomodate more instruction reordering
        weirdness.
2003-09-23 19:19:48 +00:00
Elena Zannoni 1c19974635 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/relocate.exp: Handle new gdb output at startup.
2003-09-11 18:59:02 +00:00
Michael Chastain 04ed252fc1 2003-09-08 Michael Chastain <mec@shout.net>
* gdb.base/gdb1250.c: Rename 'gamma' to 'my_gamma'.
2003-09-08 21:30:52 +00:00
Michael Chastain 49f2741a0a 2003-08-30 Michael Chastain <mec@shout.net>
* gdb.base/selftest.exp: Remove support for m68k*-*-hpux.
	* gdb.gdb/observer.exp: Ditto.
	* gdb.gdb/xfullpath.exp: Ditto.
2003-08-30 04:58:21 +00:00
Mark Kettenis 8afa723e83 * gdb.base/interrupt.exp: XFAIL "call function when asleep" for
*-*-*bsd*.
2003-08-29 11:42:28 +00:00
Jeff Johnston f31dfe3b88 2003-08-28 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/dump.exp: Skip for ia64.
2003-08-28 18:01:50 +00:00
Daniel Jacobowitz a356f73bbf * gdb.base/annota3.exp: Add missing newline. 2003-08-17 16:50:59 +00:00
Michael Snyder c99c59c39d 2003-08-12 Michael Snyder <msnyder@redhat.com>
* gdb.base/float.exp: Add test for SH.
2003-08-12 22:27:19 +00:00
Elena Zannoni 1a371f2e64 2003-08-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Remove reduntant completion test
       on filename.
2003-08-07 17:58:44 +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
Andrew Cagney 6009d8848e 2003-08-02 Andrew Cagney <cagney@redhat.com>
* gdb.base/annota3.exp: New file.
	* gdb.base/annota3.c: New file.
	* gdb.c++/annota3.exp: New file.
	* gdb.c++/annota3.cc: New file.
2003-08-03 01:57:13 +00:00
Andrew Cagney 225f2bf663 2003-07-27 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Use SH when running commands using
	remote_exec.
2003-07-27 21:24:09 +00:00
Daniel Jacobowitz bcb27c9f96 From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.base/relocate.c (dummy): New padding array.
2003-07-24 18:45:43 +00:00
Michael Snyder 686d097cef 2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.base/return2.exp: Don't test long-long return.
2003-07-23 18:53:34 +00:00
Andreas Schwab 180dea7cce * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
due to insn reordering.
2003-07-20 17:39:16 +00:00
Michael Chastain 98a23b3f74 2003-07-15 Michael Chastain <mec@shout.net>
* gdb.base/gdb1250.exp: New file.
	* gdb.base/gdb1250.c: New file.
2003-07-15 16:28:21 +00:00
Elena Zannoni d99968dcc1 2003-07-09 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/annota1.exp: Make sure that we properly escape the
        full path of the source file. Xfail more permissive patterns,
        due to a compiler debug info problem.
2003-07-09 13:19:08 +00:00
Andreas Schwab 83876b3be5 * gdb.objc/basicclass.exp ("Call an Objective-C method with no
arguments"): Also match negative number.

	* gdb.base/float.exp ("info float"): Add test for m68k-*-*.
2003-07-06 22:27:34 +00:00
Daniel Jacobowitz 3a871b371b * gdb.base/store.c (charest): New typedef.
(add_char): Rename to add_charest, update.
	(wack_char): Rename to wack_charest, update types.  Return l + r
	to keep r live across the call.
	(wack_short, wack_int, wack_long, wack_longest, wack_float)
	(wack_double, wack_doublest): Return l + r to keep r live across
	the call.
	* gdb.base/store.exp: Accomodate store.c changes.
2003-07-03 13:55:22 +00:00
Daniel Jacobowitz f1c2644b92 * gdb.base/completion.exp: Tab-complete "complet" instead of
"compl".
	* gdb.base/complex.exp, gdb.base/complex.c: New files.
2003-06-29 20:32:23 +00:00
Daniel Jacobowitz 180803508c * gdb.base/constvars.exp: Remove most xfails for GCC 3.x.
* gdb.base/volatile.exp: Likewise.
2003-06-29 20:01:59 +00:00
Daniel Jacobowitz 48fe539ffe * gdb.base/selftest.exp (do_steps_and_nexts): Increase maximum
initial line count of 'captured_main' from 26 to 32.
	(test_with_self): Allow xmalloc call to be interleaved with the
	preceding two lines.
2003-06-28 16:36:42 +00:00
Joel Brobecker e766d4d601 * gdb.base/bang.exp: New testcase. 2003-06-24 22:04:06 +00:00
Joel Brobecker f125c9a4e9 * gdb.base/langs.exp: Add some tests for the "minimal" language
support.
2003-06-23 22:42:50 +00:00
Daniel Jacobowitz 2f816dda05 * gdb.base/relocate.exp: Test add-symbol-file with a variable
offset.
2003-06-22 18:32:38 +00:00
Mark Kettenis a92feac0ae * gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
on *-*-*bsd* instead of *-*-freebsd*.
2003-06-15 13:10:38 +00:00
Andrew Cagney 81a58f5b70 2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/store.exp: Test longest and doublest.  Test all
	parameters.  Weaken return statement match.
	* gdb.base/store.c: Add longest and doublest - aka long long and
	long double functions.  Put all parameters into local register
	variables.  Use negative values.
2003-06-14 22:10:47 +00:00
Andrew Cagney b257a0d30a 2003-06-14 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>.  Gag
	-Wformat errors.  Add lost line.  Use WEXITSTATUS to get system
	exit status.
	* gdb.base/fileio.exp: Disable target when nointerrupts and
	noinferiorio, instead of limiting it to remote.  Use remote_exec
	instead of system.
2003-06-14 16:51:42 +00:00
Jeff Johnston 21c3830442 2003-06-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/float.exp: Add ia64 support.
2003-06-12 17:55:06 +00:00
Corinna Vinschen 1bcdb42447 * gdb.base/fileio.exp: Run only on remote targets. 2003-06-12 09:49:05 +00:00
Corinna Vinschen 6aeb981f43 * gdb.base/fileio.c: New file, testing File-I/O.
* gdb.base/fileio.exp: Ditto.
2003-06-10 14:38:04 +00:00
Raoul Gough 53df362e2a Shared-object relocation tests 2003-06-09 21:23:53 +00:00
Mark Kettenis b5ca37229d * gdb.base/readline.exp: Add tests for operate-and-get-next with a
fully filled history list.
* gdb.base/gdb_history: New file.
2003-06-08 13:14:05 +00:00
Mark Kettenis 03ed860d17 * gdb.base/signals.exp: XFAIL "continue to func1" on
i*86-*-freebsd*.
2003-06-08 13:02:58 +00:00
Mark Kettenis ffee1b461d * gdb.base/attach.exp: When trying to attach to a nonexistent
process, make it possible to specify the PID based on the target,
and do so for *-*-freebsd*.
2003-06-08 12:58:10 +00:00
Richard Henderson d80dbb52aa * gdb.base/float.exp: Add expected regexp for alpha-*-*. 2003-06-02 16:49:35 +00:00
Richard Henderson 6dd77b815f * top.h (lim_at_start): Declare.
* main.c (captured_main): Set it.
        * top.c (lim_at_start): Define.
        (command_loop): Use it instead of &environ.
        * event-top.c (command_handler): Likewise.

        * gdb.base/selftest.exp: Next over lim_at_start initialization.
2003-06-02 16:02:59 +00:00
Richard Henderson f6347e1633 * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch. 2003-06-02 15:51:24 +00:00
Mark Kettenis 7b34ad4ea9 * gdb.base/float.exp: Expect similar output for x86_64-*-* as for
i?86-*-*.
2003-05-31 19:48:39 +00:00
Jim Blandy e9ecd94986 * gdb.base/corefile.exp: Find corefiles on Linux, which names them
'core.PID'.
2003-05-29 23:00:02 +00:00
Jim Blandy e3e5a4f3c1 * gdb.base/corefile.exp: Tolerate stuff after argument parens in
backtrace.
2003-05-22 22:35:45 +00:00
Andrew Cagney 00905d52fe Index: testsuite/ChangeLog
2003-05-05  Andrew Cagney  <cagney@redhat.com>

	* gdb.base/maint.exp: Add tests for "maint print dummy-frames".

Index: doc/ChangeLog
2003-05-05  Andrew Cagney  <cagney@redhat.com>

	* gdb.texinfo (Maintenance Commands): Document "maint print
	dummy-frames".

2003-05-05  Andrew Cagney  <cagney@redhat.com>

	* dummy-frame.c: Include "command.h" and "gdbcmd.h".
	(fprint_dummy_frames): New function.
	(maintenance_print_dummy_frames): New function.
	(_initialize_dummy_frame): Add command "maint print dummy-frames".
	* frame.c (fprint_frame_id): Make global.
	* frame.h (fprint_frame_id): Declare.
	* Makefile.in (dummy-frame.o): Update dependencies.
2003-05-05 18:33:11 +00:00
Andrew Cagney b1e29e332a 2003-05-03 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
	(DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
	SIZEOF_CALL_DUMMY_WORDS.
	(DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
	(DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
	(DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
	CALL_DUMMY_BREAKPOINT_OFFSET.
	(DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
	CALL_DUMMY_START_OFFSET.
	(DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
	* gdbarch.h, gdbarch.c: Re-generate.
	* alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
	* arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
	* dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
	* gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
	* i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
	* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
	* mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
	* rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
	* sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
	* vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
	* config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
	* config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
	* config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
	* config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
	* config/sparc/tm-sparc.h: Update.

Index: doc/ChangeLog
2003-05-03  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Make
	CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_LENGTH,
	FIX_CALL_DUMMY, CALL_DUMMY_BREAKPOINT_OFFSET and
	CALL_DUMMY_BREAKPOINT_OFFSET deprecated.

Index: mi/ChangeLog
2003-05-03  Andrew Cagney  <cagney@redhat.com>

	* mi-main.c (mi_cmd_data_write_register_values): Replace
	REGISTER_SIZE with DEPRECATED_REGISTER_SIZE.

Index: testsuite/ChangeLog
2003-05-03  Andrew Cagney  <cagney@redhat.com>

	* gdb.base/watchpoint.exp: Rename CALL_DUMMY_BREAKPOINT_OFFSET to
	DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET in comments.
2003-05-05 17:56:57 +00:00
Elena Zannoni e33d66ec21 gdb:
2003-05-02  Elena Zannoni  <ezannoni@redhat.com>

	* charset.c (GDB_DEFAULT_TARGET_CHARSET,
	GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
	(host_charset_name, target_charset_name): New vars for use by
	set/show commands.
	(host_charset_enum, target_charset_enum): New enums for set/show
	commands.
	(set_charset_sfunc, set_host_charset_sfunc,
	set_target_charset_sfunc): New functions.
	(set_host_charset, set_target_charset): Make static.
	(list_charsets, set_host_charset_command,
	set_target_charset_command): Delete functions.
	(show_charset_command): Rewrite as....
	(show_charset): Hook this up with the set/show command mechanism.
	(_initialize_charset): Change names of charsets to match the
	set/show enums. Use host_charset_name and target_charset_name.
	Use set/show mechanism for charset, host-charset, target-charset
	commands. Do not make 'show host-charset' and 'show
	target-charset' be aliases of 'show charset'.

	* charset.h (set_host_charset, set_target_charset): Don't export,
	they are not used outside the file.

gdb/testsuite:
2003-05-01  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.base/charset.exp: Update based on new behavior of set/show
	charset commands.

gdb/doc:
2003-05-02  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.texinfo (Character Sets): Update to reflect new behavior of
	set/show charsets commands.
2003-05-02 14:23:39 +00:00
Daniel Jacobowitz bea7185483 * gdb.base/signals.exp: Make backtrace tests more specific. 2003-04-28 00:50:30 +00:00
Kevin Buettner c8c4d8dcfb * gdb.base/args.exp: Invoke gdb_load for simulator targets. 2003-04-16 20:29:42 +00:00
Elena Zannoni 3fe60e3c14 2003-04-16 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Make 'info func mark' complete on 'info
        func marke' instead. Update test name.
2003-04-16 20:07:08 +00:00
Elena Zannoni 0089057280 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/attach.exp: Add new message from ptrace in case of
        attaching to nonexistent process.
2003-04-14 14:04:06 +00:00
Elena Zannoni 68ab8fc55f 2003-04-10 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Use string_to_regexp to match the
	working directory name.
2003-04-10 13:38:15 +00:00
Stephane Carrez f1f02ee4e4 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
with -DPROTOTYPES.
2003-04-05 13:35:25 +00:00
Stephane Carrez 6eb79af08f * gdb.base/break.exp: Revert last patch. 2003-04-05 10:40:59 +00:00
Stephane Carrez 8dfb4cf091 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
with -DPROTOTYPES.
2003-04-04 20:03:46 +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
Andrew Cagney 71900fe836 2003-03-29 Andrew Cagney <cagney@redhat.com>
* gdb.base/sizeof.c (main): Print the value of '\377'.
	* gdb.base/sizeof.exp: Check the sign of '\377'.
2003-03-30 04:08:16 +00:00
Michael Chastain c0655a1649 2003-03-27 Michael Chastain <mec@shout.net>
* gdb.base/gdb1090.exp: New file.
	* gdb.base/gdb1090.cc: New file.
2003-03-27 21:29:49 +00:00
Michael Chastain 7987689039 2003-03-27 Michael Chastain <mec@shout.net>
* gdb.base/list.exp: Remove setup_xfail_format for DWARF 1.
	* gdb.base/ptype.exp: Likewise.
2003-03-27 18:59:11 +00:00
Michael Chastain e8c7183923 2003-03-26 Michael Chastain <mec@shout.net>
* gdb.base/ptype.exp: Actually use some typedef'd types.
2003-03-26 22:10:39 +00:00
Corinna Vinschen 2512cf80ca * gdb.base/default.exp: Fix regular expression. 2003-03-20 14:45:50 +00:00
Corinna Vinschen 0d195a4f2d * gdb.base/args.exp: Fix regular expression. 2003-03-20 14:42:15 +00:00
Corinna Vinschen 8a2dbca8e1 * gdb.base/help.exp: Allow Win32 child process. 2003-03-20 14:19:41 +00:00
Corinna Vinschen bf02868245 * gdb.base/ending-run.exp: Check for Cygwin specific wrapper function
when stepping out of main().
2003-03-20 14:10:17 +00:00
Corinna Vinschen 182dbe8580 * gdb.base/default.exp: Check for win32 specific message when calling
"run" without executable.
2003-03-20 13:27:49 +00:00
Corinna Vinschen d67a6ba598 * gdb.base/args.exp: Expect .exe in output. 2003-03-20 13:06:51 +00:00
David Carlton 293e9a3142 2003-03-17 David Carlton <carlton@math.stanford.edu>
* gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): New
	test, for PR breakpoints/38.
	Call test_watchpoint_and_breakpoint.
	* gdb.base/watchpoint.c (func3): New function.
	(main): Call func3.
2003-03-17 19:51:58 +00:00
Michael Snyder e8d359df3a 2003-02-27 Michael Snyder <msnyder@redhat.com>
* gdb.base/restore.c (main): Return zero, so exit code
        will be consistant.
2003-02-27 18:36:31 +00:00
Michael Chastain 74641dfb93 2003-02-13 Michael Chastain <mec@shout.net>
* gdb.base/exprs.exp: Remove i960 remnants.
	* gdb.base/funcargs.exp: Likewise.
	* gdb.base/list.exp: Likewise.
	* gdb.base/ptype.exp: Likewise.
2003-02-15 18:32:45 +00:00
Jason Molenda c4f90d873c [ChangeLog]
2003-02-12  Jason Molenda  (jmolenda@apple.com)

        * symmisc.c (print_objfile_statistics): Include information about
        the number of psymtabs and symtabs in each object file.

[testsuite/ChangeLog]
2003-02-13  Jason Molenda  (jmolenda@apple.com)

        * gdb.base/maint.exp: Update maint print statistics regexp to include
        new entries.
2003-02-14 01:13:45 +00:00
Michael Chastain 070afcf86f 2003-02-05 Michael Chastain <mec@shout.net>
* gdb.base/dump.exp: Add missing copyright line.
2003-02-06 06:39:38 +00:00
Andrew Cagney 67f1660612 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that the mn10200-elf is obsolete.
	* configure.tgt: Obsolete mn10200-*-* target.
	* breakpoint.c (update_breakpoints_after_exec): Update comment to
	mention that the mn10200 is obsolete.
	* breakpoint.h: Ditto.
	* MAINTAINERS: Mark the mn10200-elf as obsolete.
	* config/mn10200/mn10200.mt: Obsolete file.
	* config/mn10200/tm-mn10200.h: Obsolete file.
	* mn10200-tdep.c: Obsolete file.

Index: testsuite/ChangeLog
2003-02-04  Andrew Cagney  <ac131313@redhat.com>

	* gdb.disasm/mn10200.exp: Obsolete file.
	* gdb.trace/Makefile.in (clean mostlyclean): Remove mn10200.
	* gdb.disasm/Makefile.in (clean mostlyclean): Remove mn10200.
	* gdb.base/watchpoint.exp: Mark the mn10200 xfails as obsolete.
2003-02-04 22:49:19 +00:00
Michael Chastain 9ba61c5d3a 2003-02-01 Michael Chastain <mec@shout.net>
* gdb.base/advance.c (marker1): New marker function.
	* gdb.base/advance.exp: When the 'advance' command lands on the
	return breakpoint, it can legitimately stop on either the
	current line or the next line.  Accommodate both outcomes.
	* gdb.base/until.exp: Likewise.
2003-02-03 16:07:31 +00:00