Fix an undefined behavior in record_line
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7c1d84c330f543ee6a01b2778bf5fa4ccec5e64c..d5715a8fa00567096cccfe54adbd978d3aae81b3 100644 (file)
@@ -1,3 +1,118 @@
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix undefined behavior and preserve
+       lines at eof.
+
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix the resizing condition.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * value.h (value_literal_complex): Add comment.
+       * valops.c (value_literal_complex): Refer to value.h.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
+       (scalar_type): New rule, from typebase.
+       (typebase): Use scalar_type.  Recognize complex types.
+       (field_name): Handle FLOAT_KEYWORD.
+       (ident_tokens): Add _Complex and __complex__.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       PR exp/25299:
+       * valarith.c (promotion_type, complex_binop): New functions.
+       (scalar_binop): Handle complex numbers.  Use promotion_type.
+       (value_pos, value_neg, value_complement): Handle complex numbers.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
+       (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
+       (parse_number): Handle complex numbers.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-valprint.c (c_decorations): Change complex suffix to "i".
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_value_print_complex): Use accessors.
+       * value.h (value_real_part, value_imaginary_part): Declare.
+       * valops.c (value_real_part, value_imaginary_part): New
+       functions.
+       * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
+       (read_range_type): Update.
+       * mdebugread.c (basic_type): Update.
+       * go-lang.c (build_go_types): Use init_complex_type.
+       * gdbtypes.h (struct main_type) <complex_type>: New member.
+       (init_complex_type): Update.
+       (arch_complex_type): Don't declare.
+       * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
+       Make name if none given.  Use alloc_type_copy.  Look for cached
+       complex type.
+       (arch_complex_type): Remove.
+       (gdbtypes_post_init): Use init_complex_type.
+       * f-lang.c (build_fortran_types): Use init_complex_type.
+       * dwarf2/read.c (read_base_type): Update.
+       * d-lang.c (build_d_types): Use init_complex_type.
+       * ctfread.c (read_base_type): Update.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * infrun.c (stop_all_threads): Update assertion, plus when
+       stopping threads, take into account that we might be trying
+       to stop an all-stop target.
+       (stop_waiting): Call 'stop_all_threads' if there exists a
+       non-stop target.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * target.h (exists_non_stop_target): New function declaration.
+       * target.c (exists_non_stop_target): New function.
+
+2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
+
+       PR gdb/24789
+       * eval.c (is_integral_or_integral_reference): New function.
+       (evaluate_subexp_standard): Allow integer references in
+       pointer arithmetic.
+
+2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * remote.c (remote_target::remote_parse_stop_reply): Remove the
+       check for no ptid in the stop reply when the target is non-stop.
+
+2020-04-01  Tom Tromey  <tromey@adacore.com>
+
+       * symtab.h (class lookup_name_info) <lookup_name_info>: Change
+       "name" parameter to rvalue reference.  Initialize m_name_holder.
+       <lookup_name_info>: New overloads.
+       <name>: Return gdb::string_view.
+       <c_str>: New method.
+       <make_ignore_params>: Update.
+       <search_name_hash>: Update.
+       <language_lookup_name>: Return const char *.
+       <m_name>: Change type.
+       * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
+       (demangle_for_lookup_info::demangle_for_lookup_info): Update.
+       (lookup_name_info::match_any): Update.
+       * psymtab.c (match_partial_symbol, lookup_partial_symbol):
+       Update.
+       * minsyms.c (linkage_name_str): Update.
+       * language.c (default_symbol_name_matcher): Update.
+       * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
+       Update.
+       * ada-lang.c (ada_fold_name): Change parameter to string_view.
+       (ada_lookup_name_info::ada_lookup_name_info): Update.
+       (literal_symbol_name_matcher): Update.
+
 2020-04-01  Tom Tromey  <tromey@adacore.com>
 
        * psymtab.c (psymtab_search_name): Remove function.
This page took 0.025879 seconds and 4 git commands to generate.