X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=7f4b45724db3bd005d0079f9842f2671348ff8ed;hb=835205d078aa3b78180da1512f8019ab064032e7;hp=efee4167ad93e2d0ad1ecefc8a2c833897f4cadb;hpb=30b3dd9d4701834573e6a6c071941c25d825cab8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index efee4167ad..7f4b45724d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,632 @@ +2015-05-12 Gary Benson + + * remote.c (remote_add_inferior): Call exec_file_locate_attach + for fake PIDs as well as real ones. + (remote_pid_to_exec_file): Send empty annex if PID is fake. + +2015-05-09 Siva Chandra Reddy + + * NEWS (Python Scripting): Mention the new gdb.Value methods. + * python/py-value.c (valpy_reference_value): New function. + (valpy_const_value): Likewise. + (value_object_methods): Add new methods. + * value.c (make_cv_value): New function. + * value.h (make_cv_value): Declare. + +2015-05-08 Yao Qi + Sandra Loosemore + + * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check + to 'lh->include_dirs' before accessing to it. + (psymtab_include_file_name): Likewise. + (dwarf_decode_lines_1): Likewise. + (dwarf_decode_lines): Likewise. + (file_file_name): Likewise. + +2015-05-08 Sandra Loosemore + + * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define. + (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define. + (nios2_linux_rt_sigreturn_init): Adjust base address of + register save area. + +2015-05-08 Sandra Loosemore + + * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using + "trap 31" as the breakpoint instruction on all targets. + +2015-05-08 Jan Kratochvil + + * infcmd.c (print_return_value): Remove unused declaration. + +2015-05-08 Joel Brobecker + + * dwarf2read.c (attr_to_dynamic_prop) + : Use read_type_die isntead of + get_die_type. + +2015-05-08 Joel Brobecker + + * ada-lang.c (ada_convert_actual): Add handling of formals + passed inside an aligner type. + +2015-05-08 Joel Brobecker + + * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries. + +2015-05-08 Siva Chandra Reddy + + PR python/18291 + * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo. + Print xmethod matcher status. + +2015-05-08 Andreas Arnez + + * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA + register in the regcache when treating the PSWM register, and vice + versa. + +2015-05-07 Gary Benson + + * linux-thread-db.c (struct thread_db_info) + : Remove field. + (try_thread_db_load_1): Remove initialization for the above. + +2015-05-07 Gary Benson + + * linux-thread-db.c (struct thread_db_info) + : Remove field. + (try_thread_db_load_1): Remove initialization for the above. + +2015-05-06 Jan Kratochvil + + * compile/compile-object-load.c (compile_object_load): Support + mst_text_gnu_ifunc. + +2015-05-06 Jan Kratochvil + + * compile/compile.c (compile_to_object): Make the cmd_string parameter + const. Use new variables for the const compatibility. + (eval_compile_command): Make the cmd_string parameter const. + * compile/compile.h (eval_compile_command): Make the cmd_string + parameter const. + +2015-05-06 Joel Brobecker + + * defs.h (deprecated_init_ui_hook): Delete. Remove associated + comment. + * top.c (deprecated_init_ui_hook): Delete. + (gdb_init): Remove handling of deprecated_init_ui_hook. + * interps.c (clear_interpreter_hooks): Remove handling of + deprecated_init_ui_hook. + * main.c (captured_main): Update comment. + +2015-05-06 Joel Brobecker + + * solib.c (_initialize_solib): Add "info dll" alias creation. + * windows-nat.c (set_windows_aliases): Delete. + (_initialize_windows_nat): Remove deprecated_init_ui_hook + assignment. + * NEWS: Add news entry about "info dll" now being available + on all platforms. + +2015-05-05 Joel Brobecker + + * ada-lang.c (value_assign_to_component): Reformat and improve + documentation. Remove all trailing spaces. + +2015-05-05 Joel Brobecker + + * inline-frame.c (inline_frame_sniffer, skip_inline_frames): + Stop counting inlined frames as soon as an out-of-line function + is found. + +2014-05-05 Pierre-Marie de Rodat + + * dwarf2read.c (inherit_abstract_dies): Skip + DW_TAG_GNU_call_site dies while inheriting children of an + abstract DIE into a scope. + (read_lexical_block_scope): Inherit abstract DIE's for + lexical scopes. + +2015-05-05 Joel Brobecker + + * ada-valprint.c (val_print_packed_array_elements): Delete + variable "len". Add a type-length check when comparing two + consecutive elements of the array. Use the element's actual + length in call to value_contents_eq. + * ada-lang.c (ada_value_primitive_packed_val): Always return + a value whose type has been resolved. + +2015-05-05 Joel Brobecker + + * ada-lang.c (ada_value_primitive_packed_val): Recompute + BIT_SIZE and LEN if the size of the resolved type is smaller + than BIT_SIZE * HOST_CHAR_BIT. + +2015-05-05 Joel Brobecker + + * ada-lang.c (ada_value_primitive_packed_val): Use a more + correct address in call to value_at. Adjust call to + value_address accordingly. + +2015-05-05 Joel Brobecker + + * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying + to print it. + +2015-05-05 Joel Brobecker + + * dwarf2loc.h (struct property_addr_info): Add "valaddr" field. + * dwarf2loc.c (dwarf2_evaluate_property): Add handling of + pinfo->valaddr. + * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter. + * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr. + (resolve_dynamic_type_internal): Set pinfo.valaddr. + Add handling of addr_stack->valaddr. + (resolve_dynamic_type): Add "valaddr" parameter. + Set pinfo.valaddr field. + * ada-lang.c (ada_discrete_type_high_bound): Update call to + resolve_dynamic_type. + (ada_discrete_type_low_bound): Likewise. + * findvar.c (default_read_var_value): Likewise. + * value.c (value_from_contents_and_address): Likewise. + +2015-05-05 Joel Brobecker + + * gdbtypes.c (resolve_dynamic_array): Use + create_array_type_with_stride instead of create_array_type. + +2015-04-30 DJ Delorie + + * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to + rl78_decode_opcode + +2015-04-29 Doug Evans + + PR python/18285 + * NEWS: Document new gdb.XMethodWorker.get_result_type method. + * eval.c (evaluate_subexp_standard) : Handle + EVAL_AVOID_SIDE_EFFECTS for xmethods. + * extension-priv.h (struct extension_language_ops) + : New member. + * extension.c (get_xmethod_result_type): New function. + * extension.h (get_xmethod_result_type): Declare. + * python/py-xmethods.c (get_result_type_method_name): New static + global. + (py_get_result_type_method_name): Ditto. + (gdbpy_get_xmethod_result_type): New function. + (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name. + * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare. + * python/python.c (python_extension_ops): Add + gdbpy_get_xmethod_result_type. + * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type. + * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for + xmethods. + (value_x_unop): Ditto. + * value.c (result_type_of_xmethod): New function. + * value.h (result_type_of_xmethod): Declare. + +2015-04-29 Gary Benson + + * solib.c (solib_find_1): Allow fd argument to be NULL. + (exec_file_find): Update comment. + (solib_find): Likewise. + * exec.c (exec_file_locate_attach): Use NULL as fd + argument to exec_file_find to avoid having to close + the opened file. + * infrun.c (follow_exec): Likewise. + +2015-04-28 Doug Evans + + PR python/18299 + * python/lib/gdb/printing.py (register_pretty_printer): Handle + name or __name__ attributes. Handle gdb module as first argument. + +2015-04-28 Doug Evans + + PR python/18089 + * python/py-prettyprint.c (print_children): Verify result of children + iterator. Provide better error message. + * python/python-internal..h (gdbpy_print_python_errors_p): Declare. + * python/python.c (gdbpy_print_python_errors_p): New function. + +2015-04-28 Doug Evans + + * gdbtypes.h (struct cplus_struct_type) : Fix comment. + +2015-04-28 Sasha Smundak + + * NEWS: Mention gdb.Type.optimized_out method. + * python/py-type.c (typy_optimized_out): New function. + +2015-04-28 John Baldwin + + * fbsd-nat.c: Include "gdb_wait.h" instead of . + +2015-04-28 Patrick Palka + + * utils.c (init_page_info): Set rl_catch_sigwinch to zero. + (initialize_utils): Move call of init_page_info() to ... + * top.c (gdb_init): ... here. + +2015-04-28 Patrick Palka + + * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment. + (tui_sigwinch_handler): Still update our idea of + the terminal's width and height even when TUI is not active. + +2015-04-28 Patrick Palka + + * utils.h (set_screen_width_and_height): Declare. + * utils.c (set_screen_width_and_height): Define. + * tui/tui-win.c (tui_update_gdb_sizes): Use it. + +2015-04-28 Gary Benson + + * infrun.c (solist.h): New include. + (follow_exec): Use exec_file_find to prefix execd_pathname + with gdb_sysroot. + +2015-04-28 Patrick Palka + + * tui/tui-source.c (tui_set_source_content): Avoid calling + strcpy() when offset is 0. + +2015-04-28 Patrick Palka + + PR gdb/18155 + * tui/tui-data.c (tui_free_window): Don't free the locator + window when passed an SRC_WIN or a DISASSEM_WIN. + +2015-04-28 Patrick Palka + + * tui/tui-data.h (struct tui_win_element): Forward-declare. + (tui_win_content): Move declaration. + (struct tui_gen_win_info): Give 'content' field the + type tui_win_content. + * tui/tui-data.c (init_content_element): Remove redundant and + erroneous casts. + (tui_add_content_elements): Remove erroneous cast. + * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant + casts. + (tui_get_begin_asm_address): Likewise. + * tui/tui-regs.c (tui_show_registers): Likewise. + (tui_show_register_group): Likewise. + (tui_display_registers_from): Likewise. + (tui_check_register_values): Likewise. + * tui/tui-source.c (tui_set_source_content): Likewise. + (tui_set_source_content_nil): Likewise. + (tui_source_is_displayed): Likewise. + * tui/tui-stack.c (tui_show_locator_content): Likewise. + (tui_set_locator_fullname): Likewise. + (tui_set_locator_info): Likewise. + (tui_show_frame_info): Likewise. + * tui/tui-winsource.c (tui_clear_source_content): Likewise. + (tui_show_source_line): Likewise. + (tui_horizontal_source_scroll): Likewise. + (tui_update_breakpoint_info): Likewise. + (tui_set_exec_info_content): Likewise. + (tui_show_exec_info_content): Likewise. + (tui_alloc_source_buffer): Likewise. + (tui_line_is_displayed): Likewise. + (tui_addr_is_displayed): Likewise. + +2015-04-27 John Baldwin + + * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD + event if PL_FLAG_EXEC is set. + [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function. + [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function. + (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set + "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint". + Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint". + +2015-04-27 John Baldwin + + * fbsd-nat.c: [PT_LWPINFO] New variable super_wait. + [TDP_RFPPWAIT] New variable fbsd_pending_children. + [TDP_RFPPWAIT] (fbsd_remember_child): New function. + [TDP_RFPPWAIT] (fbsd_is_child_pending): New function. + [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function. + [PT_LWPINFO] (fbsd_wait): New function. + [TDP_RFPPWAIT] (fbsd_follow_fork): New function. + [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function. + [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function. + [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function. + [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function. + [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function. + [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function. + [TDP_RFPPWAIT] (fbsd_post_attach): New function. + (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to + "fbsd_wait". + [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork". + Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint". + Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint". + Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint". + Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint". + Set "to_post_startup_inferior" to "fbsd_post_startup_inferior". + Set "to_post_attach" to "fbsd_post_attach". + +2015-04-27 John Baldwin + + * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static. + (fbsd_find_memory_regions): Mark static. + (fbsd_nat_add_target): New function. + * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for + fbsd_pid_to_exec_file and fbsd_find_memory_regions. + * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target. + * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise. + * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise. + * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise. + +2015-04-27 Gary Benson + + * objfiles.c (allocate_objfile): Do not attempt to expand name + if name is a "target:" filename. + * auto-load.c (load_auto_scripts_for_objfile): Do not attempt + to load auto-load scripts for objfiles with "target:" filenames. + +2015-04-27 Andreas Arnez + + * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h". + (enum s390_vector_abi_kind): New enum. + (struct gdbarch_tdep): New field. + (s390_effective_inner_type): Add parameter min_size. Stop + unwrapping if the inner type is smaller than min_size. + (s390_function_arg_float): Adjust call to + s390_effective_inner_type. + (s390_function_arg_vector): New function. + (s390_function_arg_integer): Adjust comment. + (struct s390_arg_state): New field. + (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector + arguments according to vector ABI when appropriate. + (s390_push_dummy_call): Initialize the argument state's field + 'vr'. Adjust calls to s390_handle_arg. + (s390_register_return_value): Handle vector return values. + (s390_return_value): Apply the "register" return value convention + to a vector when appropriate. + (s390_gdbarch_init): Initialize tdep->vector_abi. + * NEWS: Announce S390 vector ABI support. + +2015-04-27 Andreas Arnez + + * s390-linux-tdep.c (s390_return_value_convention): Remove + function. Inline its logic... + (s390_return_value): ...here. Instead, move the handling of the + "register" return value convention... + (s390_register_return_value): ...here. New function. + +2015-04-27 Andreas Arnez + + * s390-linux-tdep.c + (is_float_singleton): Remove function. Move the "singleton" part + of the logic... + (s390_effective_inner_type): ...here. New function. + (is_float_like): Remove function. Inline its logic... + (s390_function_arg_float): ...here. + (is_pointer_like, is_integer_like, is_struct_like): Remove + functions. Inline their logic... + (s390_function_arg_integer): ...here. + (s390_function_arg_pass_by_reference): Remove function. + (extend_simple_arg): Remove function. + (alignment_of): Remove function. + (struct s390_arg_state): New structure. + (s390_handle_arg): New function. + (s390_push_dummy_call): Move parameter placement logic to the new + function s390_handle_arg. Call it for calculating the stack area + sizes first, and again for actually writing the parameters. + +2015-04-27 Andreas Arnez + + * s390-linux-tdep.c (is_power_of_two): Add comment. Return + false if the argument is zero. + +2015-04-27 Pierre-Marie de Rodat + + * ada-lang.c (template_to_static_fixed_type): Return input type + when it is already fixed. Cache the input type itself when not + creating a static fixed copy. Make it explicit that we never + molestate the input type. + * gdbtypes.c (resolve_dynamic_struct): Reset the + TYPE_TARGET_TYPE field for resolved copies. + +2015-04-27 Joel Brobecker + + * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef. + (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef. + (template_to_static_fixed_type): Call ada_check_typedef only + when necessary. + +2015-04-24 Andrew Burgess + + * cli/cli-dump.c (srec_dump_command): Add internationalization + mark ups. + (ihex_dump_command): Likewise. + (tekhex_dump_command): Likewise. + (binary_dump_command): Likewise. + (binary_append_command): Likewise. + +2015-04-24 Andrew Burgess + + * cli/cli-dump.c (verilog_cmdlist): New variable. + (dump_verilog_memory): New function. + (dump_verilog_value): New function. + (verilog_dump_command): New function. + (_initialize_cli_dump): Add new commands to support verilog dump + format. + * NEWS: Add entry for "dump verilog". + +2015-04-24 Pierre-Marie de Rodat + + * gdbtypes.c (print_gnat_stuff): Do not recurse on the + descriptive type when there is none. + +2015-04-23 Patrick Palka + + * tui/tui-win.c (tui_async_resize_screen): Call + rl_resize_terminal(). + +2015-04-22 Jon Turney + + * windows-nat.c (handle_output_debug_string): Don't change + current_event.dwThreadId. + (get_windows_debug_event): Use thread_id, rather than relying on + current_event.dwThreadId being changed. + +2015-04-22 Jon Turney + + * windows-nat.c (windows_continue): Report an error if + ContinueDebugEvent() fails. + +2015-04-16 Jon Turney + + * windows-nat.c (windows_resume): Fix misspelling in debug output. + +2015-04-16 Jon Turney + + * windows-nat.c (get_windows_debug_event): Replace retval with + thread_id throughout. Update stale comment. + +2015-04-16 Jon Turney + + * windows-nat.c (get_windows_debug_event): Don't use ternary + conditional operator. + +2015-04-21 Pierre Muller + + PR pascal/17815 + p-exp.y (yylex): Reorganize code to return the matched pattern + for a field of this. + +2015-04-21 Gary Benson + + * common/fileio.h (fileio_to_host_openflags): New declaration. + * common/fileio.c (fcntl.h): New include. + (fileio_to_host_openflags): New function, factored out from... + * inf-child.c (inf_child_fileio_open_flags_to_host): ...here. + Single use updated. + +2015-04-21 Kevin Buettner + + * rl78-tdep.c (RL78_SP_ADDR): Define. + (opc_reg_to_gdb_regnum): New static function. + (rl78_analyze_prologue): Recognize instructions forming slightly + more interesting prologues. + +2015-04-20 Pierre-Marie de Rodat + + Revert: + 2015-04-03 Pierre-Marie de Rodat + * gdbtypes.c (is_dynamic_type_internal): Remove special handling of + TYPE_CODE_REF types so that they are not considered as dynamic + depending on the referenced type. + (resolve_dynamic_type_internal): Likewise. + +2015-04-20 Pierre-Marie de Rodat + + Revert: + 2015-04-03 Pierre-Marie de Rodat + * gdbtypes.c (is_dynamic_type_internal): Remove the unused + "top_level" parameter. + (resolve_dynamic_type_internal): Remove the unused "top_level" + parameter. Update call to is_dynamic_type_internal. + (is_dynamic_type): Update call to is_dynamic_type_internal. + (resolve_dynamic_range): Update call to + resolve_dynamic_type_internal. + (resolve_dynamic_union): Likewise. + (resolve_dynamic_struct): Likewise. + (resolve_dynamic_type): Likewise. + +2015-04-19 Gabriel Krisman Bertazi + + * breakpoint.c (update_dprintf_command_list): Remove duplicated + xmalloc. + +2015-04-20 Thomas Schwinge + + * reply_mig_hack.awk: Robustify parsing. + + * reply_mig_hack.awk: Don't bother to declare an intermediate + function pointer variable. + +2015-04-17 Doug Evans + + * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement" + to "exec_displacement" to avoid confusion with inner use of the name. + +2015-04-17 Pedro Alves + + * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero + if HW point of TYPE isn't supported. + +2015-04-17 Yao Qi + Pedro Alves + + * target.h (target_can_use_hardware_watchpoint): Update comments. + Remove trailing ";". + +2015-04-17 Gary Benson + + * remote.c (remote_add_inferior): New argument try_open_exec. + If nonzero, attempt to open the inferior's executable file as + the main executable if no main executable is open already. + All callers updated. + * NEWS: Mention that GDB now supports automatic location and + retrieval of executable + files from remote targets. + +2015-04-17 Gary Benson + + * target.h (TARGET_OBJECT_EXEC_FILE): New enum value. + * remote.c (PACKET_qXfer_exec_file): Likewise. + (remote_protocol_features): Register the + "qXfer:exec-file:read" feature. + (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE. + (remote_pid_to_exec_file): New function. + (init_remote_ops): Initialize to_pid_to_exec_file. + (_initialize_remote): Register new "set/show remote + pid-to-exec-file-packet" command. + * NEWS: Announce new qXfer:exec-file:read packet. + +2015-04-17 Gary Benson + + * nat/linux-procfs.h (linux_proc_pid_to_exec_file): + New declaration. + * nat/linux-procfs.c (linux_proc_pid_to_exec_file): + New function, factored out from... + * linux-nat.c (linux_child_pid_to_exec_file): ...here. + +2015-04-17 Gary Benson + + * exec.c (solist.h): New include. + (exec_file_locate_attach): Prefix absolute executable + paths with gdb_sysroot if set. + * NEWS: Mention that executable paths may be prepended + with sysroot. + +2015-04-17 Gary Benson + + * solist.h (exec_file_find): New declaration. + * solib.c (solib_find_1): New function, factored out from... + (solib_find): ...here. + (exec_file_find): New function. + +2015-04-17 Gary Benson + + * gdbcore.h (exec_file_locate_attach): New declaration. + * exec.c (exec_file_locate_attach): New function, factored + out from... + * infcmd.c (attach_command_post_wait): ...here. + +2015-04-17 Mike Frysinger + + * MAINTAINERS: Add myself for Blackfin/write-after-approval. + +2015-04-16 Yao Qi + + * infrun.c (maybe_software_singlestep): Declare. + (displaced_step_fixup): Call maybe_software_singlestep. + 2015-04-15 Doug Evans * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.