X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=5eb5eeaa9ad9799b834f466c4f0d15fffbb6493f;hb=e39db4db7c553ae1c4aaf158cd0ebf3cf6d478fb;hp=57edb23340957a5e71487f593c97f57e327c3774;hpb=1d143c36eedc0f0b124e6aa6fb3b98b1e6ff74b0;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57edb233409..5eb5eeaa9ad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,89 @@ +2018-05-20 Simon Marchi + + * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or + OBSTACK_ZALLOC. + * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. + * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. + * mdebugread.c (mdebug_build_psymtabs): Likewise. + (add_pending): Likewise. + (parse_symbol): Likewise. + (parse_partial_symbols): Likewise. + (psymtab_to_symtab_1): Likewise. + (new_psymtab): Likewise. + (elfmdebug_build_psymtabs): Likewise. + * minsyms.c (terminate_minimal_symbol_table): Likewise. + * objfiles.c (get_objfile_bfd_data): Likewise. + (objfile_register_static_link): Likewise. + * psymtab.c (allocate_psymtab): Likewise. + * stabsread.c (read_member_functions): Likewise. + * xcoffread.c (xcoff_end_psymtab): Likewise. + +2018-05-20 Simon Marchi + + * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if + compiler supports std::is_trivially_constructible. + * common/poison.h: Include obstack.h. + (IsMallocable): Define to is_trivially_constructible if the + compiler supports it, define to true_type otherwise. + (xobnew): New. + (XOBNEW): Redefine. + (xobnewvec): New. + (XOBNEWVEC): Redefine. + * gdb_obstack.h (obstack_zalloc): New. + (OBSTACK_ZALLOC): Redefine. + (obstack_calloc): New. + (OBSTACK_CALLOC): Redefine. + (obstack_new): New. + * gdbarch.sh: Include gdb_obstack in gdbarch.h. + (gdbarch_obstack): New declaration in gdbarch.h, definition in + gdbarch.c. + (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use + obstack_calloc/obstack_zalloc. + (gdbarch_obstack_zalloc): Remove. + * target-descriptions.c (tdesc_data_init): Use obstack_new. + +2018-05-19 Philippe Waroquiers + + * stack.c (backtrace_command_1): Remove useless variable int i. + +2018-05-19 Philippe Waroquiers + + * stack.c (print_frame_info): Fix comment. + +2018-05-18 Tom Tromey + + * dwarf2read.c (struct dwz_file): Add constructor, initializers. + : Now a gdb_bfd_ref_ptr. + (~dwarf2_per_objfile): Update + (dwarf2_get_dwz_file): Use new. + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + +2018-05-18 Tom Tromey + + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + * dwarf2read.c (struct dwp_file): Add constructor and + initializers. + (open_and_init_dwp_file): Return a unique_ptr. + (dwarf2_per_objfile, create_dwp_hash_table) + (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) + (lookup_dwo_unit_in_dwp): Update. + (open_and_init_dwp_file, get_dwp_file): Update. + +2018-05-18 Tom Tromey + + * dwarf2read.c (dwarf2_per_objfile): Update. + (struct mapped_index): Add initializers. + (dwarf2_read_index): Use new. + (dw2_symtab_iter_init): Update. + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + unique_ptr. + +2018-05-18 Simon Marchi + + * dwarf2read.c (mapped_index) : Remove. + 2018-05-18 Simon Marchi * unittests/format_pieces-selftests.c (test_format_specifier):