OSDN Git Service

2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
[pf3gnuchains/sourceware.git] / gdb / ChangeLog
index 285c01b..cf8cc69 100644 (file)
@@ -1,5 +1,390 @@
+2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-param.c (add_setshow_generic): Add set/show callback
+       parameters.  Register Python object context.
+       (get_show_value): New function.
+       (get_set_value): New function.
+       (call_doc_function): New function.
+       (get_doc_string): Move behind get_show_value/get_set_value.
+
+2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
+
+       * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
+
+2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (xtensa_read_register: Add comment.
+       (xtensa_write_register): Likewise.
+       (xtensa_hextochar): Add comment and update to match coding conventions.
+       (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
+       (execute_l32e, execute_s32e, execute_code): Update comments.
+       (xtensa_exception_handler_t): Update to match coding conventions.
+       (xtensa_insn_kind): Likewise.
+
+2011-03-09  Michael Snyder  <msnyder@vmware.com>
+
+       * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
+
+2011-03-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
+
+2011-03-09  Tom Tromey  <tromey@redhat.com>
+
+       * thread.c (restore_selected_frame): Handle frame_level == -1.
+       (make_cleanup_restore_current_thread): Use
+       get_selected_frame_if_set.
+       * frame.h (get_selected_frame_if_set): Declare.
+       * frame.c (get_selected_frame_if_set): New function.
+
+2011-03-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * cli/cli-cmds.c (shell_escape): Use lbasename.
+       * coffread.c (coff_start_symtab): Constify parameter.
+       (complete_symtab): Constify `name' parameter.
+       (coff_symtab_read): Constify `filestring' local.
+       (coff_getfilename): Constify return and `result' local.
+       Use lbasename.
+       * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
+       * linux-fork.c (info_checkpoints_command): Use lbasename.
+       * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
+       * minsyms.c (lookup_minimal_symbol): Use lbasename.
+       * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
+       * procfs.c (procfs_make_note_section): Use lbasename.
+       * tui/tui-io.c (printable_part): Constity return and parameter.
+       Use lbasename.
+       (print_filename): Constify parameters, and local `s'.
+       (tui_rl_display_match_list): Constify local `temp'.
+
+2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Revert:
+       2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+       Fix DWARF-3+ DW_AT_accessibility default assumption.
+       * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+       cu->header.version >= 3.
+
+2011-03-09  Yao Qi  <yao@codesourcery.com>
+
+       * common/Makefile.in: Remove.
+       * common/configure: Remove.
+       * common/configure.ac: Remove.
+
+2011-03-09  Yao Qi  <yao@codesourcery.com>
+
+       Revert:
+       2011-02-11  Yao Qi  <yao@codesourcery.com>
+
+       * common/Makefile.in: Add copyright header.
+
+       2011-02-11  Yao Qi  <yao@codesourcery.com>
+
+       * Makefile.in: Remove signals.o from COMMON_OBS.  Link
+       libcommon.a.
+       * configure.ac: Add common to sub dir.
+       * configure: Regenerate.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (call0_ret): New function.
+       (xtensa_skip_prologue): Speed up analysis.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
+       while executing MI command -data-list-changed-registers.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (xtensa_read_register): New function.
+       (xtensa_write_register): New function.
+       (xtensa_find_register_by_name): New function.
+       (xtensa_windowed_frame_cache): Update comments in type description.
+       (xtensa_frame_cache): Likewise.
+       (xtensa_window_interrupt_insn): New function.
+       (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
+       (xtensa_insn_kind): Add new instructions.
+       (rwx_special_register): New function.
+       (call0_classify_opcode): Add new instructions to the analysis.
+       (a0_saved, a7_saved, a11_saved): New variables.
+       (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
+       (execute_l32e): New function.
+       (execute_s32e): New function.
+       (xtensa_exception_handler_t): New type.
+       (execute_code): New function.
+       (xtensa_window_interrupt_frame_cache): New function to conduct frame
+       analysis for Xtensa Window Exception handlers.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (TX_PS): New.
+       (windowing_enabled): Update to count for Call0 ABI.
+       (xtensa_hextochar): New.
+       (xtensa_init_reggroups): Make algorithm generic.
+       (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
+
+2011-03-08  Michael Snyder  <msnyder@vmware.com>
+
+       * i386-tdep.c (i386_follow_jump): Check return value of
+       target_read_memory.
+       (i386_analyze_struct_return): Ditto.
+       (i386_skip_probe): Ditto.
+       (i386_match_insn): Ditto.
+       (i386_skip_noop): Ditto.
+       (i386_analyze_frame_setup): Ditto.
+       (i386_analyze_register_saves): Ditto.
+       (i386_skip_prologue): Ditto.
+       (i386_skip_main_prologue): Ditto.
+
+       * target.c (read_whatever_is_readable): Fix memory leak.
+
+       * i386-tdep.c (i386_process_record): Document fall through.
+
+2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix DWARF-3+ DW_AT_accessibility default assumption.
+       * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+       cu->header.version >= 3.
+
+2011-03-08  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_check_symbols): Skip if the target has no
+       execution.
+
+2011-03-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * target.c (read_whatever_is_readable): Reformat comment,
+       with a minor typo fix. Minor reformatting of the code.
+
+2011-03-08  Yao Qi  <yao@codesourcery.com>
+
+       * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
+       (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
+       Use cached result instead of calling displaced_in_arm_mode again.
+       (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
+       (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
+       (cleanup_copro_load_store, copy_copro_load_store): Likewise.
+       (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
+       (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
+       (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
+       (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
+       (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
+       (cleanup_block_load_pc, copy_block_xfer): Likewise.
+       * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
+       (arm_catch_kernel_helper_return): Likewise.
+       * gdb/arm-tdep.h : Update function declarations.
+
+2011-03-07  Michael Snyder  <msnyder@vmware.com>
+
+       * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
+
+       * 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  <schwab@linux-m68k.org>
+
+       * ada-lang.c (compare_names): Call is_name_suffix with string1
+       instead of string2.
+
+2011-03-07  Tom Tromey  <tromey@redhat.com>
+
+       * xcoffread.c (xcoff_sym_fns): Update.
+       * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
+       (enum symfile_add_flags) <SYMFILE_NO_READ>: 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  <tromey@redhat.com>
+
+       * infrun.c (print_exited_reason): Include inferior id and pid in
+       message.
+
+2011-03-07  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_has_execution>: 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  <yao@codesourcery.com>
+
+       * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
+
+2011-03-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * elfread.c (elf_symtab_read): Minor reformatting.
+
+2011-03-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * objc-lang.c (selectors_info): Minor reformatting.
+
+2011-03-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (compare_names): Add FALLTHROUGH comment.
+
+2011-03-07  Joel Brobecker  <brobecker@adacore.com>
+           Michael Snyder  <msnyder@vmware.com>
+
+       * 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  <msnyder@vmware.com>
+
+       * source.c (add_path): Replace semicolon at end of block.
+       * dwarf2expr.c (execute_stack_op): Ditto.
+
+2011-03-05  Mike Frysinger  <vapier@gentoo.org>
+
+       * 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  <msnyder@vmware.com>
+
+       * 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  <msnyder@vmware.com>
+
+       * 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  <bauerman@br.ibm.com>
+
+       * 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  <msnyder@vmware.com>
+
+       * remote.c (putpkt_binary): Document that case stmt falls through.
+
+2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpointc (print_it_typical): Move NULL check from here...
+       (print_bp_stop_message): ... to here.
+
+2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
+
+       * breakpoint.c (enable_command): Use break instead of continue,
+       and fill in a missing break.
+       (disable_command): Ditto.
+
+2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * 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  <msnyder@vmware.com>
+
+       * 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  <msnyder@vmware.com>
+
+       * solib.c (reload_shared_libraries_1): Close memory leak.
+
+2011-03-03  Tom Tromey  <tromey@redhat.com>
+
+       PR gdb/12538:
+       * dwarf2read.c (process_psymtab_comp_unit): Handle case where
+       DW_STRING is NULL.
+
 2011-03-03  Michael Snyder  <msnyder@vmware.com>
 
+       * 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.