Commit Graph

2445 Commits

Author SHA1 Message Date
Andrew Stubbs 6d7fd486d7 2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
2006-07-19 13:05:21 +00:00
Daniel Jacobowitz 29e8a84408 * blockframe.c (find_pc_partial_function): Use the minimal symbol
size to control the cache entry, if available.
	* minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
	symbols with zero and non-zero sizes differently.

	* gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
2006-07-19 02:17:23 +00:00
Daniel Jacobowitz 6afcfa399a * gdb.threads/print-threads.exp: Use gdb_breakpoint. 2006-07-18 19:37:23 +00:00
Mark Kettenis 267a692b80 * gdb.base/long_long.exp (gdb_test_long_long): Exclude
*-*-openbsd* from targets for wich we expect ARM FPA floating
point format.
2006-07-17 22:10:03 +00:00
Nick Roberts 616f635db8 Expect frame-begin annotation. 2006-07-17 07:29:47 +00:00
Nick Roberts 85d2fec4c8 *** empty log message *** 2006-07-17 07:28:35 +00:00
Joel Brobecker 85b4c6e892 * gdb.base/help.exp: Adjust "help unset" test to accept
any list of unset commands.
2006-07-14 22:53:19 +00:00
Daniel Jacobowitz fb93362492 gdb/
* infcall.c (value_arg_coerce): Use value_cast_pointers for
	references.  Avoid value_cast to a reference type.  Don't silently
	convert pointers to references.
	* valops.c (value_cast_pointers): New, based on value_cast.
	(value_cast): Use it.  Reject reference types.
	(value_ref): New.
	(typecmp): Use it.
	* value.h (value_cast_pointers, value_ref): New prototypes.
gdb/testsuite/
	* gdb.cp/ref-params.exp: New test.
	* gdb.cp/ref-params.cc: New source file.
	* gdb.cp/Makefile.in (EXECUTABLES): Add ref-params.
2006-07-13 04:31:42 +00:00
Mark Kettenis 1dff4b6426 * gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
spaces/tabs in regular expressions since they might not be there.
2006-07-07 23:10:42 +00:00
Andrew Stubbs 40d2e0e326 2006-07-07 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: New file.
2006-07-07 12:53:47 +00:00
Nathan Sidwell f6c957d29d * gdb.base/huge.c: Allow CRASH_GDB to be set from command
line.
	* gdb.base/huge.exp: Loop over compilation to find a size that
	is acceptable.
	* gdb.base/remote.exp: Correct expected strings.
	* gdb.dwarf2/mac-fileno.S: Avoid # comments.
2006-07-04 09:40:28 +00:00
Daniel Jacobowitz bd4a4c8015 Typo fix. 2006-06-22 20:31:12 +00:00
Daniel Jacobowitz b9c5a23d0d * gdb.base/store.exp: Don't use gdb_suppress_entire_file. 2006-06-22 19:57:02 +00:00
Daniel Jacobowitz 9af2e58deb * gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
native.
2006-06-22 19:53:46 +00:00
Daniel Jacobowitz 30930ca5c5 * gdb.stabs/exclfwd.exp: Skip the test if configure did not
enable stabs testing.
2006-06-22 19:50:57 +00:00
Daniel Jacobowitz aa32fa1d64 * auxv.exp: Intercept undefined command messages before
gdb_test_multiple does.
2006-06-22 19:32:41 +00:00
Daniel Jacobowitz 321fef153f Add changelog entry for unintended earlier commit:
* Makefile.in (host_alias): Remove.
	(target_alias): Use @target_noncanonical@.
	(site.exp): Don't set host_alias.
	* aclocal.m4: Remove contents.  Include acx.m4.
	* configure: Regenerated.
	* configure.ac: Use ACX_NONCANONICAL_TARGET.
2006-06-22 19:17:49 +00:00
Daniel Jacobowitz 90750ee799 Revert accidental commit. 2006-06-22 19:17:09 +00:00
Daniel Jacobowitz be2a5f717b gdb/
* NEWS: Mention qSupported.
	* remote.c (struct remote_state): Add explicit_packet_size.
	(get_remote_packet_size): Check explicit_packet_size.
	(get_memory_packet_size): Likewise.
	(PACKET_qSupported): New enum value.
	(struct protocol_feature, remote_supported_packet)
	(remote_packet_size, remote_protocol_features)
	(remote_query_supported): New.
	(remote_open_1): Reset explicit_packet_size.  Call
	remote_query_supported.
	(_initialize_remote): Register qSupported.
gdb/doc/
	* gdb.texinfo (Remote configuration): Document set / show
	remote supported-packets.
	(General Query Packets): Document qSupported packet.
gdb/gdbserver/
	* server.c (handle_query): Handle qSupported.
2006-06-21 13:57:21 +00:00
Nathan Sidwell e63b55d15b * lib/gdb.exp (gdb_load_cmd): New. 2006-06-13 13:20:25 +00:00
Nathan Sidwell 5600ea19e0 gdb/
* remote-file.io.c (remote_fileio_func_system): Treat zero length
	string as NULL.  Adjust for NULL pointer argument.
	* doc/gdb.texinfo (system): Document behaviour with zero length
	string.

	gdb/testsuite/
	* gdb.base/fileio.c: Add system(NULL) test.
	* gdb.base/fileio.exp: Check it.
2006-06-13 08:55:22 +00:00
Nathan Sidwell e1c2defab5 * gdb.base/break.c: Add 10a breakpoint at }
* gdb.base/break.exp: Add test for breakpoint at }
	* gdb.cp/anon-union.cc: Add code at end of function.
	* gdb.cp/anon-union.exp: Adjust end of function breakpoint.
	* gdb.mi/var-cmd.c: Add code at end of function.
	* gdb.mi/mi-var-display.exp: Adjust end of next.
	* gdb.mi/mi2-var-display.exp: Likewise.
	* gdb.base/fileio.c: Add stop function and insert calls at
	stopping places.
	* gdb.base/fileio.exp: Breakpoint stop function and remove
	explicit line number references.
2006-06-13 08:46:17 +00:00
Joel Brobecker 6c0112ecf2 * gdb.base/del.exp (test_delete_alias): New function.
Now check that both "del" and "d" work as aliases for "delete".
2006-05-20 01:35:27 +00:00
Fred Fish 154189a4a5 Reviewed and approved by Daniel Jacobowitz <drow@false.org>
2006-05-18  Fred Fish  <fnf@specifix.com>
	* gdb.base/a2-run.exp: Allow part of test to run when args aren't
	required.  Check for spurious output after program exits normally.
2006-05-18 19:34:01 +00:00
Fred Fish 582e64c29d Suggested, reviewed, and approved by Daniel Jacobowitz <drow@false.org>
2006-05-17  Fred Fish  <fnf@specifix.com>
	* gdb.base/relocate.exp: Use gdb_file_cmd rather than
	gdb_load, so it works in the simulator.
2006-05-17 23:59:40 +00:00
Fred Fish 8ef6493a1d Reviewed and approved by Daniel Jacobowitz <drow@false.org>
2006-05-11  Fred Fish  <fnf@specifix.com>
	* gdb.base/bang.exp: Ignore unexpected output between the
	"program exited normally" and the gdb prompt, as many other
	tests do.
2006-05-11 13:09:58 +00:00
Mark Kettenis 692b141ccb * gdb.base/help.exp: Make "delete checkpoint" part option for
"help d" and "help delete" tests.
2006-05-07 20:50:35 +00:00
Ulrich Weigand 540b8a309d * gdb.mi/mi-basics.exp: Add missing serial number to
expected output in some mi_gdb_test statements.
	* gdb.mi/mi2-basics.exp: Likewise.
2006-05-06 20:39:15 +00:00
David S. Miller c324242868 * gdb.mi/mi-regs.exp (111-data-list-register-values x): "No registers"
will get printed without a mi_cmd_data_list_register_values prefix.
	(*-data-list-register-*): Correct regular expressions to expect the new
	pseudo d? floating point registers.
	* gdb.mi/mi2-regs.exp: Likewise.
2006-05-05 23:34:40 +00:00
Joel Brobecker 9b6462d950 * gdb.base/del.c: New file.
* gdb.base/del.exp: New testcase.
2006-05-05 22:49:39 +00:00
David S. Miller 1303f75ea1 * gdb.base/savedregs.exp: Do not require that the dummy
frame location match up to a symbol and source file location.
2006-05-05 22:48:10 +00:00
David S. Miller 954de43bb9 * gdb.base/break.exp: Do not assume a breakpoint on
main will actually be in $srcfile when optimizing.
2006-05-05 22:45:35 +00:00
Daniel Jacobowitz c7e64c9a76 * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
* gdb.cp/m-static.cc (main): Write to test4.dummy, so that test4
	is allocated by the compiler.
	* gdb.mi/var-cmd.c: (do_special_tests): Write to u, anonu, s,
	anons, e, anone to force their allocation by the compiler.
2006-05-05 18:04:09 +00:00
Daniel Jacobowitz 79c214e04d * gdb.base/help.exp: Update expected text for help d and
help delete.
2006-05-05 15:45:09 +00:00
Mark Kettenis 27ce9a6de2 * gdb.asm/asm-source.exp: Add powerpc-*-netbsd* to the list of
NetBSD/ELF targets.
2006-05-01 22:21:35 +00:00
Mark Kettenis 8608915fb1 * gdb.base/sigbpt.exp (stepi_out): FAIL when inserting a
single-step breakpoint fails; make this a KFAIL on
sparc*-*-openbsd*.
* gdb.base/siginfo.exp: Likewise.
* gdb.base/sigstep.exp (advance, advancei): Likewise.
2006-05-01 16:39:36 +00:00
Michael Snyder b8db102de3 2006-04-26 Michael Snyder <msnyder@redhat.com>
* linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
	command to "delete fork" (no hyphen), compatible with other
	"delete" commands.
	(info_forks_command): Accept a fork ID argument, for info
	on a single fork.  Report if no matching forks.

2006-04-26  Michael Snyder  <msnyder@redhat.com>

	* gdb.base/multi-forks.exp: Modify patterns for "run to exit",
	which may have to consume output from other forks.
	Add tests to make sure that "delete fork" succeeded.

2006-04-27  Michael Snyder  <msnyder@redhat.com>

	* gdb.texinfo (delete-fork): Command renamed to "delete fork".
2006-04-27 23:03:42 +00:00
Michael Snyder c702009a72 2006-04-20 Michael Snyder <msnyder@redhat.com>
* 2006-03-22  Jim Blandy  <jimb@redhat.com>
	Add support for the Renesas M32C and M16C.

	* gdb.asm/asm-source.exp: Add m32c target.
	* gdb.asm/m32c.inc: Support for m32c target.
2006-04-20 23:24:23 +00:00
Andrew Stubbs e28493f226 2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
gdb/
	* cli/cli-script.c (struct user_args): Add command field.
	(arg_cleanup): Free command string.
	(setup_user_args): Copy the command line before relying on it.

gdb/testsuite/
	* gdb.base/commands.exp (recursive_source_test): New test.
2006-04-07 13:31:15 +00:00
David S. Miller 880da1859d * gdb.base/float.exp: Add pattern for sparc targets. 2006-04-04 23:17:41 +00:00
Daniel Jacobowitz 61d9b92fc1 gdb/
* cli/cli-script.c (insert_args): Handle NULL user_args.
gdb/testsuite/
	* gdb.base/commands.exp (stray_arg0_test): New test.
2006-03-30 16:51:20 +00:00
Paul Brook bd717df8b1 2006-03-30 Paul Brook <paul@codesourcery.com>
* gdb.mi/mi-until.exp: kfail broken until command.
	* gdb.mi/mi2-until.exp: Ditto.
2006-03-30 16:21:26 +00:00
Nick Roberts 5cc40a5834 New files. 2006-03-27 00:27:09 +00:00
Nick Roberts ec793d3caa *** empty log message *** 2006-03-27 00:22:31 +00:00
Alexandre Oliva 831004b79b gdb/ChangeLog:
* solib-svr4.c (svr4_current_sos): Move up initialization of
l_addr, such that it clearly covers all cases.
gdb/testsuite/ChangeLog:
* gdb.base/prelink.exp: Anchor tested-for regular expression
on gdb prompt.
2006-03-09 00:22:09 +00:00
Paul Brook effe49a0c7 2006-03-07 Paul Brook <paul@codesourcery.com>
* gdb.base/assign.exp: Correct fail message.
2006-03-07 21:40:50 +00:00
Paul Brook e546101697 2006-03-07 Paul Brook <paul@codesourcery.com>
* lib/compiler.c: Extract armcc version number.
	* lib/compiler.cc: Ditto.
2006-03-07 18:51:56 +00:00
Paul Brook fc91c6c2b9 2006-03-07 Paul Brook <paul@codesourcery.com>
* gdb.arch/altivec-abi.exp: Use nowarnings instead of
	additional_flags=-w.
	* gdb.arch/altivec-regs.exp: Ditto.
	* gdb.arch/e500-abi.exp: Ditto.
	* gdb.arch/e500-regs.exp: Ditto.
	* gdb.base/all-bin.exp: Ditto.
	* gdb.base/annota1.exp: Ditto.
	* gdb.base/annota3.exp: Ditto.
	* gdb.base/args.exp: Ditto.
	* gdb.base/arithmet.exp: Ditto.
	* gdb.base/assign.exp: Ditto.
	* gdb.base/async.exp: Ditto.
	* gdb.base/bang.exp: Ditto.
	* gdb.base/break.exp: Ditto.
	* gdb.base/call-rt-st.exp: Ditto.
	* gdb.base/completion.exp: Ditto.
	* gdb.base/cond-expr.exp: Ditto.
	* gdb.base/condbreak.exp: Ditto.
	* gdb.base/consecutive.exp: Ditto.
	* gdb.base/define.exp: Ditto.
	* gdb.base/display.exp: Ditto.
	* gdb.base/ena-dis-br.exp: Ditto.
	* gdb.base/environ.exp: Ditto.
	* gdb.base/eval-skip.exp: Ditto.
	* gdb.base/info-proc.exp: Ditto.
	* gdb.base/jump.exp: Ditto.
	* gdb.base/logical.exp: Ditto.
	* gdb.base/long_long.exp: Ditto.
	* gdb.base/maint.exp: Ditto.
	* gdb.base/miscexprs.exp: Ditto.
	* gdb.base/pc-fp.exp: Ditto.
	* gdb.base/pointers.exp: Ditto.
	* gdb.base/relational.exp: Ditto.
	* gdb.base/reread.exp: Ditto.
	* gdb.base/sect-cmd.exp: Ditto.
	* gdb.base/sep.exp: Ditto.
	* gdb.base/sepdebug.exp: Ditto.
	* gdb.base/until.exp: Ditto.
	* gdb.base/whatis-exp.exp: Ditto.
	* gdb.cp/annota2.exp: Ditto.
	* gdb.cp/annota3.exp: Ditto.
	* gdb.trace/actions.exp: Ditto.
	* gdb.trace/backtrace.exp: Ditto.
	* gdb.trace/circ.exp: Ditto.
	* gdb.trace/collection.exp: Ditto.
	* gdb.trace/deltrace.exp: Ditto.
	* gdb.trace/infotrace.exp: Ditto.
	* gdb.trace/limits.exp: Ditto.
	* gdb.trace/packetlen.exp: Ditto.
	* gdb.trace/passc-dyn.exp: Ditto.
	* gdb.trace/passcount.exp: Ditto.
	* gdb.trace/report.exp: Ditto.
	* gdb.trace/save-trace.exp: Ditto.
	* gdb.trace/tfind.exp: Ditto.
	* gdb.trace/tracecmd.exp: Ditto.
	* gdb.trace/while-dyn.exp: Ditto.
	* gdb.trace/while-stepping.exp: Ditto.
	* lib/gdb.exp: Ditto.
	(gdb_compile): Handle nowarning option.
2006-03-07 15:23:33 +00:00
Alexandre Oliva 5f4a23d95c * gdb.base/prelink.c, gdb.base/prelink-lib.c: Update FSF address.
* gdb.base/prelink.exp: Likewise.  Add -q to prelink runs.
Rename executable to prelinkt.  Don't re-prelink if we didn't
get a core file.  Test prelink -u exit status to tell whether
prelinking failed.  Use gdb_test_multiple.
2006-03-07 05:05:29 +00:00
Daniel Jacobowitz 9733fc9442 gdb/
* gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
	calls.
gdb/testsuite/
	* gdb.cp/inherit.exp (test_print_mi_member_types): New function.
	(do_tests): Call it.
2006-03-01 19:34:46 +00:00