* cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
[binutils-gdb.git] / gdb / ChangeLog
index 8ba8772c244998a9063f99380bcb1bc0b543328e..a96fc8fc63c92e3b5e4b2dfad5a1f7374fc5b990 100644 (file)
@@ -1,3 +1,130 @@
+2013-01-14  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
+       set command.
+       * command.h (add_setshow_string_noescape_cmd): Update.
+       * corefile.c (set_gnutarget_command): Remove trailing whitespace.
+       (complete_set_gnutarget): New function.
+       (_initialize_core): Set the "set gnutarget" completer.
+
+2013-01-14  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/14442:
+       * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
+       (c_type_print_modifier): Likewise.
+       * dwarf2read.c (read_tag_restrict_type): New function.
+       (read_type_die_1): Handle DW_TAG_restrict_type.
+       * gdbtypes.c (make_restrict_type): New function.
+       (recursive_dump_type): Handle TYPE_RESTRICT.
+       * gdbtypes.h (enum type_flag_values): Renumber.
+       (enum type_instance_flag_value): Add
+       TYPE_INSTANCE_FLAG_RESTRICT.
+       (TYPE_RESTRICT): New macro.
+       (make_restrict_type): Declare.
+
+2013-01-14  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/14931:
+       * psymtab.c (struct psymtab_state): New.
+       (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
+       functions.
+       * psympriv.h (make_cleanup_discard_psymtabs): Declare.
+       * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
+
+2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
+           Pedro Alves  <palves@redhat.com>
+
+       PR remote/14786
+
+       * remote.c (remote_threads_info): Make a copy of the reply from
+       qfThreadInfo and use that instead of rs->buf.
+
+2013-01-14  Yao Qi  <yao@codesourcery.com>
+
+       * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
+       (dbx_psymtab_to_symtab): Likewise.
+       * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
+       * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
+       * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
+
+2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * parse.c (parse_exp_in_context): New variable inner_chain.  Call
+       make_cleanup_restore_current_language.  Call set_language.  Move
+       OLD_CHAIN and INNER_CHAIN cleanups.
+       * utils.c (do_restore_current_language)
+       (make_cleanup_restore_current_language): New functions.
+       * utils.h (make_cleanup_restore_current_language): New declaration.
+
+2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * source.c (symtab_to_fullname): Apply rewrite_source_path also for
+       non-existing files.
+
+       * source.c (symtab_to_fullname): Do not prepend DIRNAME for
+       non-existing files if FILENAME is already absolute.
+
+2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
+       fputs_filtered.  Append trailing newline.
+
+2013-01-11  Yao Qi  <yao@codesourcery.com>
+           Stan Shebs  <stan@codesourcery.com>
+
+       * psymtab.c (init_psymbol_list): Clarify the comment.
+
+2013-01-11  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Remove dead code.
+       (update_dprintf_command_list): Assert that 'printf_line' is
+       non-null.  Remove condition check.
+
+2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
+       type const char *.
+       * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
+       const char *.
+       * tui/tui-source.h (tui_source_is_displayed): Likewise.
+
+2013-01-09  Anthony Green  <green@moxielogic.com>
+
+       * cp-abi.c (cplus_print_vtable): Don't return value from void
+       function.
+       * ada-lang.c (re_set_catch_assert): Ditto.
+
+2013-01-09  Doug Evans  <dje@google.com>
+
+       * symfile.h (quick_symbol_functions): Delete member
+       pre_expand_symtabs_matching.  All uses removed.
+       * dwarf2read.c (dw2_lookup_symbol): Implement.
+       (dw2_do_expand_symtabs_matching): Delete.
+       (dw2_pre_expand_symtabs_matching): Delete.
+       (struct dw2_symtab_iterator): New type.
+       (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
+       (dw2_expand_symtabs_for_function): Rewrite.
+       (dwarf2_gdb_index_functions): Update.
+       * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
+       (psym_functions): Update.
+
+2013-01-09  Tom Tromey  <tromey@redhat.com>
+
+       * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
+       * configure: Rebuild.
+       * configure.ac: Add somread.o to the build if BFD has SOM
+       support.
+       * somread.c: Include som/aout.h, not syms.h.
+       (som_symtab_read): Use som_external_symbol_dictionary_record.
+       Unpack records manually.
+       (_initialize_somread): Declare.
+
+2012-01-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
+       Cast return_address to 64bits.
+
 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
 
        * printcmd.c: Remove define of function output_command.