+2005-03-25 Mark Kettenis <kettenis@gnu.org>
+
+ * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
+
+2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (target_is_thumb, caller_is_thumb)
+ (arm_pc_is_thumb_dummy): Remove.
+ (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
+
+2005-03-25 Anthony Green <green@redhat.com>
+
+ * remote.c (remote_store_registers): Fix memset usage.
+ * std-regs.c (value_of_builtin_frame_reg): Ditto.
+ (value_of_builtin_frame_fp_reg): Ditto.
+ (value_of_builtin_frame_reg): Ditto.
+
+2005-03-25 Mark Mitchell <mark@codesourcery.com>
+
+ * ser-base.c (ser_unix_write): Rename to ...
+ (ser_base_write): ... this.
+ (ser_unix_nop_flush_output): Rename to ...
+ (ser_base_flush_output): ... this.
+ (ser_unix_flush_input): Rename to ...
+ (ser_base_flush_input): ... this.
+ (ser_unix_nop_send_break): Rename to ...
+ (ser_base_send_break): ... this.
+ (ser_unix_nop_drain_output): Rename to ...
+ (ser_base_drain_output): ... this.
+ (ser_unix_nop_raw): Rename to ...
+ (ser_base_raw): ... this.
+ (ser_unix_nop_get_tty_state): Rename to ...
+ (ser_base_set_tty_state): ... this.
+ (ser_unix_nop_noflush_set_tty_state): Rename to ...
+ (ser_base_noflush_set_tty_state): ... this.
+ (ser_unix_nop_print_tty_state): Rename to ...
+ (ser_base_print_tty_state): ... this.
+ (ser_unix_nop_setbaudrate): Rename to ...
+ (ser_base_setbaudrate): ... this.
+ (ser_unix_nop_setstopbits): Rename to ...
+ (ser_base_setstopbits): ... this.
+ (ser_unix_async): Rename to ...
+ (ser_base_async): ... this.
+ * ser-base.h (ser_unix_write): Rename to ...
+ (ser_base_write): ... this.
+ (ser_unix_nop_flush_output): Rename to ...
+ (ser_base_flush_output): ... this.
+ (ser_unix_flush_input): Rename to ...
+ (ser_base_flush_input): ... this.
+ (ser_unix_nop_send_break): Rename to ...
+ (ser_base_send_break): ... this.
+ (ser_unix_nop_drain_output): Rename to ...
+ (ser_base_drain_output): ... this.
+ (ser_unix_nop_raw): Rename to ...
+ (ser_base_raw): ... this.
+ (ser_unix_nop_get_tty_state): Rename to ...
+ (ser_base_set_tty_state): ... this.
+ (ser_unix_nop_noflush_set_tty_state): Rename to ...
+ (ser_base_noflush_set_tty_state): ... this.
+ (ser_unix_nop_print_tty_state): Rename to ...
+ (ser_base_print_tty_state): ... this.
+ (ser_unix_nop_setbaudrate): Rename to ...
+ (ser_base_setbaudrate): ... this.
+ (ser_unix_nop_setstopbits): Rename to ...
+ (ser_base_setstopbits): ... this.
+ (ser_unix_async): Rename to ...
+ (ser_base_async): ... this.
+ * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
+ * ser-tcp.c (_initialize_ser_tcp): Likewise.
+ * ser-unix.c (hardwire_flush_input): Likewise.
+ (_initializer_ser_hardwire): Likewise.
+
+ * Makefile.in (SFILES): Add ser-base.c.
+ (ser_base_h): New variable.
+ (ser-base.o): New target.
+ (ser-pipe.o): Depend on $(ser_base_h).
+ (ser-tcp.o): Likewise.
+ (ser-unix.o): Likewise. Do not depend on $(event_loop_h).
+ * configure.ac (SER_HARDWIRE): Include ser-base.o where
+ appropriate.
+ * ser-base.c: New file.
+ (push_event): Move from ser-unix.c.
+ (fd_event): Likewise.
+ (reschedule): Likewise.
+ (ser_unix_write): Likewise.
+ (ser_unix_nop_flush_output): Likewise.
+ (ser_unix_flush_input): Likewise.
+ (ser_unix_nop_send_break): Likewise.
+ (ser_unix_nop_drain_output): Likewise.
+ (ser_unix_nop_raw): Likewise.
+ (ser_unix_nop_get_tty_state): Likewise.
+ (ser_unix_nop_set_tty_state): Likewise.
+ (ser_unix_nop_noflush_set_tty_state): Likewise.
+ (ser_unix_nop_print_tty_state): Likewise.
+ (ser_unix_nop_setbaudrate): Likewise.
+ (ser_unix_nop_setstopbits): Likewise.
+ (ser_unix_async): Likewise.
+ * ser-base.h: New file.
+ * ser-pipe.c (ser-base.h): Include it.
+ * ser-tcp.c (ser-base.h): Likewise.
+ * ser-unix.h (ser_unix_nop_flush_output): Remove.
+ (ser_unix_flush_input): Likewise.
+ (ser_unix_nop_send_break): Likewise.
+ (ser_unix_nop_raw): Likewise.
+ (ser_unix_nop_get_tty_state): Likewise.
+ (ser_unix_nop_set_tty_state): Likewise.
+ (ser_unix_nop_print_tty_state): Likewise.
+ (ser_unix_nop_noflush_set_tty_state): Likewise.
+ (ser_unix_nop_setbaudrate): Likewise.
+ (ser_unix_nop_setstopbits): Likewise.
+ (ser_unix_nop_drain_output): Likewise.
+ (ser_unix_wait_for): Likewise.
+ (ser_unix_write): Likewise.
+ (ser_unix_async): Likewise.
+ * ser-unix.c (event-loop.h): Do not include it.
+ (push_event): Move to ser-base.c.
+ (fd_event): Likewise.
+ (reschedule): Likewise.
+ (ser_unix_write): Likewise.
+ (ser_unix_nop_flush_output): Likewise.
+ (ser_unix_flush_input): Likewise.
+ (ser_unix_nop_send_break): Likewise.
+ (ser_unix_nop_drain_output): Likewise.
+ (ser_unix_nop_raw): Likewise.
+ (ser_unix_nop_get_tty_state): Likewise.
+ (ser_unix_nop_set_tty_state): Likewise.
+ (ser_unix_nop_noflush_set_tty_state): Likewise.
+ (ser_unix_nop_print_tty_state): Likewise.
+ (ser_unix_nop_setbaudrate): Likewise.
+ (ser_unix_nop_setstopbits): Likewise.
+ (ser_unix_async): Likewise.
+ (ser_unix_wait_for): Make it static.
+ * configure: Regenerated.
+
+2005-03-25 Mark Kettenis <kettenis@gnu.org>
+
+ * dwarf2-frame.h: Update copyrigh year.
+ (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
+ * dwarf2-frame.c: Update copyright year.
+ (struct dwarf2_frame_cache): Add member `retaddr_reg'.
+ (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
+ (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
+
+2005-03-23 Martin Hunt <hunt@redhat.com>
+
+ * configure.ac: Remove -fwritable-strings from CFLAGS.
+ * configure: Regenerate.
+
+2005-03-21 Michael Snyder <msnyder@redhat.com>
+
+ * mn10300-prologue.c (fix_frame_pointer): Delete.
+ (set_movm_offsets) Don't return just because movm_args is
+ zero -- still need to save pc and sp in saved_regs.
+ (mn10300_analyze_prologue): Don't return prematurely without
+ calling set_movm_offsets (for pc and sp at minimum).
+
+2005-03-21 Mark Mitchell <mark@codesourcery.com>
+
+ * configure.ac (stat.st_blksize): Check for it.
+ (getuid): Likewise.
+ (getgid): Likewise.
+ * configure: Regenerated.
+ * config.in: Likewise.
+ * remote-fileio.c (remote_fileio_to_fio_stat): Check
+ HAVE_STRUCT_STAT_ST_BLKSIZE.
+
+2005-03-21 Christopher Faylor <cgf@timesys.com>
+
+ * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
+ here.
+ (do_initial_child_stuff): Move clearing of thread list to a place
+ before a thread ould be created.
+ (child_attach): Ditto.
+
+2005-03-21 Michael Snyder <msnyder@redhat.com>
+
+ * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
+ instead of pc addr for frame_id. Otherwise "until" won't work.
+
+2005-03-21 Kevin Buettner <kevinb@redhat.com>
+
+ * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
+ comment.
+
+2005-03-20 Mark Kettenis <kettenis@gnu.org>
+
+ * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
+ * varobj.c (my_value_equal): Mark val2 as volatile.
+
+ * cp-names.y: Add prototype for yyparse.
+
+2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
+ * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
+ VALADDR.
+
+2005-03-18 Kevin Buettner <kevinb@redhat.com>
+
+ * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
+ * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
+ (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
+ New error/exception enums.
+ * dwarf2loc.c (exceptions.h): Include.
+ (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
+ via TRY_CATCH mechanism. Print error messages for TLS related
+ exceptions.
+ * linux-thread-db.c (thread_db_get_thread_local_address): Throw
+ exceptions instead of printing errors.
+
+2005-03-18 Mark Kettenis <kettenis@gnu.org>
+
+ * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
+ (decimal2str, octal2str): Change to return a string allocated by
+ get_cell. Use xsnprint instead of snprintf.
+ (paddr_u, paddr_d): Adjust for changed calling convention of
+ decimal2str.
+ (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
+ (int_string): Likewise. Adjust for changed calling convention of
+ decimal2str and octal2str.
+
+2005-03-18 Kevin Buettner <kevinb@redhat.com>
+
+ * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
+ Adjust incorrectly computed constant for realtime signal frame.
+
+2005-03-18 Mark Kettenis <kettenis@gnu.org>
+
+ From Ralf Corsepius <ralf.corsepius@rtems.org>
+ * configure.tgt: Add m68*-*-rtems*.
+
+2005-03-17 Mark Kettenis <kettenis@gnu.org>
+
+ * defs.h (xsnprintf): New prototype.
+ * utils.c (xsnprintf): New function.
+
+ * corelow.c (get_core_register_section): Replace usage of sprintf
+ and strcpy with xstrprintf and xstrdup.
+
+ * mips-tdep.c (mips_single_step_through_delay): Put back check for
+ breakpoint lost with the introduction of this function.
+
+2005-03-17 Paul Brook <paul@codesourcery.com>
+
+ * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
+ * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
+
+2005-03-16 Mark Mitchell <mark@codesourcery.com>
+
+ * event-top.c (handle_sigquit): Do not define for systems without
+ SIGQUIT.
+ (sigquit_token): Likewise.
+ (async_init_signals): Allow for systems that do not
+ define SIGQUIT.
+ * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
+
+2005-03-15 Mark Mitchell <mark@codesourcery.com>
+
+ * utils.c (internal_vproblem): Guard call to fork with
+ HAVE_WORKING_FORK.
+ * cli/cli-cmds.c (shell_escape): Guard call to vfork with
+ HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
+
+ * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
+ S_IRGRP and related macros.
+ (remote_fileio_mode_to_target): Likewise.
+
+2005-03-14 Ben Elliston <bje@au.ibm.com>
+
+ * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
+ more primitive library.
+
+2005-03-13 Mark Kettenis <kettenis@gnu.org>
+
+ * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
+ sprintf.
+ * target.c (normal_pid_to_str): Likewise.
+ * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
+ Change capitalization of "thread". Use ptid_get_pid instead of
+ GETPID.
+
+ * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
+ a combination of xmalloc and sprintf.
+
+2005-03-13 Jim Blandy <jimb@redhat.com>
+
+ * configure.ac: Use '=', not '=='; the latter is a GNU extension.
+ * configure: Regenerated.
+
+2005-03-11 Michael Snyder <msnyder@redhat.com>
+
+ * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
+ stub fn with real implementatin mn10300_unwind_dummy_id.
+ (mn10300_push_dummy_call): Implement. Bare bones version,
+ does not handle structs or floats.
+
+2005-03-11 Jim Blandy <jimb@redhat.com>
+
+ Avoid warnings due to the use of -Wuninitialized without -O.
+ * configure.ac (build_warnings): Include -Wuninitialized only if
+ CFLAGS is unset at configure time, or CFLAGS is set and includes
+ some -O option other than -O0.
+ * configure: Regenerated.
+
+ * mips-tdep.c (show_mips_abi): Change calling conventions to match
+ those expected by add_setshow_enum_cmd. Use 'file' argument as
+ appropriate.
+
+2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (SFILES): Add cp-names.y.
+ (libiberty_h, safe_ctype_h): New.
+ (YYFILES): Add cp-names.c.
+ (YYOBJ): Add cp-names.o.
+ (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
+ (clean): Remove test-cp-names$(EXEEXT).
+ (local-maintainer-clean): Remove cp-names.c.
+ * cp-names.y: New file.
+ * cp-support.c (find_last_component): Delete.
+ (d_left, d_right): Define.
+ (cp_canonicalize_string, mangled_name_to_comp): New functions.
+ (cp_class_name_from_physname, method_name_from_physname): Rewrite
+ to use mangled_name_to_comp.
+ * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
+ (cp_comp_to_string): New prototypes.
+ * config/djgpp/fnchange.lst: Add cp-names.c.
+
+2005-03-10 Bob Rossi <bob@brasko.net>
+
+ * main.c (print_gdb_help): Remove the --[no]async help message.
+
+2005-03-10 Mark Kettenis <kettenis@gnu.org>
+
+ * proc-api.c: Update copyright year.
+ (_initialize_proc_api): Revert previous patch, removing spurious
+ space instead.
+
+2005-03-09 Joel Brobecker <brobecker@adacore.com>
+
+ * regcache.c: Fix typo in comment.
+
+2005-03-09 David Lecomber <david@lecomber.net>
+
+ * proc-api.c (_initialize_proc_api): Fix invalid multi-line
+ i18n text.
+
+2005-03-09 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
+ address for 64-bit code.
+ (sparc_unwind_dummy_id): Likewise.
+ * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
+ frame base address convention.
+ (sparc64_push_dummy_call): Likewise.
+ * sparc64nbsd-tdep.c: Update copyright year.
+ (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
+ address for 64-bit code.
+ (sparc64nbsd_init_abi): Tweak comment.
+ * sparc64obsd-tdep.c: Update copyright year.
+ (sparc64obsd_frame_cache): Adjust cached frame base address for
+ 64-bit code.
+ (sparc64obsd_init_abi): Tweak comment.
+
+2005-03-09 Corinna Vinschen <vinschen@redhat.com>
+
+ * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
+
+2005-03-09 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (dwarf_decode_lines): Use the complete filename
+ when creating include psymtabs.
+
+2005-03-08 Mark Mitchell <mark@codesourcery.com>
+
+ * environ.h (struct environ): Rename to ...
+ (struct gdb_environ): ... this.
+ (make_environ): Update prototype.
+ (free_environ): Likewise.
+ (init_environ): Likewise.
+ (get_in_environ): Likewise.
+ (set_in_environ): Likewise.
+ (unset_in_environ): Likewise.
+ (environ_vector): Likewise.
+ * environ.c (make_environ): Replace "struct environ" with "struct
+ gdb_environ".
+ (free_environ): Likewise.
+ (init_environ): Likewise.
+ (environ_vector): Likewise.
+ (get_in_environ): Likewise.
+ (set_in_environ): Likewise.
+ (unset_in_environ): Likewise.
+ * infcmd.c (inferior_environ): Likewise.
+ * inferior.h (inferior_environ): Likewise.
+
+2005-03-08 Joel Brobecker <brobecker@adacore.com>
+
+ * infcmd.c (run_command_1): New function, extracted from
+ run_command.
+ (run_command): Replace implementation by call to run_command_1.
+ (start_command): Use run_command_1 to insert the temporary
+ breakpoint and run the program. Remove code that's no longer
+ needed, as already done at the proper time by run_command_1.
+
+2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * symfile.c (clear_symtab_users): Call
+ clear_current_source_symtab_and_line first.
+
+2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
+
+ * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
+ * c-exp.y (exp): Add unary plus.
+ * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
+ * valarith.c (value_x_unop): Add UNOP_PLUS case.
+ (value_pos): New.
+ * value.h (value_pos): Declare.
+
+ * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
+ (remote_fetch_registers): Allow uppercase hex when resyncing.
+ (remote_write_bytes): Only call get_memory_write_packet_size once.
+ Robustify packet size calculation for very small packets. Check
+ that at least one byte will be written.
+
+ * tracepoint.c (target_is_remote): Allow extended-remote.
+ (struct collection_list): Allow 256 registers, like the comment
+ said.
+ (add_memrange): Fix comment.
+ (read_actions): Turn EOF into 'end'.
+
+2005-03-08 Corinna Vinschen <vinschen@redhat.com>
+
+ * Makefile.in: Add dependencies for iq2000-tdep.o.
+ * configure.tgt: Add iq2000-*-* target.
+ * iq2000-tdep.c: New file.
+ * config/iq2000/iq2000.mt: New file.
+
+2005-03-07 Joel Brobecker <brobecker@adacore.com>
+
+ * doc/observer.texi (executable_changed): New observer.
+ * symtab.c: Include "observer.h".
+ (find_main_name): New function.
+ (main_name): If name_of_main is unset, then compute it
+ using find_main_name.
+ (symtab_observer_executable_changed): New function.
+ (_initialize_symtab): Attach executable_changed observer.
+ * exec.c: Include "observer.h".
+ (exec_file_attach): Emit executable_changed notification.
+ * symfile.c: Include "observer.h".
+ (reread_symbols): Send an executable_changed if appropriate.
+ * Makefile.in (exec.o): Add dependency on observer.h.
+ (symfile.o): Likewise.
+ (symtab.o): Likewise.
+
+2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * findvar.c (read_var_value): Don't allocate V when it will not
+ be used. Add missing break for LOC_INDIRECT.
+
+2005-03-06 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc64fbsd-tdep.c: Include "solib-svr4.h".
+ (sparc64fbsd_init_abi): Set skip_trampoline_code and
+ solib_svr4_fetch_link_map_offsets.
+ * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
+
+2005-03-06 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-nat.c (child_follow_fork): Call target_terminal_ours before
+ printing output. Use fprintf_unfiltered. Only print output when
+ debugging.
+
+2005-03-05 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
+ argument.
+ (sparc64_store_arguments): Constify.
+