Remove more unnecessary casts of NULL
[binutils-gdb.git] / gdb / ChangeLog
index 8fe3f103030ce98b4f0206addf25a2164cdfc119..f16d84784184bfcd38a83e16e5e503ccb6881d68 100644 (file)
@@ -1,3 +1,274 @@
+2019-06-16  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.c (tui_clear_win_detail, init_win_info)
+       (tui_free_window, free_content, free_content_elements): Remove
+       unnecessary cast.
+       * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
+       cast.
+       * tui/tui-regs.c (tui_show_register_group)
+       (tui_display_registers_from, tui_display_reg_element_at_line):
+       Remove unnecessary cast.
+
+2019-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * linux-nat.c (normal_mask): Delete.
+       (_initialize_linux_nat): Don't initialise normal_mask.
+
+2019-06-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR gdb/24445
+       * dwarf-index-write.h (write_psymtabs_to_index): Add
+       dwz_basename parameter.
+       * dwarf-index-write.c (write_gdbindex): Move file writing to
+       write_gdbindex_1.  Change return type void.
+       (assert_file_size): Move up, remove filename parameter.
+       (write_gdbindex_1): New function.
+       (write_debug_names): Change return type to void, call
+       assert_file_size.
+       (struct index_wip_file): New struct.
+       (write_psymtabs_to_index): Add dwz_basename parameter.  Move
+       file logic to index_wip_file.  Write index for dwz file if
+       needed.
+       (save_gdb_index_command): Pass basename of dwz file, if present.
+       * dwarf-index-cache.c (index_cache::store): Obtain and pass
+       build-id of dwz file, if present.
+       * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
+       (dwarf2_get_dwz_file): Likewise.
+       * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
+       (dwarf2_get_dwz_file): Likewise.
+
+2019-06-16  Tom Tromey  <tom@tromey.com>
+
+       * coffread.c (process_coff_symbol): Use xstrdup.
+       * value.c (create_internalvar): Use xstrdup.
+
+2019-06-16  Tom Tromey  <tom@tromey.com>
+
+       * valops.c (value_cast, value_slice): Remove unnecessary cast.
+       * breakpoint.c (stopin_command, stopat_command)
+       (until_break_command, decode_location_default): Remove unnecessary
+       cast.
+       * utils.c (subset_compare): Remove unnecessary cast.
+       * ada-lang.c (ada_update_initial_language): Remove unnecessary
+       cast.
+       * linespec.c (decode_line_with_last_displayed): Remove unnecessary
+       cast.
+       * infcmd.c (path_command): Remove unnecessary cast.
+       * coffread.c (decode_type): Remove unnecessary cast.
+       * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
+       * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
+       * tui/tui-stack.c (tui_show_locator_content)
+       (tui_show_frame_info): Remove unnecessary cast.
+       * tui/tui-win.c (tui_scroll_forward_command)
+       (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
+       (parse_scrolling_args): Remove unnecessary cast.
+       * tui/tui-data.c (init_win_info, tui_del_window)
+       (tui_free_window, tui_del_data_windows, tui_free_data_content)
+       (free_content_elements): Remove unnecessary cast.
+       * tui/tui-windata.c (tui_first_data_item_displayed): Remove
+       unnecessary cast.
+       * tui/tui-source.c (tui_set_source_content)
+       (tui_vertical_source_scroll): Remove unnecessary cast.
+       * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
+       cast.
+       * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
+       * tui/tui-regs.c (tui_display_registers_from)
+       (tui_display_register): Remove unnecessary cast.
+       * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
+       (tui_unhighlight_win, tui_highlight_win, tui_make_window)
+       (make_visible): Remove unnecessary cast.
+       * tui/tui-winsource.c (tui_erase_source_content)
+       (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
+       unnecessary cast.
+       * ax-gdb.c (agent_command_1): Remove unnecessary cast.
+       * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
+       * stabsread.c (read_type, read_array_type, read_range_type):
+       Remove unnecessary cast.
+       * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
+       (parse_symbol, parse_type, upgrade_type, parse_external)
+       (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
+       unnecessary cast.
+       * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
+
+2019-06-16  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.c (tui_alloc_generic_win_info)
+       (tui_alloc_win_info, tui_add_content_elements): Remove NULL
+       checks.
+
+2019-06-16  Bernhard Heckel  <bernhard.heckel@intel.com>
+           Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * f-typeprint.c (f_print_type): Don't return early for not
+       associated or not allocated types.
+       (f_type_print_varspec_suffix): Add print_rank parameter and print
+       ranks of array types in case they dangling.
+       (f_type_print_base): Add print_rank parameter.
+
+2019-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * NEWS: Mention new MI commands.
+       * break-catch-throw.c (enum exception_event_kind): Move to
+       breakpoint.h.
+       (print_mention_exception_catchpoint): Output text as a single
+       message.
+       (catch_exception_command_1): Rename to...
+       (catch_exception_event): ...this, make non-static, update header
+       command, and change some parameter types.
+       (catch_catch_command): Update for changes to
+       catch_exception_command_1.
+       (catch_throw_command): Likewise.
+       (catch_rethrow_command): Likewise.
+       * breakpoint.c (enum exception_event_kind): Delete.
+       * breakpoint.h (enum exception_event_kind): Moved here from
+       break-catch-throw.c.
+       (catch_exception_event): Declare.
+       * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
+       (mi_cmd_catch_throw): New function.
+       (mi_cmd_catch_rethrow): New function.
+       (mi_cmd_catch_catch): New function.
+       * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
+       'catch-catch' entries.
+       * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
+       (mi_cmd_catch_rethrow): Declare.
+       (mi_cmd_catch_catch): Declare.
+
+2019-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * annotate.c (annotate_source_line): Change return type to void,
+       update implementation to match.
+       * annotate.h (annotate_source_line): Change return type to void,
+       update header comment.
+       * stack.c (print_frame_info): Don't change what frame information
+       is printed based on whether annotations are on or not.
+
+2019-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * annotate.c: Add 'source.h' and 'objfiles.h' includes.
+       (annotate_source): Make static.
+       (annotate_source_line): Moved from source.c and renamed from
+       identify_source_line.  Update the return type.
+       * annotate.h (annotate_source): Delete declaration.
+       (annotate_source_line): Declaration moved from source.h, and
+       renamed from identify_source_line.  Return type updated.
+       * source.c (identify_source_line): Moved to annotate.c and renamed
+       to annotate_source_line.
+       (info_line_command): Remove check of annotation_level.
+       * source.h (identify_source_line): Move declaration to annotate.h
+       and rename to annotate_source_line.
+       * stack.c: Add 'annotate.h' include.
+       (print_frame_info): Remove check of annotation_level before
+       calling annotate_source_line.
+
+2019-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * source-cache.c (source_cache::get_plain_source_lines): Use
+       open_source_file_with_line_charpos instead of just
+       open_source_file, remove call to find_source_lines.
+       (source_cache::get_source_lines): Likewise.
+       * source.c (find_source_lines): Make static.
+       (get_filename_and_charpos): Renamed into...
+       (open_source_file_with_line_charpos): ..this along with changes to
+       return a scoped_fd, and some other minor clean ups.
+       (identify_source_line): Use open_source_file_with_line_charpos.
+       (search_command_helper): Use open_source_file_with_line_charpos
+       instead of just open_source_file, remove call to
+       find_source_lines.
+       * source.h (open_source_file_with_line_charpos): Declare new
+       function.
+       (find_source_lines): Delete declaration.
+
+2019-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * source.c (get_filename_and_charpos): Remove fullname
+       parameter.
+       (identify_source_line): Update call to get_filename_and_charpos.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       PR gdb/24502:
+       * ui-style.h (skip_ansi_escape): Update comment.
+       * ui-file.h (class no_terminal_escape_file): New class.
+       * ui-file.c (no_terminal_escape_file::write)
+       (no_terminal_escape_file::puts): New methods.
+       * cli/cli-logging.c (handle_redirections): Use
+       no_terminal_escape_file.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       * NEWS: Move convenience variable news above Python news.
+
+2019-06-14  Tom Tromey  <tom@tromey.com>
+
+       * gnulib: Move directory to top-level.
+       * configure.ac: Don't configure gnulib.
+       * configure: Rebuild.
+       * common/common-defs.h: Use new path to gnulib.
+       * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
+       (GNULIB_H): Remove.
+       (INCGNU): Look in new gnulib location.
+       (HFILES_NO_SRCDIR): Remove gnulib files.
+       (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
+       (generated_files): Remove GNULIB_H.
+       ($(LIBGNU), all-lib): Remove targets.
+       (distclean): Don't mention GNULIB_BUILDDIR.
+       ($(GNULIB_BUILDDIR)/Makefile): Remove target.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       * symfile.c (add_symbol_file_command): Remove obsolete comment.
+       Warn if symbol file does not provide any symbols.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       * source.c (find_and_open_source): Respect basenames_may_differ.
+
+2019-06-14  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * annotate.c (annotate_breakpoints_invalid): Make use of
+       scoped_restore_terminal_state.
+       (annotate_frames_invalid): Likewise.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
+       allow assignment to an internalvar.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lex.l: Allow "_" in attribute names.
+
+2019-06-14  Tom Tromey  <tromey@adacore.com>
+
+       PR gdb/24653:
+       * regcache.c (registers_changed): Don't call alloca.
+       * top.c (execute_command): Don't call alloca.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
+       'expression'.  When parsing an expression, error out if there's
+       junk after "unlimited".
+       (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
+       (do_set_command): Adjust calls to is_unlimited_literal.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * compile/compile.c (make_compile_options_def_group): Add braces
+       around array_view initializer.
+       * thread.c (make_thread_apply_all_options_def_group)
+       (make_thread_apply_all_options_def_group): Likewise.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention "maint test-options
+       require-delimiter", "maint test-options unknown-is-error", "maint
+       test-options unknown-is-operand" and "maint show
+       test-options-completion-result".
+       (New command options, command completion): New section.
+       (Completion improvements): New section.
+       Mention that you can abbreviate "unlimited".
+
 2019-06-13  Pedro Alves  <palves@redhat.com>
 
        * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
 
 2019-05-17  Jan Vrany  <jan.vrany@fit.cvut.cz>
 
-       * MAINTAINERS (Write After Approval): Add myself.
+       * MAINTAINERS (Write After Approval): Add myself.
 
 2019-05-17  Tom de Vries  <tdevries@suse.de>
 
 
 2019-03-26  Alan Hayward  <alan.hayward@arm.com>
 
-        * ppc-linux-nat.c: Add include.
+       * ppc-linux-nat.c: Add include.
 
 2019-03-26  Alan Hayward  <alan.hayward@arm.com>
 
-        * NEWS: Mention AArch64 Pointer Authentication.
+       * NEWS: Mention AArch64 Pointer Authentication.
 
 2019-03-26  Alan Hayward  <alan.hayward@arm.com>
 
-        * arm-linux-nat.c: Add include.
+       * arm-linux-nat.c: Add include.
 
 2019-03-25  Simon Marchi  <simon.marchi@polymtl.ca>