+
+ * buildsym.c (finish_block): Don't adjust the boundaries of
+ nested functions.
+
+
+ * symfile.c (add_symbol_file_command): Fix off-by-one when
+ extending sect_opts.
+
+
+ * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
+
+
+ * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
+ other variables.
+ (gdbmi-send): Ensure any text properties can be removed.
+ (gdbmi-prompt1): Update to gdb-ui.el
+ (gud-gdbmi-marker-filter): Defer setting of gud-running.
+ Keep gdb-done-regexp for partial-output-buffer.
+ (gdb-stack-list-frames-handler): Add face to function names.
+
+
+ * valprint.c (val_print_type_code_flags): Fix GNU coding standards
+ violation.
+
+ * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
+ (alpha_push_dummy_call, alpha_extract_return_value)
+ (alpha_breakpoint_from_pc, alpha_read_insn)
+ (alpha_get_longjmp_target, alpha_supply_int_regs)
+ (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
+ (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
+ appropriate.
+
+ * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
+ (sparc64_fprs_type): New variables.
+ (sparc64_init_types): New function.:
+ (sparc64_register_info): Use appropriate flag types for %fsr and
+ %fprs.
+ (sparc64_pseudo_register_info): Use appropriate type for %pstate.
+ (_initialize_sparc64_tdep): New function.
+
+ * valprint.c (val_print_type_code_flags): Fix for bitfields larger
+ than 32 bits.
+
+ * gdbtypes.c (init_flags_type): Set all fields to zero instead of
+ just the first one.
+
+
+ * Makefile.in (INTERNAL_CPPFLAGS): New.
+ (INTERNAL_CFLAGS_BASE): Use it.
+
+
+ * MAINTAINERS: Update my email address.
+
+
+ * Makefile.in (amd64_linux_tdep_h): New.
+ (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
+ * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
+ ORIG_RAX.
+ (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
+ * amd64-linux-tdep.c (amd64_linux_register_name)
+ (amd64_linux_register_type, amd64_linux_register_reggroup_p)
+ (amd64_linux_write_pc): New.
+ (amd64_linux_init_abi): Use them, and update num_regs.
+ * amd64-linux-tdep.h: New file.
+ * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
+ public.
+ * amd64-tdep.h (amd64_register_name, amd64_register_type): New
+ prototypes.
+
+ * regformats/reg-x86-64-linux.dat: New file.
+
+
+ * infrun.c (handle_inferior_event): Check the current frame ID
+ before unwinding to the previous frame.
+
+
+ * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
+ number in a comment.
+
+
+ * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
+
+
+ * dwarf2read.c (quirk_gcc_member_function_pointer): New.
+ (read_structure_type): Call it.
+
+
+ * NEWS: Mention "set trust-readonly-sections" fix.
+
+
+ * remote.c, target.c: Strip trailing whitespace.
+
+
+ PR remote/1966
+ * dcache.c (dcache_write_line): Use target_write.
+ (dcache_read_line): Use target_read.
+ * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
+ * symfile.c (struct load_section_data): Add new per-section
+ members.
+ (load_progress): New function.
+ (load_section_callback): Pass load_progress to the new
+ target_write_with_progress.
+ * target.c (current_xfer_partial, memory_xfer_partial): New.
+ (target_xfer_partial): New prototype.
+ (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
+ (do_xfer_memory, target_xfer_memory_partial)
+ (target_read_memory_partial, target_write_memory_partial): Delete.
+ (trust_readonly): Move higher in the file.
+ (update_current_target): Use current_xer_partial.
+ (target_xfer_partial): Use memory_xfer_partial. Handle
+ TARGET_OBJECT_RAW_MEMORY specially.
+ (target_read_memory): Use target_read.
+ (target_write_memory): Use target_write.
+ (default_xfer_partial): Call to_xfer_partial directly.
+ (target_write_with_progress): New function, based on target_write.
+ (target_write): Call it.
+ * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
+ (target_write_with_progress): New prototype.
+ (do_xfer_memory, target_read_memory_partial)
+ (target_write_memory_partial): Delete prototypes.
+
+
+ * remote.c (remote_write_bytes): Take a const buffer argument.
+ Do the checks from remote_xfer_memory.
+ (remote_read_bytes): Do the checks from remote_xfer_memory.
+ (remote_xfer_memory): Remove checks pushed into lower level
+ functions.
+ (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
+ directly.
+ * remote.h (remote_write_bytes): Update prototype.
+
+
+ * NEWS: Add 'set trace-commands' command.
+
+
+ * cli/cli-script.c (execute_user_command): Update command_next_depth
+ on user-command call.
+
+
+ * NEWS: Add entry for new substitute-path commands.
+
+
+ * source.c: #include gdb_assert.h.
+ (substitute_path_rule): New struct.
+ (substitute_path_rules): New static global variable.
+ (substitute_path_rule_matches): New function.
+ (get_substitute_path_rule): New function.
+ (rewrite_source_path): New function.
+ (find_and_open_source): Add source path rewriting support.
+ (strip_trailing_directory_separator): New function.
+ (find_substitute_path_rule): New function.
+ (add_substitute_path_rule): New function.
+ (delete_substitute_path_rule): New function.
+ (show_substitute_path_command): New function.
+ (unset_substitute_path_command): New function.
+ (set_substitute_path_command): New function.
+ (_initialize_source): Add new substitute-path commands.
+ * Makefile.in (source.o): Add dependency on gdb_assert.h.
+
+
+ * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
+ instructions.
+ (i386_analyze_struct_return): Likewise.
+ (i386_skip_probe): Likewise.
+ (i386_match_insn): Likewise.
+ (i386_analyze_frame_setup): Likewise.
+ (i386_analyze_register_saves): Likewise.
+ (i386_skip_prologue): Likewise.
+
+
+ * gdbcore.h (read_memory_nobpt): New function name instead of
+ deprecated_read_memory_nobpt.
+ * breakpoint.c (read_memory_nobpt): New function name instead
+ of deprecated_read_memory_nobpt.
+ Adjust calls to old deprecated_read_memory_nobpt accordingly.
+ * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
+ accordingly.
+ * alphanbsd-tdep.c: Likewise.
+ * frame.c: Likewise.
+ * frv-tdep.c: Likewise.
+ * hppa-linux-tdep.c: Likewise.
+ * hppa-tdep.c: Likewise.
+ * i386-linux-nat.c: Likewise.
+ * m68klinux-tdep.c: Likewise.
+ * mips-tdep.c: Likewise.
+ * s390-tdep.c: Likewise.
+
+
+ * configure.ac: Check for expat.
+ * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
+ * Makefile.in (LIBEXPAT): New.
+ (CLIBS): Include $(LIBEXPAT).
+ * README: Mention expat.
+ * configure, config.in: Regenerated.
+
+
+ * config/sparc/embed.mt: New file.
+ * configure.tgt (sparc-*-rtems*): Use embed.mt.
+
+
+ * Makefile.in (objfiles.o, symfile.o): Update.
+ * objfiles.c: Include "expression.h" and "parser-defs.h".
+ (free_objfile): Clear global blocks.
+ * symfile.c: Include "parser-defs.h".
+ (clear_symtab_users): Clear global blocks.
+
+
+ * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
+
+
+ * symfile.c (download_write_size): Remove.
+ (show_download_write_size): Remove.
+ (load_section_callback): Don't use download_write_size.
+ (_initialize_symfile): Don't register download_write_size.
+ * NEWS: Mention 'download-write-size' removal.
+
+
+ * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
+ support for member pointers.
+
+
+ * arm-tdep.h: Add multiple inclusion protection.
+ (struct gdbarch): Add forward declaration.
+ (armobsd_regset_from_core_section): New prototype.
+ * armbsd-tdep.c: New file.
+ * armobsd-tdep.c: Include "gdb_string.h".
+ (armobsd_init_abi): Set regset_from_core_section.
+ (armobsd_core_osabi_sniffer): New function.
+ (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
+ * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
+ (armbsd-tdep.o): New dependency.
+ (armnbsd-tdep.o): Update dependencies.
+ * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
+
+
+ * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
+ mismatch.
+ * tui/tui-stack.c (tui_show_frame_info): Likewise.
+
+
+ * c-exp.y (type): Remove incorrect pointer to member case.
+ * objc-exp.y (type): Likewise.
+ * p-exp.y (type): Likewise.
+
+
+ * arm-tdep.h (enum struct_return): New.
+ (struct gdbarch_tdep): Add struct_return member.
+ * arm-tdep.c (arm_return_value): Return
+ RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
+ pcc_struct_return.
+ (arm_gdbarch_init): Default to reg_struct_return.
+ * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
+
+
+ * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
+ * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
+ <machine/pcb.h> and "bsd-kvm.h".
+ (alphabsd_supply_pcb): New function.
+ (_initialize_alphabsd_nat): Enable libkvm interface.
+ * Makefile.in (alphabsd-nat.o): Update dependencies.
+ * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
+ (LOADLIBES): New variable.
+ * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
+ (LOADLIBES): New variable.
+
+
+ * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
+ instead of calling frame_obstack_zalloc directly.
+ (arm_make_stub_cache): Ditto.
+ * frame-unwind.h: Ditto.
+ * frame.c (create_new_frame): Ditto.
+
+
+ * MAINTAINERS (Write After Approval): Add myself.
+
+
+ * main.c (captured_main): Print a newline after calling
+ print_gdb_version instead of waiting until after the symbol file
+ has been read. Adjust error_pre_print, quit_pre_print, and
+ warning_pre_print values.
+
+
+ * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
+
+
+ * target.h (target_read_stralloc): New prototype.
+ * target.c (target_read_alloc_1): Renamed from target_read_alloc.
+ Take new PADDING argument.
+ (target_read_alloc): Use it.
+ (target_read_stralloc): New function.
+
+
+ * remote.c (remote_protocol_features): Correct qPart to qXfer.
+
+
+ * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
+ calls to C++ operator*.
+
+
+ * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
+ (gdb_int64_bytes): Likewise.
+ (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
+ as first argument to extract_unsigned_integer to silence compiler
+ warnings.
+
+
+ * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
+ field.
+ (dwarf2_locate_sections): Initialize
+ dwarf2_per_objfile->has_section_at_zero.
+ (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
+ instead of HAS_RELOC test.
+ (read_partial_die): Ditto.
+
+
+ * 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.
+
+
+ * regcache.c (struct regcache): Make register_valid_p a signed char
+ array.
+
+
+ * linux-thread-db.c (thread_db_wait): Remove libthread_db
+ after exec events.
+
+
+ * NEWS: Mention Windows cross debugging support.
+
+
+ * linux-nat.c (linux_nat_add_target): Remove extern.
+ * linux-nat.h (thread_db_init): New prototype.
+
+
+ * configure.tgt: Build gdbserver for Cygwin and mingw32.
+
+
+ * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
+ * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
+ * config/i386/tm-cygwin.h: Delete file.
+
+
+ * infrun.c (handle_inferior_event): Typo.
+
+
+ * 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.
+
+
+ * eval.c (evaluate_struct_tuple): Skip static fields.
+
+
+ * alphaobsd-tdep.c: Include "obsd-tdep.h".
+ (alphaobsd_init_abi): Set skip_solib_resolver.
+ * Makefile.in (alphaobsd-tdep.o): Update dependencies.
+ * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
+
+ * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
+ from ELF flags for binaries produced by the GNU toolchain.
+
+
+ * remote-fileio.c (remote_fileio_func_rename): Reorder to process
+ input buffer before reading memory.
+ (remote_fileio_func_stat): Likewise.
+
+
+ * 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.
+
+
+ * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
+ (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
+ (thread_db_fetch_registers, thread_db_store_registers)
+ (thread_db_thread_alive, thread_db_state_str): Delete.
+ (thread_db_load): Don't look up regset functions.
+ (thread_db_pid_to_str): Simplify.
+ (thread_db_extra_thread_info): New.
+ (init_thread_db_ops): Do not set to_fetch_registers,
+ to_store_registers, or to_thread_alive. Set to_extra_thread_info.
+ * Makefile.in: Remove linux-thread-db.o rule.
+
+
+ * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
+ (armobsd_sigframe_init): New function.
+ (armobsd_sigframe): New variable.
+ (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
+ * Makefile.in (armobsd-tdep.o): Update dependencies.
+
+
+ * monitor.c: Remove unused prototypes.
+
+
+ * target.c (tcomplain): Mark with ATTR_NORETURN.
+
+ * defs.h (print_transfer_performance): Improve comments.
+
+
+ * printcmd.c: Coding style fixes: add missing spaces in comments
+ and wrapping long lines.
+ (delete_display, enable_display_command, disable_display_command)
+ (printf_command, display_info, undisplay_command, free_display)
+ (display_command, x_command, address_info, set_command)
+ (inspect_command, call_command, print_command, print_command_1)
+ (validate_format, print_formatted, decode_format, sym_format):
+ Remove prototypes.
+ (x_command): Make static.
+ (printf_command): Convert error into internal consistency check.
+ (address_info): Avoid assignment within function call.
+ (printf_command): Avoid redundant cast.
+ * tracepoint.c (x_command): Remove extern prototype.
+
+ * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
+ * Makefile.in (armobsd-tdep.o): Update dependencies.
+ * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
+
+
+ * armobsd-tdep.c: New file.
+ * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
+ (armobsd-tdep.o): New dependency.
+ * config/arm/obsd.mt: New file.
+ * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
+
+ * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
+ * gdbarch.h, gdbarch.c: Re-generate.
+
+ * arm-tdep.c (arm_saved_pc_after_call): Delete.
+ (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
+
+
+ * gnu-nat.c: Undefine _process_user_ before including
+ <hurd/process_request.h>.
+ (gnu_resume): Supply missing argument to error().
+ (gnu_read_inferior): Add extra parenthesis around arithmetic
+ expression to silence warnings from GCC.
+ (gnu_write_inferior): Likewise.
+ (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
+
+
+ * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
+ svr4_ilp_fetch_link_map_offsets.
+
+
+ * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
+ * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
+ (DEPRECATED_TM_FILE): Remove.
+ * Makefile.in (armnbsd-tdep.o): Update dependencies.
+
+
+ * PROBLEMS: Document threads/2137.
+
+
+ * config/alpha/tm-nbsd.h: Remove file.
+ * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
+
+
+ * mips-tdep.c (mips_integer_to_address): Simplify be calling
+ extract_signed_integer directly. Fix comment.
+
+
+ * m32c-tdep.c (m32c_banked_register): New function.
+ (m32c_banked_read): Use m32c_banked_register function to evaluate
+ real register number.
+ (m32c_banked_write): Ditto.
+ (m32c_virtual_frame_pointer): New function.
+ (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
+
+
+ * m68k-tdep.c (m68k_frame_align): New.
+ (m68k_gdbarch_init): Set frame_align here.
+
+
+ * interps.c (interpreter_completer): Allocate one more item to the
+ 'matches' list and set them all to 0 with a xcalloc.
+
+
+ * annotate.c (annotate_frame_begin): Re-instate frame-begin
+ annotation for level 3 annotations.
+
+
+ * 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.
+
+
+ * remote.c (unpack_varlen_hex): Correct type of retval.
+
+
+ * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
+ or missing location list information. Suggested by Jan
+
+
+ * Makefile.in (arm_linux_tdep_h): New variable.
+ (arm-linux-nat.o, arm-linux-tdep.o): Update.
+ * arm-linux-nat.c: Include "arm-linux-tdep.h".
+ (typeNone, typeSingle, typeDouble, typeExtended)
+ (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
+ (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
+ (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
+ (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
+ Delete.
+ (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
+ Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
+ and collect_nwfpe_register.
+ (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
+ new regset functions.
+ * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
+ (arm_apcs_32): New declaration.
+ (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
+ (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
+ (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
+ (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
+ (arm_linux_regset_from_core_section): New.
+ (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
+ * arm-linux-tdep.h: New file.
+ * arm-tdep.h (struct regset): Declare.
+ (struct gdbarch_tdep): Add gregset, fpregset members.
+ * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
+ core-regset.o.
+ * config/arm/linux.mt (TDEPFILES): Add corelow.o.
+
+
+ * infrun.c (handle_inferior_event): Fixed typos in printf.
+
+
+ * remote.c (REMOTE_ALIGN_WRITES): New.
+ (remote_write_bytes): Align large write packets. Remove unused
+ payload_start variable.
+
* remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.