X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=b5e75e08e35d125cb23f6e72f52d28d241c5ca11;hb=83b10087f47feb355bbdc02f8fcd336c0bf000aa;hp=3787a30f86effcc08fb19e07d831616c43ac18e1;hpb=e6d088ec316f9980416fd7bd541229c4321a17f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3787a30f86..b5e75e08e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,462 @@ +Mon Feb 8 13:17:10 2010 Chris Moller + + PR gdb/10728 + * valarith.c (value_ptrdiff): Added a test for a zero type length, + warn if found, and assume length = 1. + +2010-02-08 Chris Moller + + PR gdb/9067 + * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. + cp_print_static_field) Fix use of obstacks. + +2010-02-08 Pedro Alves + + * linux-nat.c (linux_nat_resume): In non-stop, also only tag + resumed LWPs as resumed. + (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs + we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead + of throwing an internal error. If an LWP of a process we're not + waiting for reports a signal, don't force collecting a SIGSTOP, + and if it was breakpoint hit in non-stop mode, cancel it. Don't + go through all LWPs cancelling breakpoints in non-stop mode. + (resume_stopped_resumed_lwps): New. + (linux_nat_wait): Use it. + +2010-02-07 H.J. Lu + + * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, + i386/amd64 and i386/amd64-linux. + (i386/i386-expedite): New. + (i386/i386-linux-expedite): Likewise. + (i386/amd64-expedite):Likewise. + (i386/amd64-linux-expedite): Likewise. + ($(outdir)/i386/i386-linux.dat): Likewise. + ($(outdir)/i386/amd64.dat): Likewise. + ($(outdir)/i386/amd64-linux.dat): Likewise. + + * features/i386/32bit-core.xml: New. + * features/i386/32bit-linux.xml: Likewise. + * features/i386/32bit-sse.xml: Likewise. + * features/i386/64bit-core.xml: Likewise. + * features/i386/64bit-linux.xml: Likewise. + * features/i386/64bit-sse.xml: Likewise. + * features/i386/i386-linux.xml: Likewise. + * features/i386/i386.xml: Likewise. + * features/i386/amd64-linux.xml: Likewise. + * features/i386/amd64.xml: Likewise. + * features/i386/i386-linux.c: Likewise. + * features/i386/i386.c: Likewise. + * features/i386/amd64-linux.c: Likewise. + * features/i386/amd64.c: Likewise. + +2010-02-05 Sami Wagiaalla + + PR c++/7935: + * cp-support.h: Added char* alias element to using_direct data + struct. + (cp_add_using): Added char* alias argument. + (cp_add_using_directive): Ditto. + * cp-namespace.c: Updated with the above changes. + (cp_lookup_symbol_imports): Check for aliases. + * dwarf2read.c (read_import_statement): Figure out local alias + for the import and pass it on to cp_add_using. + (read_namespace): Pass alias argument to cp_add_using. + +2010-02-05 Hui Zhu + + * defs.h (gdb_bfd_errmsg): New extern. + * exec.c (exec_file_attach): Change bfd_errmsg to + gdb_bfd_errmsg. + * utils.c (AMBIGUOUS_MESS1): New macro. + (AMBIGUOUS_MESS2): New macro. + (gdb_bfd_errmsg): New function. + +2010-02-04 Doug Evans + + * solib-svr4.c (enable_break): Add comment. + +2010-02-04 Anthony Green + + * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis + gracefully. + +2010-02-04 Tom Tromey + + * valops.c (search_struct_field): Account for + value_embedded_offset. Fix check for virtual base past the end of + the object. Use value_copy when making a slice of the value. + +2010-02-04 H.J. Lu + + PR tui/9622 + * tui/tui-interp.c (tui_init): Call tui_initialize_readline + only if gdb_stdout is a tty. + +2010-02-04 H.J. Lu + + * target-descriptions.c: Include "osabi.h". + (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid + OSABI. + +2010-02-04 Tristan Gingold + + * machoread.c (macho_add_oso): Renamed to macho_register_oso. + (macho_symtab_read): Adjust calls to macho_add_oso. + (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. + (macho_symfile_read): Adjust call to macho_oso_symfile. + (macho_new_init): Move this function after declarations. + (macho_symfile_init): Ditto. + * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. + * darwin-nat.c (darwin_lookup_task): Remove unused prototype. + +2010-02-04 Vladimir Prus + + Include MI command in remotelog. + + * mi/mi-main.c (mi_execute_command): Call target_log_command. + +2010-02-03 H.J. Lu + + * remote.c (remote_state): Remove gdbarch. + (init_remote_state): Don't set gdbarch. + (remote_query_supported): Pass target_gdbarch instead of + rs->gdbarch to gdbarch_qsupported. + +2010-02-03 H.J. Lu + + * gdbarch.sh: Add qsupported. + + * gdbarch.c: Regenerated. + * gdbarch.h: Likewise. + + * remote.c (remote_state): Add gdbarch. + (init_remote_state): Set gdbarch. + (remote_query_supported): Support gdbarch_qsupported. + +2010-02-03 Daniel Jacobowitz + + * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for + __FreeBSD_kernel_version. + +2010-02-03 Tristan Gingold + + * symfile.h (struct sym_fns): Add sym_relocate field. + (default_symfile_relocate): New prototype. + (symfile_relocate_debug_section): First argument is now an objfile. + * symfile.c (default_symfile_relocate): Rename from + symfile_relocate_debug_section, first argument is now an objfile. + (symfile_relocate_debug_section): New function. + * coffread.c (coff_sym_fns): Set sym_relocate field. + * somread.c (som_sym_fns): Ditto. + * mipsread.c (ecoff_sym_fns): Ditto. + * machoread.c (macho_sym_fns): Ditto. + * elfread.c (elf_sym_fns): Ditto. + * dwarf2read.c (dwarf2_read_section): Ditto. + * xcoffread.c (xcoff_sym_fns): Ditto. + * dbxread.c (aout_sym_fns): Ditto. + (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. + (elfstab_build_psymtabs): Ditto. + +2010-02-03 H.J. Lu + + * defs.h (MAX_REGISTER_SIZE): Increase to 32. + +2010-02-02 Tom Tromey + + * valops.c (value_cast_structs): Try downcasting using the RTTI + type. + +2010-02-02 Tom Tromey + + * gnu-v2-abi.c: Don't include gnu-v2-abi.h. + (gnuv2_baseclass_offset): Now static. + * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. + * gnu-v2-abi.h: Remove. + +2010-02-02 Tom Tromey + + * m2-typeprint.c (m2_record_fields): Don't use + TYPE_DECLARED_TYPE. + * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. + (struct main_type) : New field. + (struct cplus_struct_type) : Remove. + : Move earlier. + (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) + (DECLARED_TYPE_TEMPLATE): Remove. + (TYPE_DECLARED_TYPE): Remove. + * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. + * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. + * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not + TYPE_DECLARED_TYPE. + +2010-02-02 Tom Tromey + + PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: + * valops.c (search_struct_field): Compute nbases after calling + CHECK_TYPEDEF. + (check_field): Call CHECK_TYPEDEF. + * cp-valprint.c (cp_print_value): Pass correct address to + baseclass_offset. Fix check for virtual base past the end of the + object. Don't offset address passed to cp_print_value_fields or + apply_val_pretty_printer. + (cp_print_value_fields): Fix call to val_print. + (cp_print_value_fields_rtti): New function. + * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. + * p-valprint.c (pascal_object_print_value_fields): Fix call to + val_print. + * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded + offset to address. + * language.h (struct language_defn) : Document. + * c-lang.h (cp_print_value_fields_rtti): Declare. + +2010-02-01 Jan Kratochvil + + PR libc/11214: + * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. + (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. + (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. + +2010-02-01 Michael Matz + Daniel Jacobowitz + + * i386-tdep.c (i386_frame_cache): Assume valid anonymous + functions use a frame pointer. + +2010-02-01 Jan Kratochvil + + * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert + by a conditional setting DYN_ADDR. Use DYN_ADDR. + * config/djgpp/fnchange.lst: Add translations for + symbol-without-target_section.exp and symbol-without-target_section.c. + +2010-02-01 Daniel Jacobowitz + + * gdbarch.sh: Set LANG and LC_ALL to C, not c. + (remote_breakpoint_for_pc): Correct invalid_p check. + * gdbarch.c: Regenerated. + +2010-02-01 Daniel Jacobowitz + + * arm-tdep.c (arm_find_mapping_symbol): New function, from + arm_pc_is_thumb. + (arm_pc_is_thumb): Use arm_find_mapping_symbol. + (extend_buffer_earlier): New function. + (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. + (arm_adjust_breakpoint_address): New function. + (arm_gdbarch_init): Register arm_adjust_breakpoint_address. + +2010-02-01 Daniel Jacobowitz + + * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) + (arm_linux_thumb2_le_breakpoint): New constants. + (arm_linux_init_abi): Set thumb2_breakpoint and + thumb2_breakpoint_size. + * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. + (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. + Implement support for single stepping through IT blocks if + a 32-bit Thumb breakpoint instruction is available. + (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction + is available, use it when needed. + (arm_remote_breakpoint_from_pc): New function. + (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. + * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint + comment. Add thumb2_breakpoint and thumb2_breakpoint_size. + +2010-02-01 Daniel Jacobowitz + + * arch-utils.c (default_remote_breakpoint_from_pc): New function. + * arch-utils.h (default_remote_breakpoint_from_pc): Declare. + * gdbarch.c, gdbarch.h: Regenerated. + * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. + * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use + gdbarch_remote_breakpoint_from_pc. + +2010-01-29 Daniel Jacobowitz + + * infrun.c (prepare_to_proceed): Handle other signals which might + match a breakpoint. + (handle_inferior_event): Move the check for unusual breakpoint + signals earlier. + +2010-01-29 Paul Hilfinger + + amd64 - function returning record with field straddling 2 registers. + * amd64-tdep.c (amd_classify_aggregate): Handle the case of + a record of length <= 16 in which a field straddles the two + eightbytes. + +2010-01-29 Joel Brobecker + + Implement return values on amd64-windows. + * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. + (amd64_windows_return_value): New function. + (amd64_windows_init_abi): Call set_gdbarch_return_value with + amd64_windows_return_value. + +2010-01-29 Joel Brobecker + + amd64-windows: 32 bytes allocated on stack by caller for integer + parameter registers. + * i386-tdep.h (struct gdbarch_tdep): Add new field + integer_param_regs_saved_in_caller_frame. + * amd64-windows-tdep.c (amd64_windows_init_abi): Set + tdep->integer_param_regs_saved_in_caller_frame to 1. + * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on + stack if tdep->integer_param_regs_saved_in_caller_frame is set. + +2010-01-29 Joel Brobecker + + amd64-windows: memory args passed by pointer during function calls. + * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. + * amd64-tdep.c (amd64_push_arguments): Add handling of architectures + where tdep->memory_args_by_pointer is non-zero. + * amd64-windows-tdep.c (amd64_windows_init_abi): Set + tdep->memory_args_by_pointer to 1. + +2010-01-29 Joel Brobecker + + amd64-windows: Integer parameters in function calls. + * i386-tdep.h (enum amd64_reg_class): New, moved here from + amd64-tdep.c. + (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, + call_dummy_integer_regs, and classify. + * amd64-tdep.h (amd64_classify): Add declaration. + * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. + (amd64_reg_class): Delete, moved to i386-tdep.h. + (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. + Replace call to amd64_classify by call to tdep->classify. + (amd64_push_arguments): Get the list of registers to use for + passing integer parameters from the gdbarch tdep structure, + rather than using a hardcoded one. Replace calls to amd64_classify + by calls to tdep->classify. + (amd64_push_dummy_call): Get the register number used for + the "hidden" argument from tdep->call_dummy_integer_regs. + (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs + and tdep->call_dummy_integer_regs. Set tdep->classify. + * amd64-windows-tdep.c: Add include of gdbtypes.h. + (amd64_windows_dummy_call_integer_regs): New static global. + (amd64_windows_classify): New function. + (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs + tdep->call_dummy_integer_regs and tdep->classify. + +2010-01-28 Daniel Jacobowitz + + * regcache.c (regcache_xmalloc): Add aspace argument. Use it + for the new regcache. All callers updated. + (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. + (get_thread_arch_regcache): Do not set aspace here. + * regcache.h (regcache_xmalloc): Update declaration. + + * frame.c, infcall.c, ppc-linux-tdep.c: Calls to + regcache_xmalloc updated. + +2010-01-28 Joel Brobecker + + Another -Wunused-function error in procfs.c (sparc-solaris) + * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. + Only define if SYS_syssgi is defined. + (remove_dbx_link_breakpoint): Delete declaration. Move up. + (dbx_link_addr, insert_dbx_link_bpt_in_file) + (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi + is itself defined. + +2010-01-27 Christopher Faylor + + * windows-nat.c (windows_initialization_done): New variable. + (get_windows_debug_event): Issue error when process dies before + completely initializing. + (do_initial_windows_stuff): Set flag to indicate when we are done with + the initial steps of attaching to the child. + +2010-01-27 Jan Kratochvil + + * symtab.h (struct symbol ): New comment on NULL values. + +2010-01-27 Doug Evans + + * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. + + * breakpoint.c (bpstat_stop_status): Delete useless code. + +2010-01-27 Jan Kratochvil + + * printcmd.c (display_uses_solib_p): Remove variable section. Access + objfile via SYMBOL_SYMTAB. + +2010-01-26 Tom Tromey + + PR exp/7643: + * eval.c (evaluate_subexp_for_address) : Call + coerce_array on result. + +2010-01-26 Sami Wagiaalla + + * cp-namespace.c (cp_lookup_symbol_namespace): Added + search_parent argument. + (cp_add_using): Initialize 'searched' field. + (reset_directive_searched): New function. + * cp-support.h: Add 'searched' field to using_direct struct. + (cp_lookup_symbol_imports): Ditto. + * cp-namespace.c (cp_lookup_symbol_imports): Ditto. + Perform recursive search. + Implement non parent search. + * valops.c (value_maybe_namespace_elt): Updated. + +2010-01-26 Sami Wagiaalla + + PR gdb/10929: + * dwarf2read.c (read_lexical_block_scope): Create blocks for + scopes which contain using directives even if they contain no + declarations. + * symtab.c (lookup_symbol_aux): Pass lowest level block to + la_lookup_symbol_nonlocal. + * cp-namespace.c (cp_lookup_symbol_nonlocal): call + cp_lookup_symbol_namespace. + (cp_lookup_symbol_namespace): Perform an import lookup at every + block level. + (cp_lookup_symbol_imports): New function. + (cp_lookup_symbol_in_namespace): New function. + +2010-01-25 Tom Tromey + + PR gdb/11049: + * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer + result. + +2010-01-25 Rainer Orth + + * configure.ac: Only use host_os part when disabling TUI on osf. + Use test to check variables, prefix strings with x. + * configure: Regenerate. + + * solib-osf.c (osf_current_sos): Initialize tail. + +2010-01-25 gingold + + * windows-nat.c (windows_continue): Use %x to print thread id. + (get_windows_debug_event): Ditto. + +2010-01-22 Tom Tromey + + PR symtab/11199: + * dwarf2read.c (quirk_gcc_member_function_pointer): Change return + type and arguments. Use smash_to_methodptr_type. + (read_structure_type): Call quirk_gcc_member_function_pointer + later. + * gdbtypes.h (smash_to_methodptr_type): Declare. + * gdbtypes.c (smash_to_methodptr_type): New function. + (lookup_methodptr_type): Use it. + +2010-01-21 Tom Tromey + + PR symtab/11198: + * symtab.h (lookup_minimal_symbol_and_objfile): Declare. + * minsyms.c (lookup_minimal_symbol_and_objfile): New function. + * glibc-tdep.c (find_minsym_and_objfile): Remove. + (glibc_skip_solib_resolver): Use + lookup_minimal_symbol_and_objfile. + 2010-01-21 Kai Tietz * inflow.c (check_syscall): Guard by #if clause for GO32 and