+
+ * python/py-inferior.c: Update comments of infpy_read_memory
+ and infpy_write_memory.
+
+
+ PR exp/9514:
+ * parser-defs.h (insert_type, insert_type_address_space): Declare.
+ (push_type_address_space): Remove.
+ * parse.c (insert_into_type_stack): New function.
+ (insert_type): Likewise.
+ (insert_type_address_space): Rename from push_type_address_space.
+ Insert tp_space_identifier.
+ * c-exp.y (ptr_operator): New production.
+ (abs_decl): Use ptr_operator.
+ (space_identifier): Call insert_type_address_space.
+ (ptype): Don't use const_or_volatile_or_space_identifier.
+ (const_or_volatile_noopt): Call insert_type.
+ (conversion_type_id, conversion_declarator): New productions.
+ (operator): Use conversion_type_id.
+
+
+ * symtab.h (minimal_symbol): New member created_by_gdb.
+ * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
+ created by gdb.
+ * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
+ (search_symbols): Call it instead of lookup_symbol.
+ Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
+
+ * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
+ Adjust address for DW_OP_GNU_addr_index.
+ * dwarf2expr.h (dwarf_expr_context): Update comment.
+ * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
+ all callers updated. Handle TLS vars described with
+ DW_OP_GNU_const_index.
+ (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
+ and DW_OP_GNU_const_index.
+ * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
+
+ * block.c (find_block_in_blockvector): Make explicit the fact that we
+ ignore GLOBAL_BLOCK.
+
+
+ * c-exp.y (operator): Remove trailing space after "delete" and
+ "delete[]".
+
+
+ Switch i386 and derived targets to ON_STACK.
+ * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
+ (amd64_dicos_init_abi): Remove its installment.
+ * dicos-tdep.c (dicos_init_abi): Remove the
+ set_gdbarch_call_dummy_location call. Update the comment here.
+ * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
+ (i386_dicos_init_abi): Remove its installment.
+ * i386-tdep.c (i386_push_dummy_code): New function.
+ (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
+ i386_push_dummy_code.
+
+
+ Remove stale dummy frames.
+ * breakpoint.c: Include dummy-frame.h.
+ (longjmp_breakpoint_ops): New variable.
+ (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
+ bp_longjmp_call_dummy.
+ (bpstat_what, bptype_string, print_one_breakpoint_location)
+ (init_bp_location): Support bp_longjmp_call_dummy.
+ (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
+ (set_longjmp_breakpoint_for_call_dummy)
+ (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
+ functions.
+ (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
+ * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
+ FIXME comment and extend the other comment for bp_call_dummy.
+ (set_longjmp_breakpoint_for_call_dummy)
+ (check_longjmp_breakpoint_for_call_dummy): New declarations.
+ * dummy-frame.c: Include gdbthread.h.
+ (pop_dummy_frame_bpt): New function.
+ (pop_dummy_frame): Call pop_dummy_frame_bpt.
+ (dummy_frame_discard): New function.
+ (cleanup_dummy_frames): Update the comment about longjmps.
+ * dummy-frame.h (dummy_frame_discard): New declaration.
+ * gdbthread.h (struct thread_info): Extend initiating_frame comment.
+ * infcall.c (call_function_by_hand): New variable longjmp_b. Call
+ set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
+ * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
+ Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
+ keep_going if IS_LONGJMP and there is no other reason to stop.
+
+
+ * remote-sim.c (sim_command_completer): Initialize
+ variable 'result'.
+
+
+ * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
+ * dwarf2loc.c (call_site_parameter_matches): Support
+ CALL_SITE_PARAMETER_PARAM_OFFSET.
+ (needs_dwarf_reg_entry_value): Push stub value.
+ * dwarf2read.c (read_call_site_scope): New variable origin. Support
+ CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
+ * gdbtypes.h (enum call_site_parameter_kind): New item
+ CALL_SITE_PARAMETER_PARAM_OFFSET.
+ (struct call_site.parameter.u): New field param_offset.
+
+
+ Code cleanup: Generalize call_site.parameter key.
+ * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
+ variable dwarf_reg. New variable kind_u. Update parameters to
+ push_dwarf_reg_entry_value.
+ (ctx_no_push_dwarf_reg_entry_value): Update parameters.
+ * dwarf2expr.h (enum call_site_parameter_kind)
+ (union call_site_parameter_u): Forward declarations.
+ (struct dwarf_expr_context_funcs): Update parameters and their
+ description for push_dwarf_reg_entry_value.
+ (ctx_no_push_dwarf_reg_entry_value): Update parameters.
+ * dwarf2loc.c (call_site_parameter_matches): New function.
+ (dwarf_expr_reg_to_entry_parameter): Update parameters and their
+ description. Use call_site_parameter_matches.
+ (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
+ Update parameters and their description.
+ (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
+ New variable kind_u. Adjust the caller for updated parameters.
+ (needs_dwarf_reg_entry_value): Update parameters.
+ * dwarf2read.c (read_call_site_scope): New variable loc. Use it
+ instead of attr. Update for the changed fields of struct
+ call_site_parameter.
+ * gdbtypes.h: Include dwarf2expr.h.
+ (enum call_site_parameter_kind): New.
+ (struct call_site.parameter): New field kind. Wrap dwarf_reg and
+ fb_offset into new union u.
+
+
+ * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
+ (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
+ for x32.
+
+
+ * amd64-linux-nat.c (compat_x32_clock_t): New.
+ (compat_x32_siginfo_t): Likewise.
+ (compat_x32_siginfo_from_siginfo): Likewise.
+ (siginfo_from_compat_x32_siginfo): Likewise.
+ (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
+ and siginfo_from_compat_x32_siginfo for x32.
+
+
+ * tracepoint.c (tfile_xfer_partial): Add a lseek.
+
+
+ * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
+ instead of gdbarch_ptr_bit.
+ * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
+ (amd64_supply_native_gregset): Likewise.
+ (amd64_collect_native_gregset): Likewise.
+ * amd64-tdep.c (amd64_supply_fxsave): Likewise.
+ (amd64_supply_xsave): Likewise.
+ (amd64_collect_fxsave): Likewise.
+ (amd64_collect_xsave): Likewise.
+
+
+ * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
+ (amd64_linux_read_description): Check DS segment register for
+ x32 process.
+
+
+ * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
+ init_cutu_and_read_dies.
+
+
+ * MAINTAINERS (Write After Approval): Add myself to the list.
+
+
+ * valops.c (value_find_oload_method_list): Now static.
+ * value.h (value_find_oload_method_list): Don't declare.
+
+
+ * valops.c (find_overload_match): Use value_ind.
+
+
+ * infrun.c (handle_inferior_event): Correct indentation.
+
+
+ * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
+ (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
+ All uses updated.
+ (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
+ updated. Handle DEBUG_LOC_START_LENGTH.
+ (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
+ (loclist_describe_location): Ditto.
+
+
+ PR backtrace/13866
+ * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
+ after hiding inline functions.
+
+
+ * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
+ _initialize_inf_ttrace.
+
+
+ * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
+ _initialize_hppa_hpux_nat.
+
+
+ * remote-sim.c (sim_command_completer): Change type of return
+ value to "VEC (char_ptr) *". Adjust implementation accordingly.
+
+
+ PR tdep/14222
+ * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
+ stack on a 16-byte boundary.
+
+
+ * jit.c (finalize_symtab): Set function's return type to 'void' by
+ default.
+
+
+ * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
+ Move bits common to both the classic LP64 and the new x32 ILP32
+ ABI here.
+ (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
+ (amd64_x32_linux_init_abi): New function.
+ (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
+ subtype.
+
+ * i386-tdep.h (i386_pseudo_register_name): New prototype.
+ * i386-tdep.c (i386_pseudo_register_name): Make public.
+ * amd64-tdep.h (amd64_x32_init_abi): New prototype.
+ * amd64-tdep.c (amd64_dword_names): Add "eip".
+ (amd64_x32_pseudo_register_type): New function
+ (amd64_x32_init_abi): New function.
+
+
+ PR build/14003
+ * inferior.h (struct inferior_suspend_state): Comment out.
+ (struct inferior): Comment out the field suspend.
+ * infrun.c (struct infcall_suspend_state): Comment out the field
+ inferior_suspend.
+ (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
+ out its assignment.
+
+
+ PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
+ * c-exp.y (classify_inner_name): Remove caller assumptions in the
+ function comment. Return ERROR for unresolved cases. Implement
+ returning proper NAME.
+ (yylex): Accept also NAME from classify_inner_name.
+ * cp-namespace.c (cp_lookup_nested_type): Rename to ...
+ (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
+ LOC_TYPEDEF type.
+ * cp-support.h (cp_lookup_nested_type): Update its declaration.
+
+
+ * breakpoint.c (condition_completer): New function.
+ (_initialize_breakpoint): Use it.
+ * value.c (complete_internalvar): New function.
+ * value.h (complete_internalvar): Declare.
+
+
+ * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
+ * breakpoint.c (catch_syscall_completer): Return a VEC.
+ * cli/cli-cmds.c (complete_command): Update.
+ * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
+ (complete_on_enum): Likewise.
+ * command.h: Include gdb_vecs.h.
+ (completer_ftype): Change return type.
+ (complete_on_cmdlist, complete_on_enum): Likewise.
+ * completer.c (noop_completer, filename_completer)
+ (location_completer): Return a VEC.
+ (add_struct_fields): Remove 'nextp' argument. Change 'output'
+ to a VEC.
+ (expression_completer, complete_line_internal, complete_line)
+ (command_completer): Return a VEC.
+ (gdb_completion_word_break_characters, line_completion_function):
+ Update.
+ * completer.h: Include gdb_vecs.h.
+ (complete_line, noop_completer, filename_completer)
+ (expression_completer, location_completer, command_completer):
+ Update.
+ * f-lang.c (f_word_break_characters): Return a VEC.
+ * interps.c (interpreter_completer): Return a VEC.
+ * language.h (struct language_defn)
+ <la_make_symbol_completion_list>: Return a VEC.
+ * python/py-cmd.c (cmdpy_completer): Return a VEC.
+ * symtab.c (free_completion_list): Take a VEC.
+ (return_val_size, return_val_index): Remove.
+ (return_val): Now a VEC.
+ (completion_list_add_name): Update.
+ (default_make_symbol_completion_list_break_on)
+ (default_make_symbol_completion_list, make_symbol_completion_list)
+ (make_symbol_completion_list_fn, make_file_symbol_completion_list):
+ Return a VEC.
+ (add_filename_to_list): Update.
+ (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
+ <list>: Now a VEC.
+ (maybe_add_partial_symtab_filename): Update.
+ (make_source_files_completion_list): Return a VEC.
+ * symtab.h (default_make_symbol_completion_list_break_on)
+ (default_make_symbol_completion_list, make_symbol_completion_list)
+ (make_symbol_completion_list_fn, make_file_symbol_completion_list)
+ (make_source_files_completion_list): Update.
+
+
+ * breakpoint.c (add_catch_command): Use completer_ftype.
+ * breakpoint.h: Include command.h.
+ (add_catch_command): Use completer_ftype.
+ * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
+ * cli/cli-decode.h (struct cmd_list_element) <completer>:
+ Use completer_ftype.
+ * command.h (completer_ftype): New typedef.
+ (set_cmd_completer): Use it.
+ * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
+ completer_ftype.
+
+
+ Partial revert of previous change.
+
+ * serial.c (scb_base): New global.
+ (serial_for_fd): New.
+ (serial_open, serial_fdopen_ops): Link new serial in open serials
+ chain.
+ (do_serial_close): Unlink serial from the open serials chain.
+
+
+ * infrun.c (infrun_thread_stop_requested_callback): Don't switch
+ threads here.
+ (prepare_for_detach): No longer context switch here in non-stop
+ mode.
+ (fetch_inferior_event): Ditto.
+ (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
+ to the event thread before removing breakpoints. Switch to the
+ event thread before inserting breakpoints and resuming.
+ (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
+ event thread before resuming.
+ (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
+ Switch to the event thread before removing breakpoints.
+
+
+ * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
+ special characters correctly for the Windows shells. See
+ http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
+ report.
+ [!__MINGW32__]: Remove extra double quote character from special
+ characters.
+
+
+ * ui-out.h: Remove #if 0 declarations.
+ * ui-out.c: Remove #if 0 functions.
+
+
+ * ser-base.c (run_async_handler_and_reschedule): New.
+ (fd_event, push_event): Use it.
+ * serial.c (serial_open, serial_fdopen_ops): Set the initial
+ reference count to 1.
+ (do_serial_close): Set the bufp field to NULL. Use serial_unref
+ instead of xfree.
+ (serial_is_open, serial_ref, serial_unref): New.
+ * serial.h (serial_open): Adjust comment.
+ (serial_is_open): Declare.
+ (serial_close): Adjust comment.
+ (serial_ref, serial_unref) Declare.
+ (struct serial): New field 'refcnt'.
+
+
+ Remove #if 0'd "connect" command, and unnecessary associated
+ refcounting and serial reuse bits.
+
+ * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
+ * serial.c (last_serial_opened): Delete.
+ (scb_base): Delete.
+ (serial_open): Adjust.
+ (serial_for_fd): Delete.
+ (serial_fdopen_ops, do_serial_close): Adjust.
+ (serial_fdopen_ops): Adjust.
+
+
+ * serial.c (do_serial_close): Remove early return when SCB is
+ null.
+
+
+ * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
+
+
+ Fix regression by the "ambiguous linespec" series.
+ * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
+ get_last_displayed_symtab and get_last_displayed_line and depending
+ on CURSAL.
+
+
+ * dwarf2read.c (dw2_get_primary_filename_reader): New function.
+ (dw2_find_symbol_file): Use it.
+
+
+ * mips-linux-tdep.c (mips_gdb_signal_from_target): New
+ * mips-linux-tdep.h (mips_signals): New
+
+
+ * infrun.c (handle_inferior_event)
+ <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
+ breakpoint.
+ <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
+ exception logic in all cases. Update comments.
+ (insert_longjmp_resume_breakpoint): Set the exception resume
+ breakpoint.
+
+
+ * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
+
+
+ * valarith.c (binop_types_user_defined_p): Fix a typo.
+
+
+ * arch-utils.c (default_return_in_first_hidden_param_p): New.
+ * arch-utils.h: Declare.
+ * gdbarch.sh: Add return_in_first_hidden_param_p.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * infcall.c (call_function_by_hand): Call
+ gdbarch_return_in_first_hidden_param_p instead of
+ language_pass_by_reference.
+
+ * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
+ (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
+ * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
+ (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
+ * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
+ `cplus_return_struct_by_reference'.
+ (tic6x_return_value): Handle language cplusplus.
+ (tic6x_return_in_first_hidden_param_p): New.
+ (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
+
+
+ * dwarf2read.c (dwarf2_cu): Add comment.
+
+
+ * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
+ variable.
+ (mips_eabi_push_dummy_call): Likewise.
+ (mips_n32n64_push_dummy_call): Likewise.
+ (mips_o32_push_dummy_call): Likewise.
+ (mips_o64_push_dummy_call): Likewise.
+
+
+ * mips-tdep.c (mips_convert_register_p): Correct coding style.
+
+
+ * mips-tdep.c (mips_pseudo_register_type): Use
+ mips_float_register_p.
+
+
+ * infrun.c (handle_inferior_event): Remove calls to
+ reinit_frame_cache that follow a context_switch call.
+
+
+ * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
+ context_switch and remove stale comment.
+
+
+ * infrun.c (struct execution_control_state): Remove
+ `new_thread_event' field.
+ (handle_inferior_event): Simplify new threads handling; don't
+ resume the inferior if we find a new thread.
+
+
+ * NEWS: Document the deprecation of SH's 'regs' command.
+ * inferior.h (all_registers_info): Add function declaration.
+ * sh-tdep.c (sh_show_regs): Remove variable.
+ (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
+ (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
+ (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
+ (sh_show_regs_command): Remove functions.
+ (sh_gdbarch_init): Don't set sh_show_regs.
+ (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
+ 'info all-registers'.
+ * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
+ (sh64_show_regs): Remove functions.
+ * sh64-tdep.h (sh64_show_regs): Remove function declaration.
+
+
+ * configure.ac: Move development=true below AC_INIT.
+ * configure: Regenerate.
+
+
+ * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
+ gdb_stdout.
+
+
+ * corefile.c (read_memory, read_stack, write_memory): Accept LEN
+ argument as ssize_t.
+ * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
+ * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
+ * target.c (target_read_stack, target_write_memory)
+ (target_write_raw_memory): Likewise.
+ * target.h (target_read_stack, target_write_memory)
+ (target_write_raw_memory): Likewise.
+
+
+ * symfile-mem.c: Change gdb_static_assert to ssize_t.
+ (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
+ * target.c (target_read_memory): Change LEN to ssize_t.
+ * target.h (target_read_memory): Change LEN to ssize_t.
+
+
+ PR backtrace/13866
+
+ * breakpoint.c (until_break_command): Only fetch the selected
+ frame after decode_line_1.
+
+
+ * solib-svr4.c (enable_break): Don't fallback to setting the solib
+ event breakpoint at _start, __start or main if a program
+ interpreter is not found.
+
+
+ * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
+ Add declaration.
+ * windows-tdep.c: #include "objfiles.h".
+ (windows_iterate_over_objfiles_in_search_order): New function.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ iterate_over_objfiles_in_search_order gdbarch method to
+ windows_iterate_over_objfiles_in_search_order.
+ * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
+
+
+ * gdbarch.sh: Add generation of
+ "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
+ gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
+ (iterate_over_objfiles_in_search_order): New gdbarch method.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * objfiles.h (default_iterate_over_objfiles_in_search_order):
+ Add declaration.
+ * objfiles.c (default_iterate_over_objfiles_in_search_order):
+ New function.
+ * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+ out of lookup_symbol_aux_symtabs.
+ (lookup_symbol_aux_symtabs): Replace extracted-out code by
+ call to lookup_symbol_aux_objfile.
+ (struct global_sym_lookup_data): New type.
+ (lookup_symbol_global_iterator_cb): New function.
+ (lookup_symbol_global): Search for symbol using
+ gdbarch_iterate_over_objfiles_in_search_order and
+ lookup_symbol_global_iterator_cb.
+ * findvar.c (struct minsym_lookup_data): New type.
+ (minsym_lookup_iterator_cb): New function.
+ (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
+ symbol's address via gdbarch_iterate_over_objfiles_in_search_order
+ and minsym_lookup_iterator_cb.
+
+
+ Revert the following patch:
+ * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
+ try locating the symbol in the symbol's own objfile first, before
+ extending the search to all objfiles.
+ * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+ out of lookup_symbol_aux_symtabs.
+ (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
+ Replace extracted-out code by call to lookup_symbol_aux_objfile.
+ Do not search EXCLUDE_OBJFILE.
+ (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
+ (lookup_symbol_global): Search for matches in the block's objfile
+ first, before searching all other objfiles.
+
+
+ * breakpoint.c (find_condition_and_thread): Stop parsing
+ as soon as the first invalid keyword is found.
+
+
+ * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
+
+
+ * config/djgpp/djcheck.sh: Add copyright header.
+
+
+ * copyright.py (update_files, main): Fix path to update-copyright
+ script.
+
+
+ * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
+ (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
+ for which a reminder to update by hand is printed.
+
+
+ * buildsym.c (make_blockvector): Add comment.
+
+
+ * arch-utils.c (default_gdb_signal_from_target): Delete.
+ * arch-utils.h (default_gdb_signal_from_target): Delete.
+ * corelow.c (core_open) <signal mapping>: Extended comment. Check
+ gdbarch_gdb_signal_from_target_p.
+ * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
+ predicate).
+ * gdbarch.h: Regenerate.
+ * gdbarch.c: Regenerate.
+
+
+ * gdbarch.sh (gdb_signal_from_target): Mention that the
+ implementation of the method must be host independent.
+ * gdbarch.h: Regenerate.
+
+
+ * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
+ parameters.
+ (target_read_memory_bfd): New function.
+ (symbol_file_add_from_memory): Use it.
+
+
+ * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
+ of primary symtab.
+ (basic_lookup_transparent_type): Ditto.
+
+ * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
+ (ALL_PRIMARY_SYMTABS): Use it.
+ (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
+ * dwarf2read.c (dw2_find_symbol_file): Ditto.
+ * linespec.c (iterate_over_all_matching_symtabs): Ditto.
+ * symtab.c (lookup_symbol_aux_objfile): Ditto.
+ (basic_lookup_transparent_type): Ditto.
+
+
+ * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
+ it to optimize resolution of demangled name.
+
+
+ * configure.ac (development): Define new variable.
+ Call AC_CHECK_LIB for mcheck if $development.
+ (ERROR_ON_WARNING): Enable it by default only if $development.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+
+
+ * target.c (target_read_memory): Make LEN argument as size_t.
+ * target.h (target_read_memory): Likewise.
+
+
+ * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
+
+
+ * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
+ BookE interface for PowerPC server processors if not available
+ in the Linux Kernel.
+
+
+ * linespec.c (decode_objc): Add cleanup to free
+ INFO.FILE_SYMTABS.
+ (find_linespec_symbols): Add cleanup to free CLASSES.
+ * symfile.c (find_separate_debug_file_by_debuglink): Add
+ cleanup to free DEBUGLINK.
+ * ui-out.c (clear_header_list): No need to check if
+ HEADER_NEXT.COLHDR is NULL.
+ Free HEADER_NEXT.COL_NAME.
+
+
+ * ada-lang.c (standard_lookup): Prevent uninitialized variable
+ warning.
+
+
+ * configure.host (gdb_host_cpu): Handle tilegx*.
+ (gdb_host): Handle tilegx-*-linux*.
+ * tilegx-linux-nat.c: New file.
+ * config/tilegx/linux.mh: New file.
+
+
+ * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
+ tilegx-linux-tdep.o.
+ (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
+ tilegx-linux-tdep.c.
+ * configure.tgt: Handle tilegx-*-linux*.
+ * tilegx-tdep.h: New file.
+ * tilegx-tdep.c: New file.
+ * tilegx-linux-tdep.c: New file.
+ * regformats/reg-tilegx.dat: New file.
+
+
+ * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
+ accounting of hw watchpoints on ppc.
+
+
+ * source.c (openp): Expand tilde in path entries.
+
+
+ * buildsym.c (block_compar): Fix comment.
+ (end_symtab): Fix and clarify some comments.
+
+ * stabsread.h (cleanup_undefined_stabs_types): Renamed from
+ cleanup_undefined_types.
+ * stabsread.c (cleanup_undefined_stabs_types): Ditto.
+ All callers updated.
+
+
+ * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
+ fails.
+ * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
+ * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
+ fails.
+ * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
+ fails.
+
+
+ * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
+ (struct darwin_info): ... New struct.
+ (solib_darwin_pspace_data): New variable.
+ (darwin_pspace_data_cleanup): New function.
+ (get_darwin_info): Likewise.
+ (darwin_dyld_version_ok, darwin_load_image_infos)
+ (darwin_solib_get_all_image_info_addr_at_init)
+ (darwin_solib_read_all_image_info_addr): Add info argument.
+ Adjust code.
+ (darwin_current_sos): Use per pspace structure.
+ (darwin_solib_create_inferior_hook): Likewise.
+ (darwin_clear_solib): Likewise.
+ (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
+
+
+ * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
+ block that uses them. Clear ecss before handling each event.
+
+
+ * solib-svr4.c (svr4_current_sos): New comment on
+ svr4_current_sos_via_xfer_libraries fall back.
+
+
+ * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
+ it as a fallback for TYPE_IS_OPAQUE.
+ * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
+ symbols for lookup_symbol.
+
+
+ PR symtab/13277: Resolving opaque structures in ICC generated binaries.
+ * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
+ (producer_is_gxx_lt_4_6): Move the checking and caching to...
+ (check_producer): ... this new function, which also checks for ICC
+ and caches the result.
+ (producer_is_icc): New function.
+ (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
+ producer was ICC.
+
+
+ PR gdb/7205
+
+ * arch-utils.c (default_gdb_signal_to_host): Rename to ...
+ (default_gdb_signal_to_target): ... this. Add comment.
+ (default_gdb_signal_from_host): Rename to ...
+ (default_gdb_signal_from_target): ... this. Add comment.
+ * arch-utils.h (default_gdb_signal_to_host): Rename to ...
+ (default_gdb_signal_to_target): ... this.
+ (default_gdb_signal_from_host): Rename to ...
+ (default_gdb_signal_from_target): ... this.
+ * corelow.c (core_open): Adjust to naming change. Replace comment.
+ * gdbarch.sh (gdb_signal_from_host): Rename to ...
+ (gdb_signal_from_target): ... this. Adjust to
+ default_gdb_signal_from_host naming change. Extend comment.
+ (gdb_signal_to_host): Rename to ...
+ (gdb_signal_to_target): ... this. Adjust to
+ default_gdb_signal_to_host naming change.
+ * gdbarch.h, gdbarch.c: Renegerate.
+
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+
+ PR gdb/7205
+
+ Replace target_signal with gdb_signal throughout.
+
+
+ PR tui/14159
+
+ * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
+ string, instead of reusing the va_list argument.
+
+
+ * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
+ Remove.
+
+
+ * symtab.c (search_symbols): Formatting fixes.
+ (print_symbol_info): Formatting fixes.
+
+ * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
+ int64_t change to leb128 API.
+ (read_encoded_value, decode_frame_entry_1): Ditto.
+ * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
+ (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
+ (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
+ (execute_stack_op): Ditto.
+ * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
+ (safe_read_uleb128, safe_read_sleb128): Ditto.
+ * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
+ (dwarf2_compile_expr_to_ax): Ditto.
+ (locexpr_describe_location_piece): Ditto.
+ (disassemble_dwarf_expression): Ditto.
+ (locexpr_describe_location_1): Ditto.
+
+
+ * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
+ (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
+ (mi-cmd-info.o): New rule.
+ * osdata.h (info_osdata_command): New declaration.
+ * osdata.c (info_osdata_command): Change to non-static.
+ * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
+ * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
+ * mi/mi-cmd-info.c: New file.
+
+
+ * symtab.c (search_symbols): Pass NULL for file_matcher to
+ expand_symtabs_matching if there are no files to match.
+
+ * gdbtypes.c (lookup_typename): Simplify.
+
+
+ * arch-utils.h (default_target_signal_to_host): Delete.
+ * arch-utils.c (default_target_signal_to_host): Delete.
+ * gdbarch.sh (target_signal_to_host): Remove.
+ * gdbarch.h, gdbarch.c: Regenerate.
+
+
+ * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
+ "const gdb_byte *".
+ (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
+ (execute_cfa_program): Update to match API of leb128 functions.
+ (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
+ "const gdb_byte *".
+ (read_unsigned_leb128, read_signed_leb128): Delete.
+ (read_initial_length): Change type of buf argument to
+ "const gdb_byte *".
+ (read_encoded_value): Update to match API of leb128 functions.
+ (decode_frame_entry): Change result to "const gdb_byte *", and
+ similarly for "start" parameter.
+ (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
+ (dwarf2_build_frame_info): Change local frame_ptr to
+ "const gdb_byte *".
+ * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
+ read_uleb128, read_sleb128. All callers updated.
+ (safe_skip_leb128): New function.
+ (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
+ Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
+ (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
+ functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
+ read_uleb128, read_sleb128.
+ (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
+ (execute_stack_op): Update to match API of leb128 functions.
+ * dwarf2expr.h: #include "leb128.h".
+ (read_uleb128, read_sleb128): Delete.
+ (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
+ (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
+ * dwarf2loc.c (debug_loc_kind): New enum.
+ (decode_debug_loc_addresses): New function.
+ (decode_debug_loc_dwo_addresses): New function.
+ (dwarf2_find_location_expression): Rewrite.
+ (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
+ (locexpr_describe_location_piece): Ditto.
+ (disassemble_dwarf_expression): Ditto.
+ (locexpr_describe_location_1): Ditto.
+ (loclist_describe_location): Rewrite.
+ * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
+ * dwarf2read.c (die_reader_specs): New member "buffer_end".
+ (dwarf2_section_buffer_overflow_complaint): Renamed from
+ dwarf2_macros_too_long_complaint. All callers updated.
+ (skip_leb128): Delete.
+ (init_cu_die_reader): Initialize reader->buffer_end.
+ (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
+ (skip_form_bytes): New arg buffer_end. All callers updated.
+ Replace call to skip_leb128 with gdb_skip_leb128.
+ (skip_unknown_opcode): New arg mac_end. All callers updated.
+ (fill_in_loclist_baton): Initialize baton->from_dwo.
+
+
+ * mips-linux-nat.c (mips_linux_read_description): Use a more
+ verbose error message.
+
+
+ * NEWS: Add MIPS/Linux DSP support.
+ * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
+ (SIGCONTEXT_DSPCTL): New macro.
+ (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
+ (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
+ (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
+ (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
+ (N64_SIGCONTEXT_HI3): Likewise.
+ (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
+ (N64_SIGCONTEXT_LO3): Likewise.
+ (N64_SIGCONTEXT_DSPCTL): Likewise.
+ (N64_SIGCONTEXT_FPCSR): Clarify definition.
+ (mips_linux_o32_sigframe_init): Handle DSP registers.
+ (mips_linux_n32n64_sigframe_init): Likewise.
+
+
+ * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
+ call to abort.
+
+
+ * target.h (store_waitstatus): Move declaration ...
+ * inf-child.h (store_waitstatus): ... here.
+ * target.c: Move inclusion of gdb_wait.h, and ...
+ (store_waitstatus): ... this ...
+ * inf-child.c: ... here.
+ * linux-nat.c: Include inf-child.h.
+ * rs6000-nat.c: Include inf-child.h.
+ * spu-linux-nat.c: Include inf-child.h.
+
+
+ * tracepoint.c (start_tracing): Add missing i18n markup.
+ (stop_tracing, set_trace_user): Ditto.
+ (set_trace_notes, set_trace_stop_notes): Ditto.
+
+
+ PR c++/7173:
+ * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
+ types.
+ * value.h (value_cast_pointers): Update.
+ * valops.c (value_cast_pointers): Add 'subclass_check' argument.
+ (value_cast): Update.
+ (update_search_result): New function.
+ (do_search_struct_field): New, from search_struct_field. Check
+ for ambiguous results.
+ (search_struct_field): Rewrite.
+ * infcall.c (value_arg_coerce): Update.
+ * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
+ value_cast_pointers.
+ * ada-lang.c (ada_convert_actual): Update.
+
+
+ * macroexp.c (macro_stringify): Terminate the string.
+
+
+ * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
+ Describe it.
+ * auto-load.c (auto_load_expand_dir_vars): New function.
+ (auto_load_safe_path_vec_update): Use it, remove the
+ substitute_path_component call thanks to it.
+ (auto_load_objfile_script): Remove the debug_file_directory processing.
+ Use auto_load_expand_dir_vars, remove the substitute_path_component
+ call thanks to it.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
+ path. Escape $ also for $debugdir.
+ (--with_auto_load_safe_path): Escape $ also for $debugdir.
+ * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
+
+
+ * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
+ before use. Check for symtab->includes == NULL before scanning it.
+
+
+ * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
+
+
+ * NEWS: Add microMIPS support and "set mips compression",
+ "show mips compression" commands.
+ * mips-tdep.h (mips_isa): New enum.
+ (gdbarch_tdep): Add mips_isa.
+ (mips_pc_is_mips16): Update prototype.
+ (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
+ * mips-tdep.c (mips_compression_mips16): New variable.
+ (mips_compression_micromips): Likewise.
+ (mips_compression_strings): Likewise.
+ (mips_compression_string): Likewise.
+ (is_mips16_isa, is_micromips_isa): New functions.
+ (is_mips16_addr): Rename to...
+ (is_compact_addr): ... this.
+ (unmake_mips16_addr): Likewise to...
+ (unmake_compact_addr): ... this.
+ (make_mips16_addr): Likewise to...
+ (make_compact_addr): ... this.
+ (is_mips_addr, is_mips16_addr, is_micromips_addr): New
+ functions.
+ (mips_elf_make_msymbol_special): Handle microMIPS code.
+ (msymbol_is_special): Rename to...
+ (msymbol_is_mips16): ... this.
+ (mips_make_symbol_special, mips_pc_is_mips16): Update
+ accordingly.
+ (msymbol_is_mips, msymbol_is_micromips): New functions.
+ (mips16_to_32_reg): Rename to...
+ (mips_reg3_to_reg): ... this.
+ (mips_pc_is_mips, mips_pc_is_micromips): New functions.
+ (mips_pc_isa): Likewise.
+ (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
+ code.
+ (mips_fetch_instruction): Pass return status instead of printing
+ an error message if requested. Handle microMIPS code. Bail out
+ on an invalid ISA.
+ (micromips_op): New macro.
+ (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
+ (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
+ (b6s4_op, b7s3_reg): Likewise.
+ (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
+ (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
+ (mips_insn_size): New function.
+ (mips32_next_pc): Update mips_fetch_instruction call.
+ (micromips_relative_offset7): New function.
+ (micromips_relative_offset10): Likewise.
+ (micromips_relative_offset16): Likewise.
+ (micromips_pc_insn_size): Likewise.
+ (micromips_bc1_pc): Likewise.
+ (micromips_next_pc): Likewise.
+ (unpack_mips16): Update mips_fetch_instruction call.
+ (extended_mips16_next_pc): Update according to change to
+ mips16_to_32_reg.
+ (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
+ code.
+ (mips16_scan_prologue): Update mips_fetch_instruction call.
+ Update according to change to mips16_to_32_reg.
+ (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
+ (mips_insn16_frame_base_sniffer): Likewise.
+ (micromips_decode_imm9): New function.
+ (micromips_scan_prologue): Likewise.
+ (mips_micro_frame_cache): Likewise.
+ (mips_micro_frame_this_id): Likewise.
+ (mips_micro_frame_prev_register): Likewise.
+ (mips_micro_frame_sniffer): Likewise.
+ (mips_micro_frame_unwind): New variable.
+ (mips_micro_frame_base_address): New function.
+ (mips_micro_frame_base): New variable.
+ (mips_micro_frame_base_sniffer): New function.
+ (mips32_scan_prologue): Update mips_fetch_instruction call.
+ (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
+ rather than for MIPS16.
+ (mips_insn32_frame_base_sniffer): Likewise.
+ (mips_addr_bits_remove): Handle microMIPS code.
+ (deal_with_atomic_sequence): Rename to...
+ (mips_deal_with_atomic_sequence): ... this. Update the type
+ of the variable used to hold an instruction. Remove the ISA bit
+ check. Update mips_fetch_instruction call.
+ (micromips_deal_with_atomic_sequence): New function.
+ (deal_with_atomic_sequence): Likewise.
+ (mips_about_to_return): Handle microMIPS code. Update
+ mips_fetch_instruction call.
+ (heuristic_proc_start): Check for the standard MIPS ISA rather
+ than for MIPS16. Update mips_pc_is_mips16 and
+ mips_fetch_instruction calls. Handle microMIPS code.
+ (mips_push_dummy_code): Handle microMIPS code.
+ (mips_eabi_push_dummy_call): Likewise.
+ (mips_o32_return_value): Update mips_pc_is_mips16 call.
+ (mips_o64_push_dummy_call): Handle microMIPS code.
+ (mips_o64_return_value): Update mips_pc_is_mips16 call.
+ (is_delayed): Remove function.
+ (mips_single_step_through_delay): Replace the call to is_delayed
+ with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
+ Handle microMIPS code.
+ (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
+ microMIPS code.
+ (mips32_in_function_epilogue_p): Update mips_fetch_instruction
+ call.
+ (micromips_in_function_epilogue_p): New function.
+ (mips16_in_function_epilogue_p): Update mips_fetch_instruction
+ call.
+ (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
+ Handle microMIPS.
+ (gdb_print_insn_mips): Likewise.
+ (mips_breakpoint_from_pc): Likewise.
+ (mips_remote_breakpoint_from_pc): New function.
+ (mips32_instruction_has_delay_slot): Simplify making use of the
+ updated mips_fetch_instruction interface.
+ (micromips_instruction_has_delay_slot): New function.
+ (mips16_instruction_has_delay_slot): Simplify making use of the
+ updated mips_fetch_instruction interface.
+ (mips_adjust_breakpoint_address): Check for the standard MIPS
+ ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
+ calls. Handle microMIPS code.
+ (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
+ (mips_skip_trampoline_code): Handle microMIPS code.
+ (global_mips_compression): New function.
+ (mips_gdbarch_init): Handle the compressed ISA setting from ELF
+ file flags. Register the microMIPS remote breakpoint handler
+ and heuristic frame unwinder.
+ (show_mips_compression): New function.
+ (_initialize_mips_tdep): Add the "set mips compression" and
+ "show mips compression" commands.
+
+
+ * ada-lang.c:
+ * ada-tasks.c:
+ * ada-varobj.c:
+ * amd64-darwin-tdep.c:
+ * arm-symbian-tdep.c:
+ * arm-tdep.c:
+ * avr-tdep.c:
+ * ax-gdb.c:
+ * bfin-linux-tdep.c:
+ * breakpoint.c:
+ * c-valprint.c:
+ * cli/cli-cmds.c:
+ * coffread.c:
+ * cp-support.c:
+ * cris-tdep.c:
+ * dwarf2-frame-tailcall.c:
+ * dwarf2-frame.c:
+ * dwarf2expr.c:
+ * dwarf2loc.c:
+ * dwarf2read.c:
+ * elfread.c:
+ * eval.c:
+ * expprint.c:
+ * f-valprint.c:
+ * frv-tdep.c:
+ * h8300-tdep.c:
+ * hppa-hpux-tdep.c:
+ * hppa-tdep.c:
+ * hppanbsd-tdep.c:
+ * i386-nto-tdep.c:
+ * i386-tdep.c:
+ * i387-tdep.c:
+ * ia64-tdep.c:
+ * jit.c:
+ * linespec.c:
+ * linux-tdep.c:
+ * lm32-tdep.c:
+ * m2-valprint.c:
+ * m32c-tdep.c:
+ * m32r-rom.c:
+ * m32r-tdep.c:
+ * m68k-tdep.c:
+ * m68klinux-tdep.c:
+ * mi/mi-main.c:
+ * microblaze-tdep.c:
+ * mips-linux-tdep.c:
+ * mips-tdep.c:
+ * mn10300-tdep.c:
+ * p-valprint.c:
+ * parse.c:
+ * ppc-linux-tdep.c:
+ * ppc-sysv-tdep.c:
+ * printcmd.c:
+ * python/py-finishbreakpoint.c:
+ * python/py-inferior.c:
+ * python/py-infthread.c:
+ * python/py-type.c:
+ * python/python.c:
+ * remote-fileio.c:
+ * remote-m32r-sdi.c:
+ * remote-mips.c:
+ * reverse.c:
+ * rl78-tdep.c:
+ * rs6000-aix-tdep.c:
+ * rs6000-tdep.c:
+ * s390-tdep.c:
+ * score-tdep.c:
+ * sh64-tdep.c:
+ * skip.c:
+ * solib-darwin.c:
+ * solib-dsbt.c:
+ * solib-frv.c:
+ * sparc-tdep.c:
+ * spu-multiarch.c:
+ * spu-tdep.c:
+ * stack.c:
+ * symfile.c:
+ * symtab.c:
+ * tic6x-tdep.c:
+ * tracepoint.c:
+ * v850-tdep.c:
+ * valarith.c:
+ * valprint.c:
+ * value.c:
+ * xcoffread.c:
+ * xtensa-tdep.c:
+ * ada-lang.c:
+ * ada-tasks.c:
+ * ada-varobj.c:
+ * amd64-darwin-tdep.c:
+ * arm-symbian-tdep.c:
+ * arm-tdep.c: Delete unused variables.
+
+
+ Rename $ddir to $datadir.
+ * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
+ * auto-load.c (auto_load_safe_path_vec_update)
+ (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
+ Likewise. Remove the 'use $ddir' help string.
+
+
+ * auto-load.c (show_auto_load_safe_path): Accept any combination of
+ DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
+
+
+ PR exp/13907:
+ * valprint.h (struct value_print_options) <symbol_print>: New
+ field.
+ * valprint.c (user_print_options): Add default for symbol_print.
+ (show_symbol_print): New function.
+ (generic_val_print): Respect symbol_print.
+ (_initialize_valprint): Add "print symbol" setting.
+ * f-valprint.c (f_val_print): Respect symbol_print.
+ * c-valprint.c (c_val_print): Respect symbol_print.
+ * NEWS: Update.
+ * printcmd.c (print_address_symbolic): Return int. Ignore some
+ zero-size symbols.
+ (print_address_demangle): Return int.
+ * defs.h: (print_address_symbolic): Return int.
+ * value.h (print_address_demangle): Return int.
+
+
+ * valprint.c (val_print_string): Don't print leading space.
+ * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
+ print space before string or vtbl.
+ * m2-valprint.c (print_unpacked_pointer): Optionally print space
+ before string.
+ * jv-valprint.c (java_value_print): Print space before string.
+ * go-valprint.c (print_go_string): Print space before string.
+ * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
+ space before string.
+ * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
+ space before string or vtbl.
+ * auxv.c (fprint_target_auxv): Print space after address.
+
+
+ * printcmd.c (print_address_demangle): Remove special case for 0.
+
+
+ * printcmd.c (print_address_demangle): Add 'opts' argument.
+ * p-valprint.c (pascal_val_print): Update.
+ * jv-valprint.c (java_val_print): Update.
+ * value.h: Update.
+ * valprint.c (generic_val_print): Update.
+ (print_function_pointer_address): Add 'options' argument. Remove
+ 'addressprint' argument. Update.
+ * m2-valprint.c (print_unpacked_pointer): Update.
+ * gnu-v3-abi.c (print_one_vtable): Update.
+ (gnuv3_print_method_ptr): Update.
+ * f-valprint.c (f_val_print): Update.
+ * cp-valprint.c (cp_print_value_fields): Update.
+ * valprint.h (print_function_pointer_address): Update.
+ * c-valprint.c (c_val_print): Update.
+
+
+ * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
+ directly corresponding to the found psymtab.
+ * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
+ (dw2_find_pc_sect_symtab): Use it.
+ * block.h (blockvector_contains_pc): Declare.
+ * block.c (find_block_in_blockvector): New function.
+ (blockvector_for_pc_sect): Use it.
+ (blockvector_contains_pc): New function.
+
+
+ * mips-tdep.h (mips_write_pc): New prototype.
+ * mips-tdep.c (mips_write_pc): Make external, add description.
+ * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
+ add description.
+
+
+ * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
+ mips_regnum->pc.
+ (mips_unwind_pc, mips_write_pc): Likewise.
+ (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
+ gdbarch_read_pc.
+
+
+ * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
+ proc_warn, proc_error, proc_get_status, proc_flags,
+ proc_why, proc_what, proc_nsysarg, proc_sysargs,
+ proc_set_run_on_last_close, proc_unset_run_on_last_close,
+ proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
+ proc_stop_process, proc_wait_for_stop, proc_run_process,
+ proc_set_traced_signals, proc_set_traced_faults,
+ proc_set_traced_sysentry, proc_set_traced_sysexit,
+ proc_set_held_signals, proc_get_held_signals,
+ proc_get_traced_signals, proc_get_traced_faults,
+ proc_get_traced_sysentry, proc_get_traced_sysexit,
+ proc_clear_current_fault, proc_set_current_signal,
+ proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
+ proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
+ proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
+ proc_get_current_thread, proc_get_current_thread,
+ proc_get_current_thread, proc_update_threads,
+ proc_update_threads, proc_update_threads, proc_update_threads,
+ proc_iterate_over_threads, procfs_find_new_threads,
+ procfs_pid_to_str): Make static. Remove advance declaration.
+ (proc_cursig): Make static. Conditionalized defintion on
+ PROCFS_DONT_PIOCSSIG_CURSIG being defined.
+ (proc_syscall, proc_set_kill_on_last_close,
+ proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
+ proc_get_pending_signals, proc_get_signal_actions,
+ proc_trace_signal, proc_ignore_signal): Delete.
+
+
+ * coffread.c (cs_section_address): Passing proper argument for
+ `bfd_get_section_vma'.
+ * dwarf2read.c (dwarf2_locate_sections): Likewise, for
+ `bfd_get_section_flags'.
+ * remote.c (remote_trace_set_readonly_regions): Likewise, for
+ `bfd_get_section_vma'.
+
+
+ PR macros/13205:
+ * macrotab.h: (macro_define_special): Declare.
+ (enum macro_special_kind): New.
+ (struct macro_definition) <argc, replacement>: Update comments.
+ * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
+ (macro_define_object_internal): New function.
+ (macro_define_object): Use it.
+ (macro_define_special): New function.
+ (fixup_definition): New function.
+ (macro_lookup_definition, foreach_macro_in_scope)
+ (foreach_macro): Use fixup_definition.
+ * macroexp.h (macro_stringify): Declare.
+ * macroexp.c (free_buffer_return_text): New function.
+ (stringify): Constify "arg".
+ (macro_stringify): New function.
+ * dwarf2read.c (macro_start_file): Call macro_define_special.
+
+
+ * breakpoint.h (bp_location): Add related_address member.
+ * inferior.h (get_return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ * value.h (using_struct_return): Likewise.
+ * gdbarch.sh (return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ * breakpoint.c (set_breakpoint_location_function): Initialize
+ related_address for bp_gnu_ifunc_resolver breakpoints.
+ * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
+ requested function's address to gdbarch_return_value.
+ * eval.c (evaluate_subexp_standard): Pass the requested
+ function's address to using_struct_return.
+ * infcall.c (call_function_by_hand): Pass the requested
+ function's address to using_struct_return and
+ gdbarch_return_value.
+ * infcmd.c (get_return_value): Take a pointer to struct value
+ instead of struct type for the function requested.
+ (print_return_value): Update accordingly.
+ (finish_command_continuation): Likewise.
+ * stack.c (return_command): Pass the requested function's
+ address to using_struct_return and gdbarch_return_value.
+ * value.c (using_struct_return): Take a pointer to struct value
+ instead of struct type for the function requested. Pass the
+ requested function's address to gdbarch_return_value.
+ * python/py-finishbreakpoint.c (finish_breakpoint_object):
+ New function_value member, replacing function_type.
+ (bpfinishpy_dealloc): Update accordingly.
+ (bpfinishpy_pre_stop_hook): Likewise.
+ (bpfinishpy_init): Likewise. Record the requested function's
+ address.
+ * mips-tdep.c (mips_fval_reg): New enum.
+ (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
+ words put in GP registers.
+ (mips_o64_push_dummy_call): Update a comment.
+ (mips_o32_return_value): Take a pointer to struct value instead
+ of struct type for the function requested and use it to check if
+ using the MIPS16 calling convention. Return the designated
+ general purpose registers for floating-point values returned in
+ MIPS16 mode.
+ (mips_o64_return_value): Likewise.
+ * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
+ (ppc_sysv_abi_broken_return_value): Likewise.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * alpha-tdep.c (alpha_return_value): Take a pointer to struct
+ value instead of struct type for the function requested.
+ * amd64-tdep.c (amd64_return_value): Likewise.
+ * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
+ * arm-tdep.c (arm_return_value): Likewise.
+ * avr-tdep.c (avr_return_value): Likewise.
+ * bfin-tdep.c (bfin_return_value): Likewise.
+ * cris-tdep.c (cris_return_value): Likewise.
+ * frv-tdep.c (frv_return_value): Likewise.
+ * h8300-tdep.c (h8300_return_value): Likewise.
+ (h8300h_return_value): Likewise.
+ * hppa-tdep.c (hppa32_return_value): Likewise.
+ (hppa64_return_value): Likewise.
+ * i386-tdep.c (i386_return_value): Likewise.
+ * ia64-tdep.c (ia64_return_value): Likewise.
+ * iq2000-tdep.c (iq2000_return_value): Likewise.
+ * lm32-tdep.c (lm32_return_value): Likewise.
+ * m32c-tdep.c (m32c_return_value): Likewise.
+ * m32r-tdep.c (m32r_return_value): Likewise.
+ * m68hc11-tdep.c (m68hc11_return_value): Likewise.
+ * m68k-tdep.c (m68k_return_value): Likewise.
+ (m68k_svr4_return_value): Likewise.
+ * m88k-tdep.c (m88k_return_value): Likewise.
+ * mep-tdep.c (mep_return_value): Likewise.
+ * microblaze-tdep.c (microblaze_return_value): Likewise.
+ * mn10300-tdep.c (mn10300_return_value): Likewise.
+ * moxie-tdep.c (moxie_return_value): Likewise.
+ * mt-tdep.c (mt_return_value): Likewise.
+ * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
+ * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
+ (ppc_sysv_abi_broken_return_value): Likewise.
+ (ppc64_sysv_abi_return_value): Likewise.
+ * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
+ * rl78-tdep.c (rl78_return_value): Likewise.
+ * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
+ * rx-tdep.c (rx_return_value): Likewise.
+ * s390-tdep.c (s390_return_value): Likewise.
+ * score-tdep.c (score_return_value): Likewise.
+ * sh-tdep.c (sh_return_value_nofpu): Likewise.
+ (sh_return_value_fpu): Likewise.
+ * sh64-tdep.c (sh64_return_value): Likewise.
+ * sparc-tdep.c (sparc32_return_value): Likewise.
+ * sparc64-tdep.c (sparc64_return_value): Likewise.
+ * spu-tdep.c (spu_return_value): Likewise.
+ * tic6x-tdep.c (tic6x_return_value): Likewise.
+ * v850-tdep.c (v850_return_value): Likewise.
+ * vax-tdep.c (vax_return_value): Likewise.
+ * xstormy16-tdep.c (xstormy16_return_value): Likewise.
+ * xtensa-tdep.c (xtensa_return_value): Likewise.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+
+
+ * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
+
+
+ * breakpoint.c (init_breakpoint_sal): Add quotes around part
+ of command in two error message.
+
+
+ * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
+
+
+ * breakpoint.c (find_condition_and_thread): Minor reformatting.
+
+
+ * NEWS (show auto-load scripts-directory): Add forgotten command.
+
+
+ * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
+ parameters.
+
+
+ * amd64-tdep.c: Include features/i386/x32.c and
+ features/i386/x32-avx.c.
+ (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
+ initialize_tdesc_x32_avx.
+
+
+ Add dynamic printf.
+ * breakpoint.h (enum bptype): New type bp_dprintf.
+ (struct breakpoint): New field extra_string.
+ (struct breakpoint_ops): Add arg to create_breakpoints_sal.
+ (create_breakpoint): Add extra_string arg.
+ * breakpoint.c (dprintf_breakpoint_ops): New.
+ (is_breakpoint): Add bp_dprintf.
+ (bpstat_what): Add dprintf case.
+ (bptype_string): Ditto.
+ (print_one_breakpoint_location): Ditto.
+ (init_bp_location): Ditto.
+ (bkpt_print_mention): Ditto.
+ (dprintf_style_enums): New array.
+ (dprintf_style): New global.
+ (dprintf_function): New global.
+ (dprintf_channel): New global.
+ (update_dprintf_command_list): New function.
+ (update_dprintf_commands): New function.
+ (init_breakpoint_sal): Add extra_string argument, handle it.
+ (create_breakpoint_sal): Add extra_string argument.
+ (create_breakpoints_sal): Add extra_string argument, update callers.
+ (find_condition_and_thread): Add extra argument.
+ (create_breakpoint): Add extra_string argument, record it.
+ (dprintf_command): New function.
+ (break_command_1): Add arg to create_breakpoint call.
+ (handle_gnu_v3_exceptions): Ditto.
+ (trace_command): Ditto.
+ (ftrace_command): Ditto.
+ (strace_command): Ditto.
+ (bkpt_print_mention): Add dprintf case.
+ (create_breakpoint_sal_default): Add extra_string argument.
+ (_initialize_breakpoint): Add new commands.
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
+ * python/py-breakpoint.c (bppy_init): Ditto.
+ * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
+
+
+ * mips-tdep.c (mips_push_dummy_code): Correct description typo.
+
+
+ * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
+ unsigned long long.
+
+
+ Add a new function gdb.find_pc_line to the Python API.
+ * NEWS (Python Scripting): Add entry about the new function.
+ * python/python.c (gdbpy_find_pc_line): New function which
+ implements gdb.find_pc_line.
+ (GdbMethods): Add entry for the new function.
+
+
+ * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
+ initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
+
+
+ * inferior.c: Include completer.h
+ (initialize_inferiors): Set completer of add-inferior to
+ filename_completer.
+
+
+ * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
+ gdbarch_ptr_bit for x32 core dump.
+
+
+ * amd64-linux-tdep.c: Include features/i386/x32-linux.c
+ and features/i386/x32-avx-linux.c.
+
+
+ * NEWS: Describe new info os commands.
+ * common/linux-osdata.c (PID_T, TIME_T): Define.
+ (MAX_PID_T_STRLEN): New.
+ (linux_common_core_of_thread): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (command_from_pid): Add comment. Change to use PID_T.
+ (commandline_from_pid): Change to use PID_T.
+ (user_from_pid): Add comment.
+ (get_process_owner): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (get_number_of_cpu_cores): Add comment.
+ (get_cores_used_by_process): Add comment. Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (linux_xfer_osdata_processes): Change to use PID_T and
+ MAX_PID_T_STRLEN.
+ (compare_processes): New function.
+ (linux_xfer_osdata_processgroups): New function.
+ (linux_xfer_osdata_threads): Change to use PID_T.
+ (linux_xfer_osdata_fds): New function.
+ (format_socket_state, print_sockets): New functions.
+ (union socket_addr): New union.
+ (linux_xfer_osdata_isockets): New function.
+ (time_from_time_t, group_from_gid): New functions.
+ (linux_xfer_osdata_shm): New function.
+ (linux_xfer_osdata_sem): New function.
+ (linux_xfer_osdata_msg): New function.
+ (linux_xfer_osdata_modules): New function.
+ (osdata_table): Add new entries.
+ * common/buffer.c (buffer_xml_printf): Add support for long and
+ long long format specifiers.
+
+
+ * amd64-linux-tdep.h (tdesc_x32_linux): New.
+ (tdesc_x32_avx_linux): Likewise.
+
+
+ Implement multi-component --with-auto-load-dir.
+ * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
+ entries.
+ (--with-auto-load-safe-path): Update the default value description.
+ * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
+ New.
+ (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
+ GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
+ AUTO_LOAD_DIR. Support $ddir and multiple components in it.
+ (_initialize_auto_load): Initialize also auto_load_dir. Install new
+ "set auto-load scripts-directory".
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac (--with-auto-load-dir): New configure option.
+ (--auto-load-safe-path): Change the default to --with-auto-load-dir.
+
+
+ Provide $ddir substitution for --with-auto-load-safe-path.
+ * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
+ entries.
+ * auto-load.c: Include observer.h.
+ (auto_load_safe_path_vec_update): Call substitute_path_component for
+ each component. New variable ddir_subst.
+ (auto_load_gdb_datadir_changed): New function.
+ (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
+ AUTO_LOAD_SAFE_PATH. New comment.
+ (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
+ AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
+ * config.in: Regenerate.
+ * configure: Regenerate.
+ * configure.ac (--auto-load-safe-path): Rename
+ DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
+ GDB_DATADIR/auto-load.
+ * defs.h (substitute_path_component): New declaration.
+ * top.c: Include observer.h.
+ (set_gdb_datadir): New function.
+ (init_main): Install it for "set data-directory".
+ * utils.c (substitute_path_component): New function.
+
+
+ Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
+ * auto-load.c (auto_load_objfile_script): Remove check for NULL
+ DEBUG_FILE_DIRECTORY. Handle multiple components of
+ DEBUG_FILE_DIRECTORY.
+
* dwarf2read.c (recursively_write_psymbols): New function.