gdb/
[binutils-gdb.git] / gdb / ChangeLog
index 2d2344c98735d2c03c1a2d2fbe36463a856a69d0..c10ed117f6408e63f16b0dd2d97ad740346174f3 100644 (file)
@@ -1,3 +1,501 @@
+2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix printing parameters of inlined functions.
+       * ada-lang.c (is_known_support_routine)
+       (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
+       for find_frame_funname.
+       * python/py-frame.c (frapy_name): Likewise.
+       * stack.c (find_frame_funname): New parameter funcp.  Update the
+       function comment.  Fill it in.
+       (print_frame): New variable func.  Initialize it by
+       find_frame_funname.  Print arguments only if FUNC is not NULL.  Use
+       FUNC as the parameter of print_args_stub.
+       * stack.h (find_frame_funname): New parameter funcp.  Remove the
+       function declaration comment.
+
+2010-09-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR corefiles/12071.
+       * inferior.c (have_live_inferiors): New variables old_chain, inf and
+       tp.  Iterate INFERIOR_LIST and call target_has_execution.
+
+2010-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix GDB crash on inferior calls with self-referencing classes.
+       * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
+       member fields.
+
+2010-09-29  Doug Evans  <dje@google.com>
+
+       Workaround for gcc/45682.
+       * dwarf2read.c (partial_die_info): New fields fixup_called,
+       linkage_name.
+       (guess_partial_die_structure_name): Renamed from guess_structure_name.
+       Move definition next to use.  Use linkage_name to determine if class
+       is in a namespace.  All callers updated.
+       (fixup_partial_die): Return early if already called.
+       Set fixup_called when done.
+       (guess_full_die_structure_name): New function.
+       (determine_prefix): Call it for class/struct/union dies if c++ and
+       .debug_types section is present and parent is DW_TAG_compile_unit.
+
+2010-09-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
+        (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
+
+2010-09-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Announce Ravenscar Profile support.
+
+2010-09-28  Joel Brobecker  <brobecker@adacore.com>
+           Jerome Guitton  <guitton@adacore.com>
+
+       * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
+       New files.
+       * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
+       ravenscar-sparc-thread.o to gdb_target_obs.
+
+2010-09-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (iterate_over_live_ada_tasks): New function.
+       * ada-lang.h (iterate_over_live_ada_tasks): Declare.
+
+2010-09-27  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
+       (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
+       skip_main_prologue method.
+
+2010-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_read_index): Only allow version 3.
+       (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
+       Only emit a given psymbol once.
+       (struct signatured_type_index_data) <psyms_seen>: New field.
+       (write_one_signatured_type): Update.
+       (cleanup_htab): New function.
+       (write_psymtabs_to_index): Update.  Create psyms_seen hash.  Bump
+       version to 3.
+       (save_gdb_index_command): Update index documentation.
+
+2010-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * bcache.c (expand_hash_table): Use hash_function, not hash.
+
+2010-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * gdb_wchar.h: Change minimum libiconv to 0x108.
+
+2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix lost siginfo_t for inferior calls.
+       * infrun.c
+       (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
+       (save_inferior_thread_state): New variables regcache, gdbarch and
+       siginfo_data.  Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
+       Move INF_STATE allocation later, pre-clear it.  Initialize REGISTERS
+       using REGCACHE.
+       (restore_inferior_thread_state): New variables regcache and gdbarch.
+       Restore SIGINFO_DATA for matching GDBARCH.  Restore REGISTERS using
+       REGCACHE.  Free also SIGINFO_DATA.
+
+2010-09-24  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
+       MAYBE_SWAPs.
+       (dw2_map_symbol_names): Likewise.
+
+2010-09-24  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * valops.c (find_oload_champ_namespace_loop): replace incorrect
+       discard_cleanups do_cleanups.
+
+2010-09-24  Pedro Alves  <pedro@codesourcery.com>
+
+       PR gdb/11842
+
+       * amd64-linux-nat.c (compat_siginfo_from_siginfo)
+       (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
+       si_code is < 0.  Check for si_code == SI_TIMER before checking for
+       si_code < 0.
+
+2010-09-24  Pedro Alves  <pedro@codesourcery.com>
+
+       * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
+
+2010-09-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (read_atcb): Do not compute the task ptid when
+       debugging a core file.
+
+2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
+       (free_objfile) <objfile->name != NULL>: Remove the conditional around
+       xfree.
+       * objfiles.h (struct objfile) <name>: New comment it is never NULL.
+       * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
+       Remove.
+       * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
+       Remove the conditional.
+       * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
+
+2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * main.c: Include objfiles.h.
+       (captured_main): New variable objfile.  Call
+       load_auto_scripts_for_objfile for ALL_OBJFILES.
+
+2010-09-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
+       DW_TAG_constant.
+
+2010-09-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (scan_partial_symbols): Add handling of
+       DW_TAG_constant DIEs.
+       (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
+
+2010-09-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac: Add support for --enable-gdbserver.
+       * configure: Regenerate.
+
+2010-09-22  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       PR C++/12028
+       * valops.c (find_oload_champ_namespace_loop): removed incorrect
+       'old_cleanups' reassignment.
+
+2010-09-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
+       characters.
+
+2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR mi/11407
+       * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
+       read_var_value and common_val_print and print a warning.
+
+2010-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
+       keep the list in alphabetical order.  Use longer e-mail address.
+
+2010-09-15  Tom Tromey  <tromey@redhat.com>
+
+       * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
+
+2010-09-15  Tom Tromey  <tromey@redhat.com>
+
+       * charset.c (iconv_open): New define.
+       (iconv): Likewise.
+       (iconv_close): Likewise.
+       (phony_iconv_open): Add "phony_" prefix.
+       (phony_iconv_close): Likewise.
+       (phony_iconv): Likewise.
+       * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
+       Change how INTERMEDIATE_ENCODING is defined.
+
+2010-09-15  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (struct die_info): Fix comment.
+
+2010-09-15  Alan Modra  <amodra@gmail.com>
+
+       PR 4606
+       * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
+       than setting SEC_NEVER_LOAD on sections that need not be copied.
+
+2010-09-14  Tom Tromey  <tromey@redhat.com>
+
+       * psympriv.h (add_psymbol_to_list, init_psymbol_list)
+       (start_psymtab_common, allocate_psymtab, discard_psymtab):
+       Declare.
+       * symfile.h (extend_psymbol_list): Remove.
+       (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
+       (allocate_psymtab, discard_psymtab): Move to psympriv.h.
+       * psymtab.c (extend_psymbol_list): Move earlier.  Now static.
+
+2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
+       Update the comment.
+
+2010-09-14  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/8399:
+       * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
+       for unrecognized frame base expression.
+
+2010-09-14  Tom Tromey  <tromey@redhat.com>
+
+       PR exp/11803:
+       * value.c (value_static_field): Use value_of_variable.
+
+2010-09-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * m32r-rom.c: Replace winsock.h with winsock2.h header.
+       * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
+
+2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       PR symtab/11992:
+       * c-exp.y (classify_name): Check is_a_member_of_this before returning
+       UNKNOWN_CPP_NAME.
+
+2010-09-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add x86-lynxos to the list of platforms supported by
+       gdbserver.
+
+2010-09-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
+
+2010-09-13  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
+
+2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-tdep.c (i386_ymm_type): Set type name to
+       builtin_type_vec256i.
+
+2010-09-12  Michael Snyder  <msnyder@vmware.com>
+
+       * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
+
+2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
+
+2010-09-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * amd64-tdep.c (amd64_register_name): Removed.
+       (amd64_init_abi): Don't call set_gdbarch_register_name.
+
+       * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
+
+       * i386-tdep.h (i386_ymmh_regnum_p): Removed.
+
+2010-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Paul Bolle  <pebolle@tiscali.nl>
+
+       Redirect also uiout and stdtarg{,err} in execute_command_to_string.
+       * cli-logging.c (struct saved_output_files) <targerr>: New.
+       (set_logging_redirect, pop_output_files, handle_redirections):
+       Redirect also gdb_stdtargerr.
+       * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
+       declarations.
+       * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
+       also gdb_stdtargerr.
+       * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
+       to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
+       Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
+       * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
+       * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
+       New functions.
+
+2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * hppa-tdep.c (unwind_command): Use host_address_to_string function
+       to display a host address.
+       * monitor.c (monitor_read_memory): Likewise.
+       * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
+
+2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * coffread.c (struct coff_symbol): Change c_value type from `long' to
+       `CORE_ADDRESS' as it might contain target addresses.
+
+2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
+       before cast to pointer to avoid warning.
+
+2010-09-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
+       type to be signed.
+
+2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * dwarf2read.c (fixup_partial_die): Do not set dummy name for
+       anonymous class partial DIEs.
+
+2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (dwarf2_compute_name): Check that the first
+       argument is a pointer.
+
+2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (read_func_scope, read_structure_type)
+       (read_common_block): Check for a NULL return from new_symbol.
+
+2010-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
+
+2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (read_structure_type): Move processing of
+       fields and member functions from here...
+       (process_structure_scope): ... to here.
+
+2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
+       the domain type.
+       (gnuv3_make_method_ptr): Likewise.
+
+2010-09-08  Tom Tromey  <tromey@redhat.com>
+
+       * breakpoint.c (create_breakpoint): Add missing _().
+
+2010-09-08  Doug Evans  <dje@google.com>
+
+       * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
+
+2010-09-08  Tom Tromey  <tromey@redhat.com>
+
+       Revert:
+       2010-09-01  Tom Tromey  <tromey@redhat.com>
+       * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
+       symtab.h: Revert earlier change.
+
+2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * psymtab.c (add_psymbol_to_bcache): Initialize
+       obj_section.
+       memset psymbol.ginfo.value to 0.
+
+2010-09-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (resume): Extend comment on ignoring single-step
+       requests on vfork parents waiting for a vfork-done.
+
+2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
+       is NULL.
+       * fork-child.c (startup_inferior) <resume_signal>: Use enum
+       target_signal type.
+       * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
+       calling strsignal.  Use enum target_signal type for saved_signo.
+       (linux_handle_extended_wait) <signo>: Use enum target_signal type.
+       (linux_nat_wait_1): Use enum target_signal type for signo.  Use
+       target_signal_to_host before calling strsignal.
+       * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
+       TARGET_SIGNAL_0.
+
+2010-09-06  Pedro Alves  <pedro@codesourcery.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * common/signals.c (ANY): Remove.
+       (SET): No longer use ANY.
+
+2010-09-06  Yao Qi  <yao@codesourcery.com>
+
+       * infrunc(resume): When inferior is waiting_for_vfork_done,
+       clear step and don't use displaced stepping.
+
+2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * breakpoint.c (can_use_hardware_watchpoint): Handle the first
+       value specially.
+
+2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup - split print_stop_reason.
+       * infrun.c (enum inferior_stop_reason): Remove.
+       (print_stop_reason): Remove by splitting into ...
+       (print_exited_reason, print_signal_exited_reason)
+       (print_no_history_reason, print_signal_received_reason)
+       (print_end_stepping_range_reason): ... these new functions.  Update
+       the preceding comment.
+       (handle_inferior_event): Change the calls to print_exited_reason,
+       print_signal_exited_reason, print_no_history_reason,
+       print_signal_received_reason, print_end_stepping_range_reason.
+       (handle_step_into_function, handle_step_into_function_backward):
+       Change the calls to print_end_stepping_range_reason.
+
+2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
+       * cli-out.c: Include vec.h.
+       (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
+       variable stream, initialize it, use it.
+       (cli_redirect): New function comment.  Replace the stream and
+       original_stream fields by the new streams field.  Remove the
+       original_stream != NULL conditional, assert error on NULL instead.
+       (out_field_fmt, field_separator): New variable stream, initialize it, use it.
+       (cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
+       original_stream fields by the new streams field.
+       (cli_out_set_stream): Replace the stream field by the new streams
+       field.
+       * cli-out.h: Include vec.h.
+       (ui_filep): New typedef, call DEF_VEC_P for it.
+       (struct cli_ui_out_data): Replace the stream and original_stream
+       fields by the new streams field.
+       * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
+       NULL first.  Extend the comment.
+       (handle_redirections): Call ui_out_redirect with output.
+       * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
+       calls outside of the TRY_CATCH block.
+
+2010-09-03  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.2 released.
+
+2010-09-02  Joel Brobecker  <brobecker@adacore.com>
+
+       Back out the following change:
+       | 2010-06-29  Hui Zhu  <teawater@gmail.com>
+       | * record.c (set_record_pic_cmdlist,
+       | show_record_pic_cmdlist): New variables.
+       | (set_record_pic_command,
+       | show_record_pic_command): New functions.
+       | (record_pic_function, record_pic_line, record_pic_enum,
+       | set_record_pic_type, record_pic_hide_nofunction,
+       | record_pic_hide_nosource, record_pic_hide_same): New variables.
+       | (record_pic_fputs): New function.
+       | (function_list, node_list, edge_list): New struct.
+       | (function_list, node_list, edge_list): New variables.
+       | (record_pic_cleanups, record_pic_node,
+       | record_pic_edge, cmd_record_pic): New functions.
+       | (_initialize_record): Add new commands for record pic.
+
+2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * config.in, configure: Regenerated.
+       * configure.ac: Check for waitpid.
+       * ser-pipe.c (pipe_close): Wait for the program to exit.
+
+2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cli/cli-logging.c: Include gdb_assert.h.
+       (set_logging_overwrite): New function.
+       (logging_redirect): New comment.
+       (logging_no_redirect_file, set_logging_redirect)
+       (pop_output_files) <logging_no_redirect_file>: New.
+       (handle_redirections) <!logging_redirect>: New variable
+       no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
+       discard cleanup for the close of former OUTPUT.  Set
+       LOGGING_NO_REDIRECT_FILE.
+       (handle_redirections) <logging_redirect>: gdb_assert
+       LOGGING_NO_REDIRECT_FILE.
+       (show_logging_command) <logging_redirect handling>: Adjust messages
+       for SAVED_FILENAME not NULL.
+       (_initialize_cli_logging): Install set_logging_overwrite and
+       set_logging_redirect.
+
 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
 
 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
-       * cli-logging.c (logging_overwrite, logging_redirect): Make them
+       * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
        static.
 
 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>