Commit Graph

46665 Commits

Author SHA1 Message Date
Andrew Cagney 8a076db965 2005-01-13 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (mi_execute_command): Print the exception.
	* cli/cli-interp.c (safe_execute_command): Print the exception.
	* exceptions.h (exception_print): Declare.
	* exceptions.c (struct catcher): Add field print_message.
	(catcher_init): Add parameter print_message, store in the catcher
	struct.
	(print_and_throw): Only print the message when print_message.
	(catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
	catcher_init.
	(catch_exception): Pass print_message=0 to catcher_init.
2005-01-14 18:55:33 +00:00
Andrew Cagney bc8332bb44 Index: ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* varobj.c (varobj_create): Add missing \n.

Index: testsuite/ChangeLog
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output.
	* gdb.mi/mi2-var-cmd.exp: Ditto.
2005-01-14 18:17:20 +00:00
Michael Snyder 4e18e2de1e 2005-01-13 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.h: Whitespace tweaks.
2005-01-14 04:41:36 +00:00
Michael Snyder ca0b4d12c7 2005-01-13 Michael Snyder <msnyder@redhat.com>
* wince.c: Whitespace tweaks.
2005-01-14 04:33:08 +00:00
Michael Snyder 887a3a14e2 2005-01-13 Michael Snyder <msnyder@redhat.com>
* uw-thread.c: Whitespace tweaks.
2005-01-14 04:03:02 +00:00
Michael Snyder 0a4a0819f3 2005-01-13 Michael Snyder <msnyder@redhat.com>
* utils.c: Whitespace tweaks.
2005-01-14 04:01:37 +00:00
Michael Snyder 3636de8b48 2005-01-13 Michael Snyder <msnyder@redhat.com>
* solist.h: Whitespace tweaks.
2005-01-14 04:00:06 +00:00
Michael Snyder d183932d0a 2005-01-13 Michael Snyder <msnyder@redhat.com>
* tracepoint.[ch]: Whitespace tweaks.
2005-01-14 03:59:19 +00:00
Michael Snyder 318965d7c1 2005-01-13 Michael Snyder <msnyder@redhat.com>
* somsolib.[ch]: Whitespace tweaks.
2005-01-14 03:12:43 +00:00
Andrew Cagney 79e714b42a Fix ChangeLog foobar. 2005-01-14 02:35:06 +00:00
Andrew Cagney b315da3853 2005-01-13 Andrew Cagney <cagney@gnu.org>
* exceptions.h (struct exception): Make message const.
	* mi/mi-main.c (mi_execute_command): Pass result.message directly
	to fputstr_unfiltered.
2005-01-14 02:33:24 +00:00
Michael Snyder cbd3c883c0 2005-01-13 Michael Snyder <msnyder@redhat.com>
* stack.c: Whitespace tweaks.
2005-01-14 02:32:25 +00:00
Michael Snyder 7095b86368 2005-01-13 Michael Snyder <msnyder@redhat.com>
* solib-aix.c: Whitespace tweaks.
	* solib.c: Whitespace tweaks.
	* solib-frv.c: Whitespace tweaks.
	* solib.h: Whitespace tweaks.
	* solib-irix.c: Whitespace tweaks.
	* solib-som.c: Whitespace tweaks.
	* solib-sunos.c: Whitespace tweaks.
	* solib-svr4.[ch]: Whitespace tweaks.
2005-01-14 02:04:02 +00:00
Michael Snyder 2c1ab59266 2005-01-13 Michael Snyder <msnyder@redhat.com>
* ser-tcp.c: Whitespace tweaks.
	* ser-unix.c: Whitespace tweaks.
	* serial.h: Whitespace tweaks.
2005-01-14 01:59:20 +00:00
Michael Snyder 41ccc9f609 2005-01-13 Michael Snyder <msnyder@redhat.com>
* scm-valprint.c: Whitespace tweaks.
2005-01-14 01:57:03 +00:00
Michael Snyder 2ec664f5c4 2005-01-13 Michael Snyder <msnyder@redhat.com>
* rs6000-nat.c: Whitespace tweaks.
2005-01-14 01:54:49 +00:00
Michael Snyder 238603485f 2005-01-13 Michael Snyder <msnyder@redhat.com>
* remote.c: Whitespace tweaks.
2005-01-14 01:46:08 +00:00
Andrew Cagney 6b1b7650d1 2005-01-13 Andrew Cagney <cagney@gnu.org>
* defs.h (error_last_message, error_init): Delete declaration.
	* utils.c (fatal, vfatal): Call throw_vfatal.
	(error, verror): Call throw_verror;
	(do_write, error_stream_1): Delete function.
	(error_stream): Simplify, call error.
	(error_last_message, error_init, gdb_lasterr): Delete.
	(error_silent): Simplify, call throw_vsilent.
	* mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
	* main.c (captured_main): Delete call to error_init.
	* exceptions.c (throw_verror, throw_verror)
	(throw_vsilent): New functions.
	(do_write, print_and_throw): New functions.
	(last_message): New global.
	(throw_reason): Replace error_last_message with last_message.
	(catch_exceptions_with_msg): Dup the message.
	* exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
	Declare.
2005-01-14 01:20:38 +00:00
Michael Snyder 90c065fb13 2005-01-13 Michael Snyder <msnyder@redhat.com>
* remote-st.c: Whitespace tweaks.
2005-01-14 01:08:21 +00:00
Michael Snyder 8a0ce09a33 2005-01-13 Michael Snyder <msnyder@redhat.com>
* remote-sim.c: Whitespace tweaks.
2005-01-14 01:05:37 +00:00
Michael Snyder 1fa79fac02 2005-01-13 Michael Snyder <msnyder@redhat.com>
* remote-mips.c: Whitespace tweaks.
2005-01-14 01:03:41 +00:00
Michael Snyder beda959798 2005-01-13 Michael Snyder <msnyder@redhat.com>
* pa64solib.[ch]: Whitespace tweaks.
2005-01-14 01:01:34 +00:00
Michael Snyder 28397f5986 2005-01-13 Michael Snyder <msnyder@redhat.com>
* mdebugread.c: Whitespace tweaks.
2005-01-14 00:59:32 +00:00
Michael Snyder ba5e7e8df2 2005-01-13 Michael Snyder <msnyder@redhat.com>
* main.c: Whitespace tweaks.
2005-01-14 00:58:15 +00:00
Michael Snyder 907d819a05 2005-01-13 Michael Snyder <msnyder@redhat.com>
* interps.c: Whitespace tweaks.
2005-01-14 00:55:36 +00:00
Michael Snyder 9d1ff73f7b 2005-01-13 Michael Snyder <msnyder@redhat.com>
* infrun.c: Whitespace tweaks.
2005-01-14 00:51:43 +00:00
Michael Snyder 1f5d0fc991 2005-01-13 Michael Snyder <msnyder@redhat.com>
* infcmd.c: Whitespace tweaks.
2005-01-14 00:48:32 +00:00
Michael Snyder d9788fe8ba 2005-01-13 Michael Snyder <msnyder@redhat.com>
* hpux-thread.c: Whitespace tweaks.
2005-01-14 00:25:00 +00:00
Michael Snyder 3b95120005 2005-01-13 Michael Snyder <msnyder@redhat.com>
* hppa-hpux-tdep.c: Whitespace tweaks.
2005-01-14 00:23:41 +00:00
Michael Snyder 3a9a986fbf 2005-01-13 Michael Snyder <msnyder@redhat.com>
* gdbcore.h: Whitespace tweaks.
2005-01-14 00:21:19 +00:00
Michael Snyder d3f1782188 2005-01-13 Michael Snyder <msnyder@redhat.com>
* gdbcmd.h: Whitespace tweaks.
2005-01-14 00:19:14 +00:00
Michael Snyder 308671566d 2005-01-13 Michael Snyder <msnyder@redhat.com>
* gdb-events[.c, .h, .sh]: Whitespace tweaks.
2005-01-14 00:16:53 +00:00
gdbadmin 7e171d1f5a *** empty log message *** 2005-01-14 00:00:34 +00:00
Michael Snyder de6854b507 2005-01-13 Michael Snyder <msnyder@redhat.com>
* corefile.c: Whitespace tweaks.
2005-01-13 23:56:25 +00:00
Michael Snyder 037174871a 2005-01-13 Michael Snyder <msnyder@redhat.com>
* completer.c: Whitespace tweaks.
2005-01-13 23:52:28 +00:00
Michael Snyder 9b5c5aad72 2005-01-13 Michael Snyder <msnyder@redhat.com>
* coff-solib.c: Whitespace tweaks.
	* coff-solib.h: Whitespace tweaks.
2005-01-13 23:45:29 +00:00
Michael Snyder 30fdc99fa8 2005-01-13 Michael Snyder <msnyder@redhat.com>
* cli-out.c: Whitespace tweaks.
2005-01-13 23:39:40 +00:00
Michael Snyder 1272ad1410 2005-01-13 Michael Snyder <msnyder@redhat.com>
* breakpoint.c: Whitespace tweaks.
2005-01-13 23:35:54 +00:00
Michael Snyder 4791eb66b6 2005-01-13 Michael Snyder <msnyder@redhat.com>
* cli/cli-interp.c: Tweak comments, per coding standard.
2005-01-13 23:31:17 +00:00
Alan Modra e5f80da454 daily update 2005-01-13 23:00:05 +00:00
Andrew Cagney ce43223b29 2005-01-13 Andrew Cagney <cagney@gnu.org>
* breakpoint.c (gdb_breakpoint_query): Update, use
	catch_exceptions_with_msg.
	(do_captured_breakpoint): Add uiout parameter.
	(gdb_breakpoint): Update, use catch_exceptions_with_msg.
	* mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
	gdb_thread_select.  Return MI_CMD_ERROR instead of
	MI_CMD_CAUGHT_ERROR.
	(mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
	(enum captured_mi_execute_command_actions): Delete
	EXECUTE_COMMAND_DISPLAY_ERROR.
	(captured_mi_execute_command): Delete code handling
	MI_CMD_CAUGHT_ERROR.
	(mi_execute_command): Don't check for
	EXECUTE_COMMAND_DISPLAY_ERROR.
	* mi/mi-cmd-break.c (breakpoint_notify): Update call to
	gdb_breakpoint_query.
	(mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
	* mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
	* gdb.h (gdb_thread_select, gdb_list_thread_ids)
	(gdb_breakpoint, gdb_breakpoint_query): Add error_message
	parameter.
	* thread.c (thread_command): Update call.
	(gdb_thread_select, gdb_list_thread_ids): Update, call
	catch_exceptions_with_msg.
2005-01-13 22:08:27 +00:00
Andrew Cagney f30f06b84e 2005-01-13 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (mi_execute_command): Use catch_exception,
	eliminate call to error_last_message.
	(captured_mi_execute_command): Change return type to void.
2005-01-13 18:15:02 +00:00
Andrew Cagney c1043fc2c1 2005-01-12 Andrew Cagney <cagney@gnu.org>
* exceptions.c (exception_none): New variable.
	* Makefile.in: Update dependencies.
	* interps.c: Include "exceptions.h".
	(interpreter_exec_cmd, interp_exec): Update to return "struct
	exception"
	* exceptions.h (no_exception): Declare.
	* tui/tui-interp.c (tui_exec): Update to return "struct exception"
	* mi/mi-interp.c: Include "exceptions.h".
	(mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
	'struct exception".
	* cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
	(do_captured_execute_command): Update to use catch_exception.
	* interps.h: Include "exceptions.h".
	(interp_exec_ftype, interp_exec): Return "struct exception".
2005-01-13 02:35:39 +00:00
Andrew Cagney 2a78bfb53c 2005-01-12 Andrew Cagney <cagney@gnu.org>
* exceptions.h (throw_reason): Rename throw_exception.
	(enum errors, struct exception): Define.
	(catch_exception_ftype): Define.
	(catch_exception, throw_exception): Declare.
	* exceptions.c (throw_exception): Rewrite.
	(throw_reason): New function.
	(struct catcher, catcher_state_machine): Replace "reason" with
	"exception", delete "gdberrmsg".
	(catch_exception): New function.
	(catcher_init): Replace "gdberrmsg" parameter with "exception".
	(catch_errors, catch_exceptions_with_msg): Re-implement passing
	exception to catcher_init.
	* utils.c (error_silent, error_stream_1): Use throw_reason.
	(internal_verror, quit): Ditto.
	* breakpoint.c (insert_catchpoint, break_command_1): Ditto.
	* remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
	* remote.c (remote_open_1, interrupt_query): Ditto.
2005-01-13 00:12:50 +00:00
gdbadmin cd0960cf4e *** empty log message *** 2005-01-13 00:00:04 +00:00
Alan Modra 310368cbdf daily update 2005-01-12 23:00:05 +00:00
Mark Kettenis 07baa8eeeb * configure.in: Be sure to invoke config.sub using the shell.
* configure: Regenerate.
2005-01-12 22:12:24 +00:00
Mark Kettenis fa565c2b2d * i386fbsd-tdep.c: Update copyright year. Include "gdbcore.h",
"regcache.h", "gdb_assert.h" and "bsd-uthread.h".
(i386fbsd_jmp_buf_reg_offset): New variable.
(i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
functions.
(i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
* Makefile.in (i386fbsd-tdep.o): Update dependency.
* config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
2005-01-12 21:54:13 +00:00
Mark Kettenis 82f5c14f4f * bsd-uthread.h: New file.
* bsd-uthread.c: New file.
* Makefile.in (bsd_uthread_h): New variable.
(ALLDEPFILES): Add bsd-uthread.c.
(bsd-uthread.o): New dependency.
2005-01-12 21:43:35 +00:00
Mark Kettenis 42a6e6a0ae * solib.h Update copyright year.
(struct so_list): Forward declaration.
(solib_read_symbols): New prototype.
* solib.c (solib_read_symbols): New function.
(solib_add): Call solib_read_symbols to read in symbols.
(update_solib_list): Call observer_notify_solib_loaded.
2005-01-12 20:52:18 +00:00