2005-01-15 Andrew Cagney * exceptions.c (do_captured_command) (struct captured_command_args): Delete. (catch_command_errors): Simplify by inlining call to catch_errors. * exceptions.c (struct catcher): Delete field print_message. (catcher_init): Delete print_message parameter. (catch_exception, catch_exceptions_with_msg, catch_errors): Update. (throw_it): Delete prefix parameter. (throw_verror, throw_vfatal, throw_error): Update. 2005-01-14 Andrew Cagney * exceptions.c (print_and_throw): Delete, replaced by throw_it. (throw_reason): Leave the exception's message field blank. (throw_it): New function, create the exception and throw it. (throw_verror, throw_vfatal, throw_error): Call throw_it. (print_any_exception): New function. (catch_errors, catch_exceptions_with_msg): Call print_any_exception. (throw_exception): Move code calling annotate_error and annotate_quit from here ... (print_exception): ... to here. * exceptions.c (exception_fprintf, exception_print): Move printing of \n from here ... (print_exception): ... to here. (print_flush): New function. (exception_print, exception_fprintf): Replace duplicated flush and wrap code with call to print_flush. (print_and_throw): Simplify, by using xstrvprintf, print_flush, and print_exception. (do_write): Delete. * remote-sds.c (interrupt_query): Call throw_reason instead of throw_exception. * remote-mips.c (mips_error, mips_kill): Ditto * ocd.c (interrupt_query): Ditto. * nto-procfs.c (interrupt_query): Ditto. * monitor.c (monitor_interrupt_query): Ditto. 2005-01-14 Jeff Johnston * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions. 2005-01-14 Andrew Cagney * exceptions.h (catch_exceptions): Delete errstring parameter. (catch_exceptions_with_msg): Ditto. * exceptions.c (catch_exceptions_with_msg): Update. (catch_exceptions): Update. * symfile-mem.c (add_vsyscall_page): Update. * frame.c (get_current_frame): Update. * wrapper.c (gdb_value_struct_elt): Update. * exceptions.c (catch_exceptions): Update. * thread.c (gdb_list_thread_ids, gdb_thread_select): Update. * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update. * remote-fileio.c (remote_fileio_request): Update. * exceptions.h (exception_fprintf): Declare. (exception_print): Drop pre_print parameter. * mi/mi-main.c (mi_execute_command): Update exception_print call. * cli/cli-interp.c (safe_execute_command): Update exception_print call. * remote.c (remote_open_1): Instead of passing an error prefix to catch_exceptions, use catch_exceptions and exception_fprintf. (remote_start_remote): Change return type to void. * breakpoint.c (insert_bp_location): Instead of passing an error prefix to catch_exceptions, use catch_exceptions and exception_fprintf. (insert_catchpoint): Change return type to void. (break_command_1): Update exception_print call. * exceptions.c (exception_fprintf): New function. (print_exception): New function. (exception_print): Use print_exception. * utils.c (error_output_message): Delete function. * defs.h (error_output_message): Delete declaration. * linespec.c (symtab_from_filename, decode_variable): Use throw_error instead of error_silent. * breakpoint.c (do_captured_parse_breakpoint): Change return type to void. (break_command_1): Use catch_exception and check the error return status. * exceptions.c (throw_error): New function. (throw_vsilent): Delete function. * exceptions.h (throw_error): Declare. (throw_vsilent): Delete declaration. * utils.c (error_silent): Delete function. * defs.h (error_silent): Delete declaration. * 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. * varobj.c (varobj_create): Add missing \n. 2005-01-13 Michael Snyder * cli/cli-decode.h: Whitespace tweaks. * wince.c: Whitespace tweaks. * uw-thread.c: Whitespace tweaks. * utils.c: Whitespace tweaks. * tracepoint.[ch]: Whitespace tweaks. * solist.h: Whitespace tweaks. 2005-01-13 Andrew Cagney * exceptions.h (struct exception): Make message const. * mi/mi-main.c (mi_execute_command): Pass result.message directly to fputstr_unfiltered. 2005-01-13 Michael Snyder * stack.c: Whitespace tweaks. * somsolib.[ch]: Whitespace tweaks. * 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. * ser-tcp.c: Whitespace tweaks. * ser-unix.c: Whitespace tweaks. * serial.h: Whitespace tweaks. * scm-valprint.c: Whitespace tweaks. * rs6000-tdep.c: Whitespace tweaks. * rs6000-nat.c: Whitespace tweaks. * remote.c: Whitespace tweaks. 2005-01-13 Andrew Cagney * 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-13 Michael Snyder * remote-st.c: Whitespace tweaks. * remote-sim.c: Whitespace tweaks. * remote-mips.c: Whitespace tweaks. * pa64solib.[ch]: Whitespace tweaks. * mdebugread.c: Whitespace tweaks. * main.c: Whitespace tweaks. * interps.c: Whitespace tweaks. * infrun.c: Whitespace tweaks. * infcmd.c: Whitespace tweaks. * hpux-thread.c: Whitespace tweaks. * hppa-hpux-tdep.c: Whitespace tweaks. * gdbcore.h: Whitespace tweaks. * gdbcmd.h: Whitespace tweaks. * gdb-events[.c, .h, .sh]: Whitespace tweaks. * corefile.c: Whitespace tweaks. * completer.c: Whitespace tweaks. * coff-solib.c: Whitespace tweaks. * coff-solib.h: Whitespace tweaks. * cli-out.c: Whitespace tweaks. * breakpoint.c: Whitespace tweaks. * cli/cli-interp.c: Tweak comments, per coding standard. 2005-01-13 Andrew Cagney * 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. * 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-12 Andrew Cagney * 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". * 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-12 Mark Kettenis * 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. * 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. * 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. * i386bsd-nat.c: Update copyright year. Don't include and . (register_u_addr, kernel_u_size): Remove functions. * config/i386/obsd.mh (NAT_FILE): Remove. * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h. * config/i386/nm-obsd.h: Remove file. 2005-01-12 Andrew Cagney * exceptions.c: Include "gdb_string.h". (enum catcher_state, struct catcher): Define. (current_catcher): New global, replaces catch_return; (catch_return): Delete. (throw_exception): Use current_catcher->buf; (catcher_init, catcher_pop, catcher_state_machine): New functions. (catcher): Delete. (struct catch_errors_args): Delete. (do_catch_errors): Delete. (catch_exceptions): Replace body with call to catch_exceptions_with_msg. (catcher): Delete. (catch_exceptions_with_msg, catch_errors): Re-implement using catcher_state_machine. * exceptions.h (enum return_reason, RETURN_MASK) (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL) (return_mask, throw_exception, catch_exceptions_ftype) (catch_exceptions_with_msg, catch_errors_ftype, catch_errors) (catch_command_errors_ftype, catch_command_errors): Move to exceptions.h. * exceptions.c, exceptions.h: New files. * top.c: Do not include . (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return) (throw_exception, catcher, catch_exceptions) (catch_exceptions_with_msg, struct catch_errors_args) (do_catch_errors, catch_errors, struct captured_command_args) (do_captured_command, catch_command_errors): Move to exceptions.c. * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h". * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto. * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto. * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto. * remote-e7000.c, objc-lang.c, ocd.c: Ditto. * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto. * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto. * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto. * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto. * ada-valprint.c, ada-lang.c: Ditto. * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and exceptions.o. Update all dependencies. 2005-01-11 Mark Kettenis * config/i386/nm-fbsd.h: Update copyright year. Don't include "config/nm-bsd.h". (KERNEL_U_SIZE): Remove macro. (kernel_u_size): Remove prototype. * config/vax/nbsdaout.mh (NAT_FILE): Remove. * config/vax/nm-nbsdaout.h: Remove file. 2005-01-10 Elena Zannoni * MAINTAINERS: Remove self from sh/sh64 maintainership. 2005-01-10 Andrew Cagney * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux maintainer. * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit changes to CRIS. * MAINTAINERS: Remove "Maintenance Only". Spell out that CAN COMMIT means can approve). 2005-01-10 Mark Kettenis * vax-nat.c: Update copyright year. Include "inf-ptrace.h". (vax_register_u_offset): Make statuc. (_initialize_vax_nat): Construct and add target vector. * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-ptrace.o. * Makefile.in (vax-nat.o): Update dependencies. * inf-ptrace.h: Update copyright year. Sync comment with inf-ptrace.c. (inf_ptrace_trad_target): New prototype. * inf-ptrace.c: Update copyright year. Include "regcache.h" and "gdb_assert.h" (inf_ptrace_target): Add comment. (inf_ptrace+register_u_offset): New variable. (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) (inf_ptrace_store_register, inf_ptrace_store_registers) (inf_ptrace_trad_target): New functions. * Makefile.in (inf-ptrace.o): Update dependencies. 2005-01-09 Mark Kettenis * configure.ac: Provide prerequisite headers when checking , and . * configure: Regenerate. 2005-01-08 Mark Kettenis * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h instead of the removed tm-nbsd.h. 2005-01-07 Mark Kettenis * config/ia64/tm-linux.h: Tweak comment. Update copyright year. Don't include "tm-ia64.h". * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove. * config/ia64/tm-ia64.h: Remove. Move contents ... * ia64-tdep.h: ... here. Update copyright year. 2005-01-07 Andrew Cagney * configure.ac: Rename configure.in, require autoconf 2.59. * configure: Re-generate. * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*, xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm to configdirs. * configure.in: Replace configdirs with multiple references to AC_CONFIG_SUBDIRS. * configure: Re-generate. 2005-01-05 Andreas Schwab * ia64-tdep.c: Include "osabi.h". (native_find_global_pointer): Delete. (ia64_find_global_pointer): Renamed from generic_elf_find_global_pointer. (FIND_GLOBAL_POINTER): Delete. Change all users to call ia64_find_global_pointer instead. (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references to ia64_linux_sigcontext_register_address and ia64_linux_write_pc. Don't set tdep->find_global_pointer. (_initialize_ia64_tdep): Call gdbarch_register instead of deprecated register_gdbarch_init. (struct gdbarch_tdep): Remove find_global_pointer field and move to ... * ia64-tdep.h (struct gdbarch_tdep): ... here. (ia64_linux_sigcontext_register_address): Remove declaration. (ia64_linux_getunwind_table): Likewise. (ia64_linux_write_pc): Likewise. * ia64-linux-tdep.c: Include "osabi.h". (ia64_linux_sigcontext_register_address): Make static. (ia64_linux_write_pc): Likewise. (ia64_linux_init_abi): New. (_initialize_ia64_linux_tdep): New. * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on $(osabi_h). 2005-01-05 Kevin Buettner * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on functions in ia64-aix-tdep.c. * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove function defined in ia64-aix-tdep.c. * ia64-aix-tdep.c: Remove file. * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from this list. * Makefile.in (ia64-aix-tdep.o): Delete. 2005-01-05 Baurjan Ismagulov Committed by Andrew Cagney. * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup. * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup. * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup. * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup. * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup. * aix-thread.c (_initialize_aix_thread): Get rid of the deprecated_add_show_from_set call. * alpha-tdep.c (_initialize_alpha_tdep): Ditto. * arm-tdep.c (_initialize_arm_tdep): Ditto. * command.h (add_setshow_enum_cmd): Add arguments for returning new list elements. * cli/cli-decode.c (add_setshow_enum_cmd): Ditto. * mips-tdep.c (_initialize_mips_tdep): Modify calls to add_setshow_enum_cmd. 2005-01-04 Mark Kettenis * configure.host (ia64-*-aix*): Remove. * configure.tgt (ia64-*-aix*): Remove. * config/ia64/aix.mh: Remove file. * config/ia64/aix.mt: Remove file. * config/ia64/tm-aix.h: Remove file. * ia64-aix-nat.c: Remove file. * Makefile.in (ia64-aix-nat.o): Remove dependency. * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o. Add back inf-ptrace.o. 2005-01-04 Andrew Cagney * version.in: Change format from 6.3.50_2005-01-04-cvs to 6.3.50.20050104-cvs. 2005-01-04 Andreas Schwab * breakpoint.c (break_command_1): Always free err_msg before returning when an exception was caught. 2005-01-01 Joel Brobecker * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion in register number for addil instruction. For older changes see ChangeLog-2004. Local Variables: mode: change-log left-margin: 8 fill-column: 74 version-control: never End: