PR 17564: Fix objfile search order for static symbols.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index abad94504a4d65f129387a52c7e8ed02fb0e4246..56e43410fcb20c0ba7c304e1f653c5297ed0e2a4 100644 (file)
@@ -1,3 +1,520 @@
+2014-11-10  Doug Evans  <xdje42@gmail.com>
+
+       PR symtab/17564
+       * symtab.c (lookup_symbol_in_all_objfiles): Delete.
+       (lookup_static_symbol): Move definition to new location and rewrite.
+       (lookup_symbol_in_objfile): New function.
+       (lookup_symbol_global_iterator_cb): Call it.
+
+2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
+
+2014-11-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (process_event_stop_test) <subroutine check>: Don't
+       check if we did a "nexti" inside a prologue.
+       * symtab.c (in_prologue): Delete function.
+       * symtab.h (in_prologue): Delete declaration.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.h (lookup_global_symbol): Improve function comment.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
+       All callers updated.
+       * symtab.h (lookup_global_symbol): Update decl.
+       (lookup_static_symbol): Move decl to better location.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
+       All callers updated.
+       (lookup_symbol_in_all_objfiles): Renamed from
+       lookup_symbol_aux_symtabs.  All callers updated.
+       (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
+       All callers updated.
+       (lookup_symbol_in_objfile_symtabs): Renamed from
+       lookup_symbol_aux_objfile.  All callers updated.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_symbol_in_block): Renamed from
+       lookup_symbol_aux_block.  All callers updated.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_static_symbol): Renamed from
+       lookup_static_symbol_aux.  All callers updated.
+       (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
+       All callers updated.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
+       * block.c (block_lookup_symbol): Use it.
+       * cp-support.c (make_symbol_overload_list_block): Use it.
+       * symtab.c (iterate_over_symbols): Use it.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_block_symbol): Moved to ...
+       * block.c (block_lookup_symbol):  ... here and renamed.
+       All callers updated.
+       * block.h (block_lookup_symbol): Declare.
+       * symtab.h (lookup_block_symbol): Delete.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * ada-lang.c (ada_make_symbol_completion_list): Use
+       ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
+       * symtab.c (lookup_objfile_from_block): Ditto.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
+       TYPE_CODE_STRUCT.
+
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * objfiles.c (get_objfile_arch): Constify.
+       * objfiles.h (get_objfile_arch): Update prototype.
+       * solib.c (solib_global_lookup): Fetch arch from objfile,
+       not target_gdbarch.
+
+2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * nios2-tdep.c (wild_insn): Delete.
+       (profiler_insn, irqentry_insn): Delete.
+       (nios2_match_sequence): Delete.
+       (nios2_analyze_prologue): Update comments.  Remove matching
+       of obsolete profiler_insn and irqentry_insn sequences.
+
+2014-11-05  Alan Modra  <amodra@gmail.com>
+
+       * charset.c (convert_between_encodings): Shrink obstack using
+       obstack_blank_fast.
+       * minsyms.c (install_minimal_symbols): Likewise.
+       * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
+       to char* before doing pointer arithmetic.
+
+2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
+
+2014-11-04  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (breakpoint_thread_match): Delete function.
+       * breakpoint.h (breakpoint_thread_match): Delete declaration.
+
+2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
+
+       PR c++/17494
+       * eval.c (evaluate_subexp_standard): Evaluate the "object" and
+       the method args also under EVAL_SKIP when evaluating method
+       calls under EVAL_SKIP.
+
+2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
+
+       * dwarf2loc.c (read_pieced_value): Do big endian
+       processing only if gdb_regnum is not -1.
+       (write_pieced_value): Ditto.
+
+2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_init_abi): Use
+       info.byte_order_for_code to choose endianity of breakpoint
+       instructions snippets.
+
+2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
+
+       * arm-tdep.c (extract_arm_insn): Use
+       gdbarch_byte_order_for_code to read arm instruction.
+
+2014-11-02  Doug Evans  <xdje42@gmail.com>
+
+       * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
+
+2014-11-02  Doug Evans  <xdje42@gmail.com>
+
+       * xcoffread.c (process_linenos): Delete unnecessary zeroing of
+       main_subfile before returning.
+
+2014-10-31  Doug Evans  <xdje42@gmail.com>
+
+       * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
+       (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
+
+2014-10-31  Doug Evans  <xdje42@gmail.com>
+
+       * valops.c (value_cast_pointers): Fix whitespace.
+       (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
+       Ditto.
+
+2014-10-30  Doug Evans  <dje@google.com>
+
+       * NEWS: Mention ability add attributes to gdb.Objfile and
+       gdb.Progspace objects.
+       * python/py-objfile.c (objfile_object): New member dict.
+       (objfpy_dealloc): Py_XDECREF dict.
+       (objfpy_initialize): Initialize dict.
+       (objfile_getset): Add __dict__.
+       (objfile_object_type): Set tp_dictoffset member.
+       * python/py-progspace.c (progspace_object): New member dict.
+       (pspy_dealloc): Py_XDECREF dict.
+       (pspy_initialize): Initialize dict.
+       (pspace_getset): Add __dict__.
+       (pspace_object_type): Set tp_dictoffset member.
+
+2014-10-30  Yao Qi  <yao@codesourcery.com>
+
+       * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
+       replace '\\' with '\\\\'.
+
+2014-10-29  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.8.1 released.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17408
+       * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
+       instead of assuming a thread with a stepping range is always
+       stepping.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       PR python/17372
+       * event-top.c (change_line_handler): Call
+       gdb_rl_callback_handler_remove instead of
+       rl_callback_handler_remove.
+       (callback_handler_installed): New global.
+       (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
+       (gdb_rl_callback_handler_reinstall): New functions.
+       (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
+       gdb_rl_callback_handler_install instead of
+       rl_callback_handler_remove and rl_callback_handler_install.
+       (gdb_disable_readline): Call gdb_rl_callback_handler_remove
+       instead of rl_callback_handler_remove.
+       * event-top.h (gdb_rl_callback_handler_remove)
+       (gdb_rl_callback_handler_install)
+       (gdb_rl_callback_handler_reinstall): New declarations.
+       * infrun.c (reinstall_readline_callback_handler_cleanup): New
+       cleanup function.
+       (fetch_inferior_event): Install it.
+       * top.c (gdb_readline_wrapper_line) Call
+       gdb_rl_callback_handler_remove instead of
+       rl_callback_handler_remove.
+       (gdb_readline_wrapper_cleanup): Don't call
+       rl_callback_handler_install.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       * event-top.c (command_line_handler): Clear the first byte of
+       linebuffer, when it is first allocated.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
+       TRY_CATCH.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       PR tui/16138
+       PR tui/17519
+       * tui/tui-interp.c (tui_is_toplevel): Delete global.
+       (tui_allowed_p): Delete function.
+       * tui/tui.c: Include "interps.h".
+       (tui_enable): Don't use tui_allowed_p.  Error out here with
+       detailed error messages if the TUI is the top level interpreter,
+       or if output is not a terminal.  Use newterm instead of initscr,
+       and error out if initializing the terminal fails.  Also error out if
+       the terminal doesn't support cursor addressing.
+       * tui/tui.h (tui_allowed_p): Delete declaration.
+
+2014-10-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * arm-tdep.c (arm_skip_stack_protector): Return early if
+       address loaded by first "ldr" instruction does not have
+       a corresponding minimal symbol.  Update comment.
+
+2014-10-29  Yao Qi  <yao@codesourcery.com>
+
+       * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
+       loaded address correctly of ldr instruction.
+
+2014-10-28  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/12623
+       * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
+       field.
+       * infrun.c (resume) <stepping breakpoint instruction>: Set the
+       thread's stepped_breakpoint field.  Skip if reverse debugging.
+       Add comment.
+       (init_thread_stepping_state, handle_signal_stop): Clear the
+       thread's stepped_breakpoint field.
+
+2014-10-27  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_thread_alive): New, factored out from ...
+       (remote_thread_alive): ... this.
+       (remote_update_thread_list): Bail out before deleting threads if
+       the target returned an empty list, and, the current thread has a
+       magic/fake ptid.
+
+2014-10-27  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (handle_signal_stop): Also skip handlers when a random
+       signal arrives while handling a "stepi" or a "nexti".  Set the
+       thread's 'step_after_step_resume_breakpoint' flag.
+
+2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
+
+       * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
+       (arm_record_ld_st_imm_offset): Reimplement to cover all
+       load/store cases for ARM opcode 010.
+       (arm_record_ld_st_multiple): Reimplement to cover all
+       load/store cases for ARM opcode 100.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
+       parameter "kind" to "block_index".
+       * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
+       "block_index".
+       (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
+       obstack_alloc.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * parser-defs.h (block_found): Move decl from here ...
+       * symtab.h (block_found): ... to here.
+
+2014-10-26  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.h (struct field_of_this_result): Fix typo in comment.
+       (lookup_symbol_in_language): Move function comment here.
+       (lookup_symbol): Improve function comment.
+       (basic_lookup_symbol_nonlocal): Ditto.
+       (lookup_symbol_static, lookup_symbol_global): Ditto.
+       (lookup_symbol_aux_block): Ditto.
+       (lookup_language_this): Add function comment.
+       (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
+       function comment.
+       (lookup_block_symbol): Improve function comment.
+       (lookup_struct): Fix capitalization in function comment.
+       (lookup_transparent_type): Add function comment.
+       (lookup_global_symbol_from_objfile): Explicitly mark as extern.
+       Improve function comment.
+       (lookup_objfile_from_block): Add function comment.
+       * symtab.c (lookup_symbol_in_language): Update function comment.
+       (lookup_symbol, lookup_language_this): Ditto.
+       (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
+       (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
+       (basic_lookup_symbol_nonlocal): Ditto.
+       (lookup_symbol_static, lookup_symbol_global): Ditto.
+       (lookup_transparent_type, lookup_block_symbol): Ditto.
+
+2014-10-25  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (types_info): Delete forward decl.
+       (functions_info, variables_info, sources_info): Ditto.
+       (_initialize_symtab): Rewrite forward decl to use
+       initialize_file_ftype.
+
+2014-10-25  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
+
+2014-10-25  Doug Evans  <xdje42@gmail.com>
+
+       * dwarf2read.c (process_structure_scope): Remove second (nested) copy
+       of local var child_die.
+
+2014-10-24  Don Breazeal  <donb@codesourcery.com>
+
+       * infrun.c (follow_fork_inferior): Update fork message printing
+       to use target_terminal_ours_for_output instead of
+       target_terminal_ours, to use _() for all format strings, to print
+       "vfork" instead of "fork" for vforks, and to add a detach message.
+       (handle_vfork_child_exec_or_exit): Update message printing to use
+       target_terminal_ours_for_output instead of target_terminal_ours, to
+       use _() for all format strings, and to fix some formatting.
+
+2014-10-24  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
+       * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
+       * config/vax/vax.mh: Delete.
+       * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
+       obsolete configurations section.
+       * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
+       * vax-nat.c: Delete file.
+
+2014-10-24  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (Removed targets): Add OS/arch column.
+
+2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
+
+       * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
+       on the arg type of a constructor only if it is of reference type.
+
+2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
+       accessors and constants from nios2 opcodes update.
+       (nios2_get_next_pc): Likewise.
+
+2014-10-19  Doug Evans  <xdje42@gmail.com>
+
+       * gdbthread.h (set_running): Fix comment.
+       (set_executing, finish_thread_state): Fix comment.
+
+2014-10-18  Doug Evans  <xdje42@gmail.com>
+
+       * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
+
+2014-10-17  Doug Evans  <dje@google.com>
+
+       * NEWS: Mention new event gdb.clear_objfiles.
+       * python/py-event.h (emit_clear_objfiles_event): Clear
+       * python/py-events.h (events_object): New member clear_objfiles.
+       * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
+       event.
+       * python/py-inferior.c (python_new_objfile): If objfile is NULL,
+       emit clear_objfiles event.
+       * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
+       function.
+       (emit_clear_objfiles_event): New function.
+       (clear_objfiles): New event.
+       * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
+       Declare.
+       * python/python.c (_initialize_python): Call
+       gdbpy_initialize_clear_objfiles_event.
+
+2014-10-17  Doug Evans  <dje@google.com>
+
+       * NEWS: Mention new gdb.Objfile.progspace attribute.
+       * python/py-objfile.c (objfpy_get_progspace): New function.
+       (objfile_getset): New entry for "progspace".
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17471
+       * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
+       returns a copy of the input.
+       (run_command_1, continue_command, step_1, jump_command)
+       (signal_command, until_command, advance_command, finish_command)
+       (attach_command): Adjust and install a cleanup to free the
+       stripped args.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17300
+       * infcmd.c (continue_1): If continuing all threads in the
+       foreground, make sure the inferior's terminal settings are put in
+       effect.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17472
+       * annotate.c (annotate_breakpoints_invalid): Use
+       target_terminal_our_for_output instead of target_terminal_ours.
+       Give back the terminal to the target.
+       (annotate_frames_invalid): Likewise.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       * target.c (enum terminal_state): New enum.
+       (terminal_state): New global.
+       (target_terminal_init): New function.
+       (target_terminal_inferior): Skip if inferior already owns the
+       terminal.
+       (target_terminal_ours, target_terminal_ours_for_output): New
+       functions.
+       * target.h (target_terminal_init): Convert to function prototype.
+       (target_terminal_ours_for_output): Convert to function prototype
+       and tweak comment.
+       (target_terminal_ours): Convert to function prototype and tweak
+       comment.
+       * windows-nat.c (do_initial_windows_stuff): Call
+       target_terminal_init instead of child_terminal_init_with_pgrp.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
+       (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
+       (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
+       solib-osf.c.
+       * NEWS: Mention that support for alpha*-*-osf* has been removed.
+       * ada-lang.h [__alpha__ && __osf__]
+       (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
+       * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
+       * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
+       GDB_OSABI_OSF1.
+       * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
+       files.
+       * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
+       (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
+       * configure: Regenerate.
+       * configure.ac: Remove references to osf.
+       * configure.host: Handle alpha*-*-osf* in the obsolete hosts
+       section.  Remove all other references to osf.
+       * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
+       Remove all other references to osf.
+       * dec-thread.c: Delete file.
+       * defs.h (GDB_OSABI_OSF1): Delete.
+       * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
+       defined.
+       * osabi.c (gdb_osabi_names): Delete "OSF/1".
+       * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
+       Delete code.
+       (unconditionally_kill_inferior)
+       [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
+       * solib-osf.c: Delete file.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (clear_threads_listing_context): Move higher up, out of
+       the HAVE_LIBEXPAT guard.
+
+2014-10-16  Tristan Gingold  <gingold@adacore.com>
+
+       * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
+       (i386_darwin_store_inferior_registers): Sanitize gs and fs values
+       on amd64.
+
+2014-10-15  Pedro Alves  <palves@redhat.com>
+
+       * dec-thread.c (dec_thread_count_gdb_threads)
+       (dec_thread_add_gdb_thread): Delete.
+       (dec_thread_update_thread_list): Delete.
+       (dec_thread_find_new_threads): Rename to ...
+       (dec_thread_update_thread_list): ... this.  Delete GDB-size
+       threads that are no longer found in dec_thread_list.
+       (resync_thread_list): Delete.
+       (dec_thread_wait): Call dec_thread_update_thread_list instead of
+       resync_thread_list.
+
 2014-10-15  Pedro Alves  <palves@redhat.com>
 
        * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
This page took 0.030657 seconds and 4 git commands to generate.