X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=6cb27eed81c020792848d0310e2d3764e54c28d9;hb=0b2381f5e125bdeb7e7aec65ac6b9647cf04771e;hp=158d5fc86e4a68fbacb590f07b98ca1c155f809f;hpb=53624a9319e4e154f39609188f1d8c26771bd75e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 158d5fc86e..6cb27eed81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,271 @@ +2011-03-06 Michael Snyder + + * ser-unix.c (hardwire_get_tty_state): Stop memory leak. + + * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. + + * elfread.c (elf_symtab_read): Stop memory leak. + + * main.c (captured_main): Fix memory leak. + +2011-03-07 Andreas Schwab + + * ada-lang.c (compare_names): Call is_name_suffix with string1 + instead of string2. + +2011-03-07 Tom Tromey + + * xcoffread.c (xcoff_sym_fns): Update. + * symfile.h (struct sym_fns) : New field. + (enum symfile_add_flags) : New constant. + * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. + (symbol_file_add_with_addrs_or_offsets): Likewise. + (reread_symbols): Handle OBJF_PSYMTABS_READ. + * somread.c (som_sym_fns): Update. + * psymtab.h (require_partial_symbols): Declare. + * psymtab.c (require_partial_symbols): New function. + (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. + (ALL_OBJFILE_PSYMTABS): Undef. + (ALL_PSYMTABS): Move from psympriv.h. + (lookup_partial_symtab, find_pc_sect_psymtab) + (lookup_symbol_aux_psymtabs, relocate_psymtabs) + (find_last_source_symtab_from_partial) + (forget_cached_source_info_partial) + (print_psymtab_stats_for_objfile, read_symtabs_for_function) + (expand_partial_symbol_tables, read_psymtabs_with_filename) + (map_symbol_names_psymtab, map_symbol_filenames_psymtab) + (find_symbol_file_from_partial, map_matching_symbols_psymtab) + (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): + Use ALL_OBJFILE_PSYMTABS_REQUIRED. + * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. + * objfiles.h (OBJF_PSYMTABS_READ): New macro. + * objfiles.c (objfile_has_partial_symbols): Handle lazily-read + psymtabs. + * mipsread.c (ecoff_sym_fns): Update. + * machoread.c (macho_sym_fns): Update. + * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. + (read_psyms): New function. + (elf_sym_fns, elf_sym_fns_gdb_index): Update. + (elf_sym_fns_lazy_psyms): New global. + * dwarf2read.c (dwarf2_initialize_objfile): Don't call + dwarf2_build_psymtabs. + * dbxread.c (aout_sym_fns): Update. + * coffread.c (coff_sym_fns): Update. + +2011-03-07 Tom Tromey + + * infrun.c (print_exited_reason): Include inferior id and pid in + message. + +2011-03-07 Tom Tromey + + * target.h (struct target_ops) : Add ptid_t + parameter. + (target_has_execution_1): Update. + (target_has_execution_current): Declare. + (target_has_execution): Call target_has_execution_current. + (default_child_has_execution): Update. + * target.c (default_child_has_execution): Add 'the_ptid' + parameter. + (target_has_execution_1): Likewise. + (target_has_execution_current): New function. + (add_target): Update. + (init_dummy_target): Update. + * remote-m32r-sdi.c (m32r_has_execution): New function. + (init_m32r_ops): Use it. + * record.c (record_core_has_execution): Now static. Add + 'the_ptid' parameter. + * inferior.c (have_live_inferiors): Don't save current thread. + Use target_has_execution_1. + +2011-03-07 Yao Qi + + * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. + +2011-03-07 Joel Brobecker + + * elfread.c (elf_symtab_read): Minor reformatting. + +2011-03-07 Joel Brobecker + + * objc-lang.c (selectors_info): Minor reformatting. + +2011-03-07 Joel Brobecker + + * ada-lang.c (compare_names): Add FALLTHROUGH comment. + +2011-03-07 Joel Brobecker + Michael Snyder + + * ada-valprint.c (ada_val_print_array): Move the declaration of + "byte_order" and "elttype" inside the block where these variables + are actually used. Remove some special handling for the case + where "elttype" and "eltlen" are null. Replace by a comment + and a couple of assertion checks. + +2011-03-05 Michael Snyder + + * source.c (add_path): Replace semicolon at end of block. + * dwarf2expr.c (execute_stack_op): Ditto. + +2011-03-05 Mike Frysinger + + * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. + * configure.tgt (bfin-*-*linux*): Define gdb_sim. + (bfin-*-*): Likewise. + +2011-03-05 Michael Snyder + + * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. + * mdebugread.c (parse_symbol): Ditto. + * parse.c (parse_exp_in_context): Ditto. + * source.c (add_path): Ditto. + * utils.c (gnu_debuglink_crc32): Ditto. + * varobj.c (variable_language): Ditto. + + * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. + +2011-03-04 Michael Snyder + + * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. + + * symfile.c (simple_overlay_update): Check for null return value + from lookup_minimal_symbol. + + * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc. + + * xml-syscall.c (syscall_start_syscall): Assert name is non null. + +2011-03-04 Thiago Jung Bauermann + + * eval.c (parse_and_eval_address_1): Remove function. + * linespec.c (decode_indirect): Call parse_to_comma_and_eval + instead of parse_and_eval_address_1. + * value.h (parse_and_eval_address_1): Remove prototype. + +2011-03-04 Michael Snyder + + * remote.c (putpkt_binary): Document that case stmt falls through. + +2011-03-04 Thiago Jung Bauermann + + * breakpointc (print_it_typical): Move NULL check from here... + (print_bp_stop_message): ... to here. + +2011-03-04 Michael Snyder + + * breakpoint.c (enable_command): Use break instead of continue, + and fill in a missing break. + (disable_command): Ditto. + +2011-03-04 Ulrich Weigand + + * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. + (terminal_save_ours): Remove misleading comment. + (inflow_inferior_data_cleanup): Free ttystate. + (inflow_inferior_exit): Likewise. + (copy_terminal_info): Copy ttystate. + + * serial.c (serial_copy_tty_state): New function. + * serial.h (serial_copy_tty_state): Add prototype. + (struct serial_ops): Add copy_tty_state callback. + * ser-base.c (ser_base_copy_tty_state): New function. + * ser-base.h (ser_base_copy_tty_state): Add prototype. + * ser-go32.c (dos_copy_tty_state): New function. + (dos_ops): Install copy_tty_state callback. + * ser-mingw.c (_initialize_ser_windows): Likewise. + * ser-pipe.c (_initialize_ser_pipe): Likewise. + * ser-unix.c (hardwire_copy_tty_state): New function. + (_initialize_ser_hardwire): Install it. + +2011-03-04 Michael Snyder + + * breakpoint.c (create_breakpoint): Add missing break statement. + + Reverting this patch: + * infcall.c (call_function_by_hand): Add break statements for lint. + + Reverting this patch: + * cli/cli-script.c (script_from_file): Add break for lint. + +2011-03-04 Michael Snyder + + * solib.c (reload_shared_libraries_1): Close memory leak. + +2011-03-03 Tom Tromey + + PR gdb/12538: + * dwarf2read.c (process_psymtab_comp_unit): Handle case where + DW_STRING is NULL. + +2011-03-03 Michael Snyder + + * remote-fileio.c (remote_fileio_func_fstat): Initialize all + fields of struct 'st' to zero. + + * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize + sal.pspace before calling set_current_source_symtab_and_line. + +2011-03-03 Yao Qi + + * Makefile.in (configure-common): Remove. Let Makefile + in dir common to rebuild itself. + (common/Makefile): Likewise. + +2011-03-03 Joel Brobecker + + * utils.c (parse_escape): Add i18n markup in error message. + +2011-03-03 Yao Qi + + * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with + ARM_PC_REGNUM. + (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. + (displaced_write_reg, displaced_read_reg): Likewise. + (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. + (cleanup_block_load_pc, copy_block_xfer): Likewise. + (cleanup_branch): Replace magic number 14 and 15 with + ARM_LR_REGNUM and ARM_PC_REGNUM respectively. + +2011-03-02 Michael Snyder + + * maint.c (maintenance_do_deprecate): No need to check for NULL. + + * cli/cli-script.c (script_from_file): Add break for lint. + + * mdebugread.c (parse_partial_symbols): Fix indent. + + * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc + with xmalloc. + + * target-descriptions.c (tdesc_gdb_type): No need to call + xstrdup, callee saves a copy. + + * printcmd.c (print_scalar_formatted): Use strncpy for safety. + + * infcall.c (call_function_by_hand): Add break statements for lint. + + * utils.c (parse_escape): Escape the escape char. + + * python/py-inferior.c (build_inferior_list): Error out if + PyList_Append fails. + (gdbpy_inferiors): Error out if build_inferior_list fails. + + * linux-nat.c (linux_nat_xfer_partial): Preserve errno around + a function call. + + * record.c (record_restore): Move printf to before error return. + +2011-03-02 Yao Qi + + * arm-tdep.h (struct displaced_step_closure): Add two new fields + is_thumb and insn_size. + * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset + on both ARM and Thumb mode. + (arm_process_displaced_insn): Set is_thumb and insn_size. + (arm_displaced_init_closure): Handle both 16-bit and 32-bit. + (arm_displaced_step_fixup): Likewise. + 2011-03-01 Michael Snyder * cli/cli-dump.c (dump_bfd_file): Check error return and warn.