Commit Graph

2374 Commits

Author SHA1 Message Date
Mark Kettenis c65016bd6f * gdb.base/freebpcmd.exp: Increase timeout. 2005-12-26 14:44:38 +00:00
Mark Kettenis d082a1e285 * gdb.gdb/selftest.exp (test_with_self): Update copyright check. 2005-12-26 14:38:20 +00:00
Daniel Jacobowitz d3c32a0efe * gdb.base/default.exp: Update check for "show version". 2005-12-17 23:39:26 +00:00
Randolph Chung 9fdb1f509e 2005-12-09 Randolph Chung <tausq@debian.org>
* gdb.asm/asm-source.exp (hppa64-*-hpux*): New.
	* gdb.asm/pa64.inc: New file.
2005-12-09 11:05:26 +00:00
Randolph Chung 5f2c56f79b 2005-12-09 Randolph Chung <tausq@debian.org>
* gdb.asm/common.inc: Indent commands.
	* gdb.asm/asmsrc1.s: Likewise.
	* gdb.asm/asmsrc2.s: Likewise.
2005-12-09 11:02:09 +00:00
Randolph Chung 8117349cb4 2005-12-09 Randolph Chung <tausq@debian.org>
* gdb.arch/pa-nullify.exp: Handle hppa64-*-* targets.
	(get_addr_of_sym): Remove duplicate print.
	(gen_core): xfail hppa*-*-hpux*, update expected output.
	* gdb.arch/pa-nullify.s: Reformat to also work on HPUX.
	* gdb.arch/pa64-nullify.s: New file.
2005-12-09 10:57:40 +00:00
Randolph Chung 8f07f25a06 2005-12-09 Randolph Chung <tausq@debian.org>
* gdb.base/dump.exp: Mark hppa64-*-* as 64-bit target.
2005-12-09 10:55:09 +00:00
Daniel Jacobowitz 55b3918466 gdb/
* valops.c (value_struct_elt): Clarify error message.
gdb/testsuite/
2005-12-07  Christophe Lyon  <christophe.lyon@st.com>
	* gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force
	code generation for these functions.
	* gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an
	error message.
2005-12-07 23:07:54 +00:00
Andrew Stubbs 31e2b00f59 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
* breakpoint.c (BREAK_ARGS_HELP): New mecro.
	(_initialize_breakpoint): Enhance break, tbreak, hbreak and thbreak
	commands' help by adding more information and using BREAK_ARGS_HELP
	to duplicate the common parts.  Remove now-redundant cross-references.

testsuite/
	* gdb.base/help.exp (help b, help br, help bre, help brea)
	(help break): Update the expected message.
2005-12-02 14:58:18 +00:00
Stephane Carrez c3d0b56edf * gdb.asm/m68hc11.inc: Setup the data section.
* gdb.asm/asm-source.exp (m6811-*-*): Don't use the target board linker
	script for this test.
	(m6812-*-*): Likewise.
2005-11-11 11:18:53 +00:00
Randolph Chung 36ae0ea97e 2005-11-09 Randolph Chung <tausq@debian.org>
* gdb.base/structs2.exp: Update xfail to only trigger for gcc-3.x.
2005-11-09 15:45:55 +00:00
Wu Zhou 9d6f42e946 gdb.base/break.exp: Fix a comment typo. 2005-11-09 06:41:30 +00:00
Elena Zannoni e2126a1475 2005-11-03 Jim Blandy <jimb@redhat.com>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * gdb.dwarf2/mac-fileno.exp, gdb.dwarf2/mac-fileno.S: New tests.
2005-11-04 02:48:51 +00:00
Corinna Vinschen e0ac7199c4 * gdb.arch/gdb1558.c: Include stdio.h. 2005-11-02 11:03:02 +00:00
Mark Kettenis 31d3fb18aa * gdb.asm/asm-source.exp: Use -e instead of --entry. 2005-10-31 20:33:22 +00:00
Mark Kettenis e52b687cc5 * gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage. 2005-10-31 16:00:46 +00:00
Paul Gilliam f4711d79c9 2005-10-17 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
        vscr" tests to better match output.
2005-10-17 22:16:54 +00:00
Jim Blandy 987a910636 2005-10-12 Jim Blandy <jimb@redhat.com>
* gdb.base/structs.exp (any): New function.
	(test_struct_returns): Don't make any assumptions at all about
	what value the function returns when GDB can't set the return
	value.
2005-10-12 17:56:41 +00:00
Joel Brobecker 2336bb5846 * gdb.ada/arrayidx/p.adb: New file.
* gdb.ada/arrayidx.exp: New testcase
2005-10-10 01:14:36 +00:00
Joel Brobecker 1495de3fd3 * gdb.ada/array_return/pck.ads: New file.
* gdb.ada/array_return/pck.adb: New file.
        * gdb.ada/array_return/p.adb: New file.
        * gdb.ada/array_return.exp: New testcase.
2005-10-10 01:11:51 +00:00
Joel Brobecker 705335ead4 * gdb.base/arrayidx.c: New file.
* gdb.base/arrayidx.exp: New testcase.
2005-10-03 21:28:04 +00:00
Nick Roberts 3ca42dbe77 * annotate.c (breakpoints_changed, annotate_frames_invalid)
(_initialize_annotate): Print breakpoints-invalid and
frames-invalid for level 2 annotations only.

* gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations
frames-invalid and breakpoints-invalid are no longer generated
with level 3 so don't expect them in the output.
2005-09-28 23:44:02 +00:00
Nick Roberts 11ee99408d *** empty log message *** 2005-09-28 23:32:43 +00:00
Bob Rossi 39fb8e9e0f 2005-09-27 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Remove .*
        from test.  Escape the | in mi_gdb_test call.
        * gdb.mi/mi-basics.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-disassemble.exp,
        gdb.mi/mi-pthreads.exp, gdb.mi/mi-stack.exp, gdb.mi/mi2-basics.exp,
        gdb.mi/mi2-cli.exp, gdb.mi/mi2-disassemble.exp,
        gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-stack.exp: Add extra details to
        expected regex's in mi_gdb_test calls.
        * lib/mi-support.exp: Remove arbitrary .* from tests.
        (mi_gdb_test): Add string_regex variable. Add anchor to main -re.
        Fully anchor GDB/MI expected results in mi_gdb_test.
        * lib/gdb.exp (string_to_regexp): Escape the ] character.
        * gdb.base/sizeof.exp: Remove escape character. Correct test.
2005-09-27 22:39:04 +00:00
Paul Brook 2af48f6826 2005-09-26 Paul Brook <paul@codesourcery.com>
* arm-tdep.c (arm_type_align): New function.
	(arm_push_dummy_call): Use it.  Ensure proper argument alignment.
	(arm_extract_struct_value_address): Remove.
	(arm_use_struct_convention): Rename...
	(arm_return_in_memory): ... To this.  Return nonzero for all small
	aggregates under the EABI.
	(arm_return_value): New function.
	(arm_gdbarch_init): Default for VFP float model for EABI binaries.
	Use set_gdbarch_return_value instead of obsolete functions.
	* testsuite/long_long.exp: Exclude eabi targets from arm FPA float
	format test.
2005-09-26 02:17:34 +00:00
Paul Gilliam 1260befad1 2005-09-20 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-abi.exp: Elide the 'in' from what's expected
         after a 'finish' command.
2005-09-20 23:40:51 +00:00
Wu Zhou f34502bcd6 * bfp-test.c: New file.
* bfp-test.exp: New testcase.
2005-09-20 09:01:14 +00:00
Wu Zhou ca9295176c * gdb.fortran/subarray.exp: New testcase to test the evaluation
of subarray and substring variable.
	* gdb.fortran/subarray.f: New source file for the test of subarray
	and substring variable evaluation.
	* gdb.fortran/exprs.exp: Add four tests for substring evaluation
	of string constant.
2005-09-20 06:37:03 +00:00
Daniel Jacobowitz c761af65c2 * gdb.arch/altivec-regs.exp, gdb.arch/altivec-abi.exp: Update
copyright dates.
2005-09-19 18:09:08 +00:00
Paul Gilliam 561d7a1d04 * rs6000-tdep.c (_initialize_rs6000_tdep): Get rid of the unused
'info powerpc' command prefix.
* gdb.arch/altivec-regs.exp (info powerpc altivec): Replace the 'info
  powerpc altivec' test with an almost identical 'info vector' test.
2005-09-19 17:38:04 +00:00
Paul Gilliam b2b64cc92a 2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
        vscr" tests to match output.
2005-09-13 23:13:50 +00:00
Paul Gilliam 6ac4d15a41 2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "print $vx<i>" tests to match
        output.
2005-09-13 22:07:05 +00:00
Bob Rossi 40e55befbf 2005-09-11 Bob Rossi <bob@brasko.net>
* lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
	* gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
	  commands that return an MI output command and an asyncronous MI output
	  command.
	* gdb.mi/mi-console.exp: Ditto.
2005-09-11 20:24:54 +00:00
Bob Rossi 3c7385ece0 2005-09-11 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-var-child.c: Include <string.h>.
2005-09-11 12:50:45 +00:00
Daniel Jacobowitz a6cd0eb35d * killed.exp: Correct gdb_expect syntax. 2005-09-10 14:17:34 +00:00
Corinna Vinschen 2f168eed4b * lib/mi-support.exp (mi_gdb_load): Fix typo. 2005-08-09 19:00:16 +00:00
Bob Rossi ecd3fd0f9d 2005-08-02 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-basics.exp: Tell mi_gdb_start to use a PTY for inferior.
       (test_setshow_inferior_tty): Add global mi_inferior_tty_name to scope.
       Change tests to inferior-tty-set/show.
       * gdb.mi/mi-console.exp: Tell mi_gdb_start to use a PTY for inferior.
       (47-exec-next): Use mi_gdb_test to get GDB and Inferior output.
       * gdb.mi/mi-syn-frame.exp: Tell mi_gdb_start to use a PTY for
       inferior.  Use mi_gdb_test to get GDB and Inferior output.
       * lib/mi-support.exp (mi_inferior_spawn_id): Add inferior PTY
       descriptor.
       (mi_inferior_tty_name): Add inferior PTY file name.
       (mi_gdb_start): Add INFERIOR_PTY parameter.
       (mi_gdb_test): Add IPATTERN parameter.
2005-08-04 01:52:31 +00:00
Bob Rossi f1ea48cbd9 2005-08-02 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Add MESSAGE
	parameter to mi_gdb_test.
	* lib/mi-support.exp (mi_gdb_test): Make MESSAGE parameter necessary.
2005-08-02 14:21:01 +00:00
Daniel Jacobowitz 6e650a6732 * gdb.mi/mi-var-child.c (do_children_tests): Initialize
struct_declarations.
	* gdb.mi/mi-var-child.exp: Step over the initialization of
	struct_declarations.
2005-07-31 22:10:53 +00:00
Daniel Jacobowitz 8be260b6f9 * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change.
* gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c.
	* gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c.
	* gdb.mi/mi-stack.exp: Update to use mi-stack.c as a source file.
	* gdb.mi/mi-var-child.exp: Update to use mi-var-child.c as a source
	file.
2005-07-31 21:24:25 +00:00
Nick Roberts d8d83e9b52 * gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
(do_children_tests): Assign values to the extra elements.

* gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
them for tests for "-var-update --no-values" and
"-var-update --all-values".
Add test for "-var-list-children --simple-values".

* gdb.mi/basics.c (callee4): Add integer array D[3]...

* gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
"-stack-list-locals --simple-values"  Improve doc strings and
comments.
2005-07-27 02:21:16 +00:00
Nick Roberts 4e660f0729 *** empty log message *** 2005-07-27 02:18:24 +00:00
Mark Kettenis 598b7a6f2b * gdb.base/sigaltstack.exp (finish_test): KFAIL gdb/1736 on
*-*-openbsd*.
* gdb.base/sigstep.exp (advancei): KFAIL gdb/1736 on *-*-openbsd*.
2005-07-18 19:23:54 +00:00
Mark Kettenis 6bdae935ab * gdb.base/sigaltstack.c (main): Use stack_t instead of `struct
sigaltsatck'.
2005-07-18 08:12:03 +00:00
Bob Rossi 1323e929ae +2005-07-14 Bob Rossi <bob@brasko.net>
+
+       * gdb.base/default.exp (tty): Changed output of command.
+       * gdb.base/help.exp (help tty): Ditto.
2005-07-14 14:49:23 +00:00
Mark Kettenis b1a9c08259 * gdb.arch/i386-sse.exp: Compile with -msse when using GCC. 2005-07-12 15:20:00 +00:00
Mark Kettenis 10a844a290 * gdb.mi/mi2-stack.exp (test_stack_locals_listing): Remove test for
-stack-select-frame without arguments.
(test_stack_frame_listing): Add test for newly implemented command
-stack-info-frame.
2005-07-10 20:49:38 +00:00
Bob Rossi 3cb3b8dfd1 Index: gdb/ChangeLog
+2005-07-06  Bob Rossi  <bob@brasko.net>
+
+	* fork-child.c (fork-inferior): Use accessor function for
+	inferior_io_terminal.
+	* infcmd.c (inferior_io_terminal): Make static.
+	(set_inferior_io_terminal): New function.
+	(get_inferior_io_terminal): Ditto.
+	(tty_command): Use accessor function.
+	(_initialize_infcmd): Add inferior_tty setshow variable.
+	(_initialize_infcmd): Remove tty command.
+	(_initialize_infcmd): Add a tty command that is an alias.
+	* inferior.h (set_inferior_io_terminal): New prototype.
+	(get_inferior_io_terminal): Ditto.
+	(new_tty_prefork): Add const qualifier to parameter.
+	* inflow.c (inferior_thisrun_terminal): Add const qualifier.
+	(new_tty_prefork): Add const qualifier to parameter.
+	* nto-procfs (procfs_create_inferior): Use accessor function.
+	(procfs_create_inferior): Add const qualifier to locals.
+	* win32-nat.c (child_create_inferior): Ditto.
+	* mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function.
+	(mi_cmd_inferior_tty_set): Ditto.
+	* mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show
+	* mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype.
+	(mi_cmd_inferior_tty_show): Ditto.

Index: gdb/doc/ChangeLog
+2005-07-06  Bob Rossi  <bob@brasko.net>
+
+	* gdb.texinfo (GDB/MI Miscellaneous Commands): Add -inferior-tty-set
+	and -inferior-tty-show.
+	(Input/Output): Document "set/show inferior-tty" and tty alias.

Index: gdb/testsuite/ChangeLog
+2005-07-06  Bob Rossi  <bob@brasko.net>
+
+	* gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty
+	command.
+	(Copyright): Update copyright.
2005-07-06 14:54:37 +00:00
Wu Zhou a0c5fbcf0e * gdb.fortran/exprs.exp (test_arithmetic_expressions): Add five
tests to evaluate exponentiation expression.
2005-07-06 06:11:54 +00:00
Andreas Schwab 984971d0d4 * gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
main to avoid warnings.

	* gdb.base/sigrepeat.exp: Fix reference to undefined variable.
2005-06-29 15:01:49 +00:00