X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=2fadb8cf394ff960e75641673924a2b0e5797ff4;hb=beed38b8273fa18be574a7e84d5d2ee1f563ed48;hp=a54e2c1863bb08fc8ae487f7f74068ed5bd4516e;hpb=f161c17134bdfa5f5e72d7afb7dfccf5599a67e1;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a54e2c1863..2fadb8cf39 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,341 @@ +2014-12-16 Joel Brobecker + + * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not + already defined. + (linux_enable_event_reporting): Add parameter "attached". + * nat/linux-ptrace.c (linux_test_for_exitkill): New forward + declaration. New function. + (linux_check_ptrace_features): Add linux_test_for_exitkill call. + (linux_enable_event_reporting): Add new parameter "attached". + Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is + nonzero. + * linux-nat.c (linux_init_ptrace): Add parameter "attached". + Use it. Update function description. + (linux_child_post_attach, linux_child_post_startup_inferior): + Update call to linux_enable_event_reporting. + +2014-12-16 Yao Qi + + * NEWS: Move some entries to "Changes since GDB 7.8" section. + +2014-12-16 Yao Qi + + * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with + ARG_LAST. + +2014-12-15 Simon Marchi + + * inferior.c (find_inferior_ptid): New function. + * inferior.h (find_inferior_ptid): New declaration. + * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid. + * corelow.c (core_pid_to_str): Same. + * darwin-nat.c (darwin_resume): Same. + * infrun.c (fetch_inferior_event): Same. + (get_inferior_stop_soon): Same. + (handle_inferior_event): Same. + (handle_signal_stop): Same. + * linux-nat.c (resume_lwp): Same. + (stop_wait_callback): Same. + * mi/mi-interp.c (mi_new_thread): Same. + (mi_thread_exit): Same. + * proc-service.c (ps_pglobal_lookup): Same. + * record-btrace.c (record_btrace_step_thread): Same. + * remote-sim.c (gdbsim_close_inferior): Same. + (gdbsim_resume): Same. + (gdbsim_stop): Same. + * sol2-tdep.c (sol2_core_pid_to_str): Same. + * target.c (memory_xfer_partial_1): Same. + (default_thread_address_space): Same. + * thread.c (thread_change_ptid): Same. + (switch_to_thread): Same. + (do_restore_current_thread_cleanup): Same. + +2014-12-15 Simon Marchi + + * defs.h (gdb_readline): Constify argument. + (gdb_readline_wrapper): Same. + (command_line_input): Same. + (deprecated_readline_hook): Same. + * top.c (deprecated_readline_hook): Same. + (gdb_readline): Same. + (gdb_readline_wrapper): Same. + (command_line_input): Constify argument. Pass prompt_arg to called + functions instead of local_prompt, overwriting prompt_arg if necessary. + * event-top.h (display_gdb_prompt): Constify argument. + * event-top.c (display_gdb_prompt): Same. + * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument + if building with Python 3.4 and up. + +2014-12-15 Simon Marchi + + * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of + os.getcwdu(). + +2014-12-15 Catalin Udma + + PR gdb/15684 + * memattr.c (mem_info_command): Remove "unsigned long" casts. + +2014-12-13 Doug Evans + + * utils.c (make_hex_string): Fix off-by-one error. + +2014-12-13 Joel Brobecker + + * ada-lang.h (ada_ensure_varsize_limit): Declare. + * ada-lang.c (check_size): Remove advance declaration. + (ada_ensure_varsize_limit): Renames check_size. + Replace calls to check_size by calls to ada_ensure_varsize_limit + throughout. + * ada-valprint.c (ada_val_print_ref): Add call to + ada_ensure_varsize_limit. Add comment explaining why. + +2014-12-13 Joel Brobecker + + * utils.c (make_hex_string): Replace use of sprintf by use of + xsnprintf. + +2014-12-13 Joel Brobecker + + * compile/compile-object-load.c (link_callbacks_multiple_definition) + (link_callbacks_warning, link_callbacks_einfo): Remove trailing + newline at end of warning message. + +2014-12-13 Joel Brobecker + + * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for + new "EXTRA-ARGS" parameter. + * configure.ac: If large-file support is disabled in GDB, + pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib". + * configure: Regenerate. + +2014-12-13 Jan Kratochvil + + PR symtab/17642 + * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to + TYPE if not TYPE_CODE_TYPEDEF. + +2014-12-13 Joel Brobecker + + PR backtrace/16215: + * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction + the frame unwinder must either be the dwarf2_frame_unwind + or the dwarf2_tailcall_frame_unwind. Verify that this_frame's + stack_addr is valid before calling get_frame_base. Throw + an error if not valid. + +2014-12-12 Doug Evans + + * valops.c (value_maybe_namespace_elt): Remove unnecessary test of + result != NULL. + +2014-12-12 Doug Evans + + * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous. + All callers updated. Rename arg "namespace" to "symbol_name". + +2014-12-12 Doug Evans + + * psymtab.c (psym_map_symtabs_matching_filename): Renamed from + partial_map_symtabs_matching_filename. All uses updated. + (psym_find_pc_sect_compunit_symtab): Renamed from + find_pc_sect_compunit_symtab_from_partial. All uses updated. + Add function comment. + (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs. + All uses updated. Add function comment. + (psym_relocate): Renamed from relocate_psymtabs. All uses updated. + Add function comment. + (psym_find_last_source_symtab): Renamed from + find_last_source_symtab_from_partial. All uses updated. + Add function comment. + (psym_forget_cached_source_info): Renamed from + forget_cached_source_info_partial. All uses updated. + Add function comment. + (psym_print_stats): Renamed from print_psymtab_stats_for_objfile. + All uses updated. Add function comment. + (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses + updated. Add function comment. + (psym_expand_symtabs_for_function): Renamed from + read_symtabs_for_function. All uses updated. Update function comment. + (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables. + All uses updated. Add function comment. + (psym_expand_symtabs_with_fullname): Renamed from + read_psymtabs_with_fullname. All uses updated. Add function comment. + (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab. + All uses updated. Add function comment. + (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab. + All uses updated. + (psym_expand_symtabs_matching): Renamed from + expand_symtabs_matching_via_partial. All uses updated. + Add function comment. + (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated. + Add function comment. + +2014-12-12 Phil Muldoon + Jan Kratochvil + Tom Tromey + + * NEWS: Update. + * symtab.h (struct symbol_computed_ops) : New + field. + * p-lang.c (pascal_language_defn): Update. + * opencl-lang.c (opencl_language_defn): Update. + * objc-lang.c (objc_language_defn): Update. + * m2-lang.c (m2_language_defn): Update. + * language.h (struct language_defn) : New fields. + * language.c (unknown_language_defn, auto_language_defn) + (local_language_defn): Update. + * jv-lang.c (java_language_defn): Update. + * go-lang.c (go_language_defn): Update. + * f-lang.c (f_language_defn): Update. + * dwarf2loc.h (dwarf2_compile_property_to_c): Declare. + * dwarf2loc.c (dwarf2_compile_property_to_c) + (locexpr_generate_c_location, loclist_generate_c_location): New + functions. + (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update. + * defs.h (enum compile_i_scope_types): New. + (enum command_control_type) : New constant. + (struct command_line) : New field. + * d-lang.c (d_language_defn): Update. + * compile/compile.c: New file. + * compile/compile-c-support.c: New file. + * compile/compile-c-symbols.c: New file. + * compile/compile-c-types.c: New file. + * compile/compile.h: New file. + * compile/compile-internal.h: New file. + * compile/compile-loc2c.c: New file. + * compile/compile-object-load.c: New file. + * compile/compile-object-load.h: New file. + * compile/compile-object-run.c: New file. + * compile/compile-object-run.h: New file. + * cli/cli-script.c (multi_line_command_p, print_command_lines) + (execute_control_command, process_next_line) + (recurse_read_control_structure): Handle compile_control. + * c-lang.h (c_get_compile_context, c_compute_program): Declare. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Update. + * ada-lang.c (ada_language_defn): Update. + * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS): + New variables. + (SFILES): Add SUBDIR_GCC_COMPILE_SRCS. + (HFILES_NO_SRCDIR): Add compile.h. + (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS. + (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS. + (compile.o, compile-c-types.o, compile-c-symbols.o) + (compile-object-load.o, compile-object-run.o, compile-loc2c.o) + (compile-c-support.o): New targets. + +2014-12-12 Jan Kratochvil + + * s390-linux-tdep.c (s390_gcc_target_options): New function. + (s390_gdbarch_init): Add it to gdbarch. + +2014-12-12 Jan Kratochvil + + * linux-tdep.c: Include objfiles.h and infcall.h. + (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New + function. + (linux_init_abi): Add linux_infcall_mmap to gdbarch. + +2014-12-12 Jan Kratochvil + + * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare. + * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from + translate_register. Now public. + (dwarf2_compile_expr_to_ax): Update. + +2014-12-12 Tom Tromey + Jan Kratochvil + + * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration. + (dwarf_expr_frame_base): Update caller. + (dwarf_expr_frame_base_1): Rename to ... + (func_get_frame_base_dwarf_block): ... this and make it public. + (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update + callers. + * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration. + +2014-12-12 Tom Tromey + + * dwarf2loc.c (dwarf2_compile_expr_to_ax) : + Update. + * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on + dwarf2_compile_cfa_to_ax. + (dwarf2_compile_cfa_to_ax): Remove. + * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare. + (dwarf2_compile_cfa_to_ax): Remove. + +2014-12-12 Jan Kratochvil + + * infcall.h (call_function_by_hand_dummy): Declare. + * infcall.c (call_function_by_hand): Use + call_function_by_hand_dummy. + (call_function_by_hand_dummy): Rename from call_function_by_hand. + Add arguments. Register a destructor. + +2014-12-12 Tom Tromey + Jan Kratochvil + + * osabi.h (osabi_triplet_regexp): Declare. + * osabi.c (struct osabi_names): New. + (gdb_osabi_names): Change type to struct osabi_names. Update + values. + (gdbarch_osabi_name): Update. + (osabi_triplet_regexp): New function. + (osabi_from_tdesc_string, _initialize_gdb_osabi): Update. + * i386-tdep.c (i386_gnu_triplet_regexp): New method. + (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call + set_gdbarch_gnu_triplet_regexp. + * gdbarch.sh (gnu_triplet_regexp): New method. + * gdbarch.c, gdbarch.h: Rebuild. + * arch-utils.h (default_gnu_triplet_regexp): Declare. + * arch-utils.c (default_gnu_triplet_regexp): New function. + +2014-12-12 Jan Kratochvil + + * arch-utils.c (default_infcall_mmap) + (default_gcc_target_options): New functions. + * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE) + (GDB_MMAP_PROT_EXEC): Define. + (default_infcall_mmap, default_gcc_target_options): Declare. + * gdbarch.h: Rebuild. + * gdbarch.c: Rebuild. + * gdbarch.sh (infcall_mmap, gcc_target_options): New methods. + +2014-12-12 Jan Kratochvil + + * dummy-frame.c (struct dummy_frame) : New + fields. + (pop_dummy_frame): Call the destructor if it exists. + (register_dummy_frame_dtor, find_dummy_frame_dtor): New + functions. + * dummy-frame.h (dummy_frame_dtor_ftype): New typedef. + (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare. + +2014-12-12 Tom Tromey + + * gdbtypes.h (make_unqualified_type): Declare. + * gdbtypes.c (make_unqualified_type): New function. + +2014-12-12 Tom Tromey + + * ui-file.h (ui_file_write_for_put): Declare. + * ui-file.c (ui_file_write_for_put): New function. + * mi/mi-out.c (do_write): Remove. + (mi_out_put): Use ui_file_write_for_put. + +2014-12-12 Doug Evans + + * NEWS: Mention gdb.lookup_objfile. + * python/python.c (GdbMethods): Add lookup_objfile. + * python/python-internal.h (gdbpy_lookup_objfile): Declare. + * python/py-objfile.c: #include "symtab.h". + (objfpy_build_id_ok, objfpy_build_id_matches): New functions. + (objfpy_lookup_objfile_by_name): New function. + (objfpy_lookup_objfile_by_build_id): New function. + (gdbpy_lookup_objfile): New function. + 2014-12-12 Maciej W. Rozycki * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.