Commit Graph

2450 Commits

Author SHA1 Message Date
Daniel Jacobowitz ab5c9f60b7 gdb/
* eval.c (evaluate_subexp_for_address): Don't incorrectly discard
	calls to C++ operator*.
gdb/testsuite/
	* gdb.cp/userdef.cc, gdb.cp/userdef.exp: New tests for unary
	operator*.
2006-07-25 04:24:50 +00:00
Daniel Jacobowitz 4c42eaff63 gdb/
* corefile.c (reopen_exec_file): Only check for an open exec file.
	Use exec_file_attach.
	* exec.c (exec_open): Make static.
	(exec_file_command): Don't use target_preopen.  Query directly about
	changing the file.
	* gdbcore.h (exec_open): Remove prototype.
gdb/testsuite/
	* gdb.base/completion.exp: Update for change in "file" behavior.
	* gdb.stabs/weird.exp: Likewise.
	* lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
	* lib/gdb.exp (gdb_file_cmd): Likewise.  Kill the program explicitly.
2006-07-24 20:38:08 +00:00
Nathan Sidwell 0155cc767d * gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
* gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
2006-07-24 14:20:50 +00:00
Andrew Stubbs 16026cd75d 2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-cmds.c (source_verbose, trace_commands): New variables.
	(source_script): New function.
	(source_verbose_cleanup): New function.
	(source_command): Move old contents to source_script.
	Make function static. Parse -v option and call source_script.
	(init_cli_cmds): Update source command help.
	Add 'set trace-commands' command.
	* cli/cli-script.c (command_next_depth): New static variable.
	(suppress_next_print_command_trace): New static variable.
	(reset_command_nest_depth): New function.
	(print_command_trace): New function.
	(execute_control_command): Split the continue_control and break_control
	cases, add calls to print_command_trace and count the nest depth.
	(while_command): Set suppress_next_print_command_trace.
	(if_command): Likewise.
	* top.c (execute_command): Call print_command_trace.
	* cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
	(source_command): Change to source_script.
	* main.c (captued_main): Use source_script instead of source_command.
	* top.h (source_command): Change to source_script.
	* event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
	* cli/cli-script.h (print_command_trace): Export.
	(reset_command_nest_depth): Likewise.

docs/
	* gdb.texinfo (Optional warnings and messages): Add
	'set/show trace-commands'.
	(Command files): Add '-v' to source command.

testsuite/
	* gdb.base/default.exp: Update source command error message.
	* gdb.base/help.exp: Update 'help source' message.
2006-07-21 14:46:56 +00:00
Daniel Jacobowitz 16963cb64b gdb/
* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
	* gdb.cp/bs15503.exp: Update comment for no longer crashing
	test.
2006-07-20 22:50:07 +00:00
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