+2001-11-21 Tom Tromey <tromey@redhat.com>
+
+ Fix for PR gdb/209, PR gdb/156:
+ * gdbarch.c, gdbarch.h: Rebuilt.
+ * gdbarch.sh: Added `construct_inferior_arguments'.
+ * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
+ Typo fix.
+ * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
+ * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
+ (inferior_argc, inferior_argv): New globals.
+ (notice_args_set): New function.
+ (set_inferior_args): Clear inferior_argc and inferior_argv.
+ (set_inferior_args_vector): New function.
+ (get_inferior_args): Handle inferior argument vector.
+ (run_command): Use get_inferior_args().
+ (notice_args_read): New function.
+ (_initialize_infcmd): Don't call set_inferior_args.
+ * command.h: Typo fix.
+ (cmd_list_element): Added pre_show_hook.
+ * main.c (captured_main): Added --args option.
+ (print_gdb_help): Document --args.
+ * inferior.h (construct_inferior_arguments): Declare.
+ (set_inferior_args_vector): Likewise.
+ * fork-child.c (construct_inferior_arguments): New function.
+
+2001-11-21 Kevin Buettner <kevinb@redhat.com>
+
+ * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
+ blocked signals.
+
+ * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
+
+2001-11-20 Jim Blandy <jimb@redhat.com>
+
+ * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
+ default definition; this is never used.
+
+2001-11-20 Keith Seitz <keiths@redhat.com>
+
+ * varobj.c (c_value_of_child): Release memory for "name" when
+ finshed using it.
+ (c_type_of_child): Likewise.
+ (cplus_value_of_child): Isolate the use of name_of_child to
+ one case that needs it.
+ Release memory for "name" when finished using it.
+
+2001-11-20 Keith Seitz <keiths@redhat.com>
+
+ * top.c (gdb_init): Call init_ui_hook before initializing
+ the default UI.
+
+2001-11-19 Elena Zannoni <ezannoni@redhat.com>
+
+ * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
+ declaration.
+
+2001-11-19 Elena Zannoni <ezannoni@redhat.com>
+
+ * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
+ accessing registers[].
+ (fill_fpregset): Ditto.
+
+2001-11-19 Elena Zannoni <ezannoni@redhat.com>
+
+ * infptrace.c (fetch_register): Dynamically allocate buffer for
+ register.
+ (store_register): Use regcache_collect, instead of accessing the
+ register buffer directly.
+
+2001-11-19 Daniel Jacobowitz <drow@mvista.com>
+
+ * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
+ cur_frame to heuristic_proc_desc.
+ (heuristic_proc_desc): Add cur_frame argument. Do not read SP
+ if cur_frame == 0.
+ (after_prologue): Pass cur_frame == 0 to find_proc_desc.
+ (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
+ (mips_init_extra_frame_info): Likewise.
+
+2001-11-19 Andrew Cagney <ac131313@redhat.com>
+
+ * defs.h (return_to_top_level): Comment.
+
+Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
+
+ * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
+ concatenation for error parameter.
+ (remote_cisco_open): Ditto.
+
+2001-11-19 Keith Seitz <keiths@redhat.com>
+
+ * varobj.c (c_value_of_child): Use the wrapper function,
+ gdb_value_struct_elt.
+ (cplus_value_of_child): Likewise.
+
+2001-11-18 Andrew Cagney <ac131313@redhat.com>
+
+ * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
+ * config/i386/tm-i386.h (NUM_REGS): Delete.
+
+2001-11-18 Kevin Buettner <kevinb@redhat.com>
+
+ * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
+ conversion for I386_LINUX_ORIG_EAX_REGNUM.
+
+2001-11-18 Andrew Cagney <ac131313@redhat.com>
+
+ * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
+ * config/i386/tm-embed.h: Delete.
+
+2001-11-17 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in (distclean): Explicitly delete Makefile et.al. in
+ gdbserver sub directory.
+
+2001-11-17 Andrew Cagney <ac131313@redhat.com>
+
+ * README: Mention need for alloca(). Mention problems with
+ alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
+
+2001-11-17 Kevin Buettner <kevinb@redhat.com>
+
+ * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
+ of accessing registers[] directly.
+
+2001-11-17 Kevin Buettner <kevinb@redhat.com>
+
+ * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
+ when fetching ORIG_EAX.
+
+2001-11-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * arm-linux-nat.c: Don't include <asm/ptrace.h>.
+ (fetch_register): Use elf_gregset_t instead of struct pt_regs.
+ (fetch_regs): Likewise.
+ (store_register): Likewise.
+ (store_regs): Likewise.
+
+2001-11-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
+ with regcache_collect.
+ (fill_fpregset): Likewise.
+
+2001-11-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
+ and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
+ * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
+ * sparc-linux-nat.c: New file, from Mark Kettenis.
+
+2001-11-16 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2read.c (dwarf_str_buffer): New.
+ (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
+ (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
+ (dwarf2_has_info): Clear dwarf_str_offset.
+ (dwarf2_build_psymtabs): Read .debug_str section if present.
+ (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
+ DWARF_STR_SIZE.
+ (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
+ (read_attribute): Handle DW_FORM_strp.
+ (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
+ handling code.
+ (read_indirect_string): New.
+ (dump_die): Handle DW_FORM_strp.
+
+2001-11-16 Jim Blandy <jimb@redhat.com>
+
+ * s390-tdep.c: Tweak argument-passing to match GCC bugs.
+ (is_float_singleton, is_struct_like, is_float_like): New
+ functions, that isolate the weirdness.
+ (is_double_or_float, is_simple_arg, pass_by_copy_ref,
+ is_double_arg): Use is_struct_like and is_float_like, rather than
+ testing the type codes ourselves.
+ (s390_push_arguments): When passing args on the stack, align each
+ on to a four-byte boundary, regardless of what the type itself
+ needs.
+
+2001-11-16 Ben Harris <bjh21@netbsd.org>
+
+ * Makefile.in (os9kread.o): Replace $< with autoconf-approved
+ $(srcdir)/....
+ (procfs.o): Ditto.
+ (z8k-tdep.o): Ditto.
+
+2001-11-16 Ben Harris <bjh21@netbsd.org>
+
+ * MAINTAINERS (write-after-approval): Add self.
+
+2001-11-15 Jim Blandy <jimb@redhat.com>
+
+ * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
+ bytes long should be handled as DOUBLE_ARGs; don't recognize them
+ as SIMPLE_ARGs.
+
+2001-11-12 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c (struct packet_reg): Declare.
+ (struct remote_state): Add fields sizeof_g_packet and g_packet.
+ (init_remote_state): Initialize sizeof_g_packet and g_packet.
+ (free_remote_state): Free g_packet.
+ (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
+ (remote_wait): Use above instead of gdbarch methods
+ REGISTER_RAW_SIZE and REGISTER_BYTES.
+ (remote_async_wait): Ditto.
+ (remote_fetch_registers, remote_store_registers): Ditto.
+ (store_register_using_P): Ditto.
+
+2001-11-15 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
+ Second attempt.
+
+2001-11-15 Andrew Cagney <ac131313@redhat.com>
+
+ * utils.c (phex_nz): For default case, set str to phex_nz return
+ value.
+ (phex): Ditto.
+
+2001-11-15 Andrew Cagney <ac131313@redhat.com>
+
+ * TODO (register_buffer): Delete.
+ * regcache.c (register_buffer): Make static.
+ (regcache_collect): New function.
+ * regcache.h (register_buffer): Delete declaration.
+ (regcache_collect): Declare.
+ * remote.c (store_register_using_P): Rewrite using
+ regcache_collect.
+ (remote_store_registers): Ditto.
+ * go32-nat.c (store_register): Ditto.
+
+2001-11-14 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c (struct remote_state): Declare.
+ (get_remote_state): New function.
+ (init_remote_state): New function.
+ (remote_gdbarch_data_handle): New global.
+ (build_remote_packet_sizes): Delete function, moved to
+ init_remote_state.
+ (register_remote_packet_sizes): Delete function.
+ (actual_register_packet_size, remote_packet_size): Moved to
+ ``struct remote_state''.
+ (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
+ (free_remote_state): New function.
+ (get_memory_packet_size, get_memory_read_packet_size)
+ (set_thread, remote_unpack_thread_info_response)
+ (remote_get_threadinfo, parse_threadlist_response)
+ (remote_get_threadlist, remote_current_thread)
+ (remote_threads_info, remote_threads_extra_info)
+ (extended_remote_restart, get_offsets)
+ (get_offsets, remote_check_symbols, remote_open_1)
+ (remote_async_open_1, remote_detach, remote_async_detach)
+ (remote_resume, remote_async_resume, remote_wait)
+ (remote_async_wait, remote_fetch_registers)
+ (store_register_using_P, remote_store_registers)
+ (check_binary_download, putpkt_binary)
+ (remote_insert_breakpoint, remote_remove_breakpoint)
+ (remote_insert_watchpoint, remote_remove_watchpoint)
+ (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
+ (compare_sections_command, remote_query)
+ (remote_rcmd, remote_rcmd, packet_command)
+ (remote_info_process): Update.
+
+2001-11-14 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c: Include "gdb_assert.h".
+ (tty_input): Wire buffer to 400 bytes.
+ (readsocket): Check tty_input doesn't overflow.
+ (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
+ tty_input.
+
+2001-11-14 Michael Snyder <msnyder@redhat.com>
+
+ * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
+ TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
+ into the instruction address space.
+ * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
+
+2001-11-14 Michael Snyder <msnyder@redhat.com>
+ Add address space identifiers to expression language for types.
+ * c-exp.y (space_identifier, cv_with_space_id,
+ const_or_volatile_or_space_identifier_noopt,
+ const_or_volatile_or_space_identifier): New terminals.
+ (ptype): Accept const_or_volatile_or_space_identifier.
+ (typebase): Accept const_or_volatile_or_space_identifier.
+ * c-typeprint.c (c_type_print_cv_qualifier): Rename to
+ c_type_print_modifier. Handle address space modified types.
+ * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
+ New type flags.
+ (struct type): Add new field as_type for addr-space qualified types.
+ (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
+ identical to this one except for address-space qualification.
+ * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
+ (address_space_name_to_int): New function.
+ (address_space_int_to_name): New function.
+ (make_type_with_address_space): New function.
+ (make_cv_type): Handle as_type field of new struct type object.
+ * parse.c (check_type_stack_depth): New function.
+ (push_type_address_space): New function.
+ (follow_types): Handle types with address-space qualifier.
+ * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
+
+2001-11-14 Jim Blandy <jimb@redhat.com>
+
+ * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
+ pointer and the SP are often the same, so we can't pop the frame
+ by setting the SP to the FP; we need to get the old SP from
+ saved_regs.
+
+ * s390-tdep.c (s390_extract_return_value): Returned `float' values
+ can simply be copied bitwise from the registers into the value
+ object's buffer.
+
+ * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
+ the frame's saved_regs array correctly.
+
+ * symfile.c (simple_read_overlay_table): Make sure we can find
+ both `_novlys' and `_ovly_table' before we try anything else;
+ print a helpful error message.
+ (simple_overlay_update): No need to print error message here.
+
+2001-11-14 Michael Snyder <msnyder@redhat.com>
+
+ * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
+
+2001-11-10 Andrew Cagney <ac131313@redhat.com>
+
+ * arm-tdep.c (arm_register_type): New function.
+ (arm_register_convertible): Delete.
+ (arm_register_convert_to_virtual): Delete.
+ (arm_register_convert_to_raw): Delete.
+ * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
+ (REGISTER_CONVERT_TO_VIRTUAL): Delete.
+ (REGISTER_CONVERT_TO_RAW): Delete.
+ (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
+ (arm_register_type): Declare.
+
2001-11-13 Elena Zannoni <ezannoni@redhat.com>
From Andrew Cagney <cagney@redhat.com>: