1. Jan 08, 2022
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/call-signal-resume.exp · 8cc261b7
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/call-signal-resume.exp ...
          DUPLICATE: gdb.base/call-signal-resume.exp: dummy stack frame number
          DUPLICATE: gdb.base/call-signal-resume.exp: set confirm off
          DUPLICATE: gdb.base/call-signal-resume.exp: return
      
      This is due to the fact that a pattern was probably copy/pasted to
      re-use the logic while not adjusting the test names to avoid the
      duplication.
      
      Fix by removing the redundant tests ('set confirm off' only needs to be
      used once) and adjusting the test names where appropriate.
      
      Tested on x86_64-linux.
      8cc261b7
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/pointers.exp · 148ac50e
      Lancelot SIX authored
      
      
      When I run the testsuite, I have :
      
          Running .../gdb/testsuite/gdb.base/pointers.exp ...
          DUPLICATE: gdb.base/pointers.exp: pointer assignment
      
      Fix by placing the sections with duplication in with_test_prefix blocks.
      This removes the duplication and gives a better organization the file.
      
      Tested on x86_64-linux.
      Co-Authored-By: default avatarPedro Alves <pedro@palves.net>
      148ac50e
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/unload.exp · bfc9663f
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/unload.exp ...
          DUPLICATE: gdb.base/unload.exp: continuing to unloaded libfile
      
      Fix by adjusting the test name.
      
      Tested on x86_64-linux.
      bfc9663f
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/define-prefix.exp · bcce3429
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/define-prefix.exp ...
          DUPLICATE: gdb.base/define-prefix.exp: define user command: ghi-prefix-cmd
      
      Fix by adjusting test names.
      
      Tested on x86_64-linux.
      bcce3429
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/funcargs.exp · 2dc33008
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/funcargs.exp ...
          DUPLICATE: gdb.base/funcargs.exp: run to call2a
      
      Fix by using proc_with_prefix instead on plain proc to create logical
      function blocks.
      
      Tested on x86_64-linux.
      2dc33008
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/shlib-call.exp · 5bdd79df
      Lancelot SIX authored
      When I run the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/shlib-call.exp ...
          DUPLICATE: gdb.base/shlib-call.exp: print g
          DUPLICATE: gdb.base/shlib-call.exp: set print sevenbit-strings
          DUPLICATE: gdb.base/shlib-call.exp: set print address off
          DUPLICATE: gdb.base/shlib-call.exp: set width 0
          DUPLICATE: gdb.base/shlib-call.exp: continue until exit
      
      Fix by adjusting the test names when required, and by removing
      un-necessary commands.
      
      While at it, do some cleanup:
      - Replace an explicit GDB restart sequence with a call to clean_restart.
      - Remove trailing whitespaces.
      - Use $gdb_test_name in gdb_test_multiple.
      
      Tested on x86_64-linux.
      5bdd79df
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/set-cfd.exp · d95edb60
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/set-cwd.exp ...
          DUPLICATE: gdb.base/set-cwd.exp: test_cwd_reset: continue to breakpoint: break-here
      
      Fix by moving the tests after the 'runto_main' within the same
      with_test_prefix scope.
      
      While at it, I fix some indentation issues.
      
      Tested on x86_64-linux.
      d95edb60
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/exprs.exp · 1868c0cb
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/exprs.exp ...
          DUPLICATE: gdb.base/exprs.exp: \$[0-9]* = red (setup)
      
      Fix by using with_test_prefix where appropriate.
      
      Tested on x86_64-linux.
      1868c0cb
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/readline.exp · e88e1678
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/readline.exp ...
          DUPLICATE: gdb.base/readline.exp: Simple operate-and-get-next - final prompt
      
      Fix by adjusting the prefix given to the second 'simple' call to
      operate_and_get_next.
      
      Tested on x86_64-linux.
      e88e1678
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/pretty-array.exp · 22dafa45
      Lancelot SIX authored
      When I run the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/pretty-array.exp ...
          DUPLICATE: gdb.base/pretty-array.exp: print nums
          DUPLICATE: gdb.base/pretty-array.exp: print nums
      
      Fix by giving a name to the test cases.
      
      Tested on x86_64-linux.
      22dafa45
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/ui-redirect.exp · fdc3b978
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/ui-redirect.exp ...
          DUPLICATE: gdb.base/ui-redirect.exp: redirect while already logging: set logging redirect off
      
      Fix by moving the first 'set logging redirect off' to the end of the
      previous [with_test_prefix] test block. The statement's purpose is to
      clean the on flag set in this previous block, so moving it there makes
      sense and does not change the sequence of commands in the test file.
      
      Tested on x86_64-linux.
      fdc3b978
    • Lancelot SIX's avatar
      gdb: completion-support.exp: improve leading whitespace support · 86a83999
      Lancelot SIX authored
      There is a expect support library in the source tree designed to help
      developers test the auto-completion capabilities of GDB.
      
      One of the functions is test_gdb_complete_unique_re.  It is used
      (usually indirectly via test_gdb_complete_unique) to test that a given
      input line is completed as a given output line.  The test checks for two
      ways to do the completion: using tab-completion, or using the
      'complete' command.  To do this, calls to two dedicated functions are
      performed.  If we omit few details, we can consider that a call to
      
          test_gdb_complete_unique $input $expected
      
      is equivalent to the two following calls:
      
          test_gdb_complete_tab_unique $input $expected
          test_gdb_complete_cmd_unique $input $expected
      
      When using the tab-completion, everything works as expected, but some
      care must be taken when using the 'complete' command if the given input
      has leading whitespaces.  In such situation, the output of the
      'complete' command will drop the leading whitespaces.
      
      The current approach is that in such situation, the input and expected
      outputs are right trimmed (i.e. all leading whitespaces are removed)
      when performing the command completion check.
      
      This means that the following call:
      
          test_gdb_complete_unique "   $input" "   $expected"
      
      is almost equivalent to (again, omitting few details and arguments):
      
          test_gdb_complete_tab_unique "   $input" "   $expected"
          test_gdb_complete_cmd_unique "$input" "$expected"
      
      This approach comes with a problem that we encounter when running the
      tests in complete-empty.exp.  When doing so, we have:
      
          Running .../gdb/testsuite/gdb.base/complete-empty.exp ...
          DUPLICATE: gdb.base/complete-empty.exp: empty-input-line: cmd complete ""
      
      This is because the test file does something like:
      
          test_gdb_complete_unique "" "!" " " 1
          test_gdb_complete_unique "   " "   !" " " 1¬
      
      which, if we do the substitution introduced above is equivalent to:
      
          test_gdb_complete_tab_unique "" "!"
          test_gdb_complete_cmd_unique "" "!"
          test_gdb_complete_tab_unique "   " "   !"
          test_gdb_complete_cmd_unique "" "!"
      
      We see that the lines 2 and 4 are now the same, and for this reason the
      testing framework complains about DUPLICATE test names.
      
      To fix that, this commit proposes that instead of left trimming both
      input and expected outputs, only the expected output is trimmed.
      
      Care must be taken in the case the completion gives more possibilities
      than allowed by the max-completions setting.  In this case, the input
      will be repeated in the output in its left trimmed version.  This commit
      also ensures that this is taken care of.
      
      With this commit, the gdb.base/complete-empty.exp still passes all its
      tests but does not report the DUPLICATE anymore.
      
      Tested on x86_64-linux.
      86a83999
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/subst.exp · 0d3ca327
      Lancelot SIX authored
      When I run the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/subst.ex ...
          DUPLICATE: gdb.base/subst.exp: unset substitute-path from, no rule entered yet
      
      Fix by adjusting the problematic test name.
      
      Tested on x86_64-linux.
      0d3ca327
    • Pedro Alves's avatar
      gdb/testsuite: Remove duplicates from gdb.base/dfp-exprs.exp · ffd5d21a
      Pedro Alves authored
      When I run the testsuite, I have:
      
          Running ../gdb/testsuite/gdb.base/dfp-exprs.exp ...
          DUPLICATE: gdb.base/dfp-exprs.exp: p 1.2dl < 1.3df
      
      Replace hand-written tests checking various comparison operators between
      various decimal floating point types with a loop to programmatically
      generate all the combinations.  This removes the need to eyeball for all
      suffixes, which lead to the original duplication.
      
      Also add a lot more combinations, testing all comparison operators
      comprehensively.  The result is 262 unique tests vs 104 before this
      patch.
      
      Tested on x86_86-linux.
      
      Change-Id: Id215a3d610aa8e032bf06ee160b5e3aed4a92d1e
      ffd5d21a
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/ptype.exp · 0988568e
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/ptype.exp ...
          DUPLICATE: gdb.base/ptype.exp: ptype the_highest
          DUPLICATE: gdb.base/ptype.exp: list intfoo
          DUPLICATE: gdb.base/ptype.exp: list charfoo
      
      Fix by adjusting the offending test names.
      
      Tested on x86_64-linux.
      0988568e
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/dfp-test.exp · 0fb8b9ba
      Lancelot SIX authored
      
      
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/dfp-test.exp ...
          DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number
          DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number
          DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number
          DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number
      
      Fix by using proc_with_prefix where appropriate.
      
      Tested on x86_64-linux.
      Co-Authored-By: default avatarAndrew Burgess <aburgess@redhat.com>
      0fb8b9ba
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/del.exp · d60bbc70
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/del.exp ...
          DUPLICATE: gdb.base/del.exp: info break after removing break on main
      
      Refactor slightly this test to run the various configurations under
      foreach_with_prefix so each variant is automatically prefixed, ensuring
      that the forgotten custom test name cannot happen.
      
      Tested on x86_64-linux.
      d60bbc70
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/solib-display.exp · 7a6a9616
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/solib-display.exp ...
          DUPLICATE: gdb.base/solib-display.exp: NO: break 25
          DUPLICATE: gdb.base/solib-display.exp: NO: continue
          DUPLICATE: gdb.base/solib-display.exp: IN: break 25
          DUPLICATE: gdb.base/solib-display.exp: IN: continue
          DUPLICATE: gdb.base/solib-display.exp: SEP: break 25
          DUPLICATE: gdb.base/solib-display.exp: SEP: continue
      
      The 'break 25' appears because the test inserts two breakpoints at the
      same location.  Fix this by only inserting the breakpoint once.
      
      Fix the 'continue' DUPLICATE by giving a phony name to the second
      continue: 'continue two'.
      
      While at it, this commit also removes a trailing space.
      
      Tested on x86_64-linux.
      7a6a9616
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/decl-before-def.exp · 1182b42d
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/decl-before-def.exp ...
          DUPLICATE: gdb.base/decl-before-def.exp: p a
      
      Fix by giving explicit names to the two tests that use the same command.
      
      Tested on x86_64-linux.
      1182b42d
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/pending.exp · 08c8808a
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/pending.exp ...
          DUPLICATE: gdb.base/pending.exp: disable other breakpoints
      
      Fix by adjusting the test names.
      
      Tested on x86_64-linux.
      08c8808a
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/checkpoint.exp · 2bb68cff
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/checkpoint.exp ...
          DUPLICATE: gdb.base/checkpoint.exp: verify lines 5 two
          DUPLICATE: gdb.base/checkpoint.exp: restart 0 one
      
      This patch fixes the various erroneous incorrect test names.
      
      While at it, this patch also remove some trailing white spaces across
      the file.
      
      Tested on x86_64-linux.
      2bb68cff
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/pie-fork.exp · f4581a88
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/pie-fork.exp ...
          DUPLICATE: gdb.base/pie-fork.exp: test_no_detach_on_fork: continue
      
      Fix by giving explicit names to the 'continue' commands that cause the
      duplicate message.
      
      Tested on x86_64-linux.
      f4581a88
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/realname-expand.exp · f05f3e72
      Lancelot SIX authored
      When running the testsuite, I have:
      
          Running .../gdb/testsuite/gdb.base/realname-expand.exp ...
          DUPLICATE: gdb.base/realname-expand.exp: set basenames-may-differ on
      
      This is due to the fact that the test restarts GDB twice and each time
      sets the basenames-may-differ setting.  This patch proposes to fix this
      by not restarting GDB so the setting is maintained.  It just clears the
      breakpoints between the two tests and updates the breakpoints number as
      required.
      
      This patch also perform some minor refactorings to improve visibility.
      
      Tested on x86_64-linux.
      f05f3e72
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/interp.exp · 27e9a99f
      Lancelot SIX authored
      When running the testsuite I have:
      
          Running .../gdb/testsuite/gdb.base/interp.exp ...
          DUPLICATE: gdb.base/interp.exp: interpreter-exec mi "-var-update *"
      
      This is due to the fact that multiple successive instances of
      gdb_test_multiple use 'pass $cmd', but one of them forgets to reset $cmd
      to a new test name.
      
      Fix by using 'pass $gdb_test_name', given that the gdb_test_name is set
      by gdb_test_multiple.
      
      While fixing this, this patch refactors all occurrences of the following
      pattern:
      
          set cmd foo
          gdb_test_multiple $cmd $cmd {
              -re ... {
                  pass $cmd
              }
          }
      
      into
      
          gdb_test_multiple foo "" {
              -re ... {
                  pass $gdb_test_name
               }
          }
      
      This makes this test file coherent in its use of $gdb_test_name.
      
      Tested on x86_64-linux.
      27e9a99f
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/miscexprs.exp · aaff91fd
      Lancelot SIX authored
      When running the testsuite I see:
      
          Running .../gdb/testsuite/gdb.base/miscexprs.exp ...
          DUPLICATE: gdb.base/miscexprs.exp: print value of !ibig.i[100]
          DUPLICATE: gdb.base/miscexprs.exp: print value of !ibig.i[100]
      
      This is due to an explicit test name repeated across multiple tests.
      The actual test explicit names do not add much over the command from
      wich default test names are derived.
      
      Fix by removing the explicit test names across the file where they do
      not add value.  While at doing some cleaning, also use $gdb_test_name in
      the various uses of gdb_test_multiple.
      
      Tested on x86_64-linux.
      aaff91fd
    • Lancelot SIX's avatar
      gdb/testsuite: Remove duplicates from gdb.base/stack-checking.exp · 3c1f0c73
      Lancelot SIX authored
      When running the testsuite I have:
      
          Running .../gdb/testsuite/gdb.base/stack-checking.exp ...
          DUPLICATE: gdb.base/stack-checking.exp: bt
          DUPLICATE: gdb.base/stack-checking.exp: bt
      
      Fix by using with_test_prefix.
      
      Tested on x86_64-linux.
      3c1f0c73
    • Philipp Tomsich's avatar
      RISC-V: update docs to reflect privileged spec v1.9 has been dropped · 9fba0721
      Philipp Tomsich authored
      After commit d8af286f ("RISC-V: Drop the privileged spec v1.9
      support.") has removed support for privileged spec v1.9, this removes
      it from the documentation.
      
      References: d8af286f ("RISC-V: Drop the privileged spec v1.9 support.")
      
      gas/ChangeLog:
      
      	* configure: Regenerate.
      	* configure.ac: Remove reference to priv spec 1.9.
      	* po/fr.po: Same.
      	* po/ru.po: Same.
      	* po/uk.po: Same.
      9fba0721
    • Philipp Tomsich's avatar
      RISC-V: update docs for -mpriv-spec/--with-priv-spec for 1.12 · 86d39e66
      Philipp Tomsich authored
      While support for the privileged spec was added in a63375ac
      ("RISC-V: Hypervisor ext: support Privileged Spec 1.12"), the
      documentation has not been updated.  Add 1.12 to the relevant
      documentation.
      
      References: a63375ac ("RISC-V: Hypervisor ext: support Privileged Spec 1.12")
      
      gas/ChangeLog:
      
      	* config/tc-riscv.c: Add 1.12 to the usage message.
      	* configure: Regenerate.
      	* configure.ac: Add 1.12 to the help/usage message.
      	* po/fr.po: Same.
      	* po/ru.po: Same.
      	* po/uk.po: Same.
      86d39e66
    • Tom Tromey's avatar
      Do not use CC_HAS_LONG_LONG · 8d5e08e1
      Tom Tromey authored
      ax.cc checks CC_HAS_LONG_LONG, but nothing defines this.  However,
      PRINTF_HAS_LONG_LONG is checked in configure.  This patch removes the
      former and keeps the latter.  This is PR remote/14976 (filed by me in
      2012, lol).
      
      I'm checking this in.
      
      Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=14976
      8d5e08e1
  2. Jan 07, 2022
    • Andrew Burgess's avatar
      gdb/doc: shorten some source lines, and prevent some line breaks · d5096486
      Andrew Burgess authored
      Building on the previous commit, this makes use of a trailing @ to
      split long @deffn lines in the guile.texi source file.  This splitting
      doesn't change how the document is laid out by texinfo.
      
      I have also wrapped keyword and argument name pairs in @w{...} to
      prevent line breaks appearing between the two.  I've currently only
      done this for the longer @deffn lines, where a line break is
      possible.  This makes the @deffn lines much nicer to read in the
      generated pdf.
      d5096486
    • Andrew Burgess's avatar
      gdb/doc: Remove (...) around guile procedure names in @deffn lines · 8af9b800
      Andrew Burgess authored
      Most guile procedures in the guile.texi file are defined like:
      
        @deffn {Scheme Procedure} name arg1 arg2 arg3
      
      But there are two places where we do this:
      
        @deffn {Scheme Procedure} (name arg1 arg2 arg3)
      
      Notice the added (...).  Though this does represent how a procedure
      call is written in scheme, it's not the normal style throughout the
      manual.  I also checked the 'info guile' info page to see how they
      wrote there declarations, and they use the first style too.
      
      The second style also has the drawback that index entries are added as
      '(name', and so they are grouped in the '(' section of the index,
      which is not very user friendly.
      
      In this commit I've changed the definitions of make-command and
      make-parameter to use the first style.
      
      The procedure declaration lines can get pretty long with all of the
      arguments, and this was true for both of the procedures I am changing
      in this commit.  I have made use of a trailing '@' to split the deffn
      lines, and keep them under 80 characters in the texi source.  This
      makes no difference to how the final document looks.
      
      Finally, our current style for keyword arguments, appears to be:
      
        [#:keyword-name argument-name]
      
      I don't really understand the reason for this, 'info guile' just seems
      to use:
      
        [#:keyword-name]
      
      which seems just as good to me.  But I don't propose to change
      that just now.  What I do notice though, is that sometimes, texinfo
      will place a line break between the keyword-name and the
      argument-name, for example, the pdf of make-command is:
      
        make-command name [#:invoke invoke] [#:command-class
          command-class] [#:completer-class completer] [#:prefix? prefix] [#:doc
          doc-string]
      
      Notice the line break after '#:command-class' and after '#:doc',
      neither of which are ideal.  And so, for the two commands I am
      changing in this commit, I have made use of @w{...} to prevent line
      breaks between the keyword-name and the argument-name.  Now the pdf
      looks like this:
      
        make-command name [#:invoke invoke]
          [#:command-class command-class] [#:completer-class completer]
          [#:prefix? prefix] [#:doc doc-string]
      
      Which seems much better.  I'll probably update the other deffn lines
      at some point.
      8af9b800
    • Pavel Mayorov's avatar
      Revert previous delta to debug.c. Replace with patch to reject indirect types... · 0e9f1c04
      Pavel Mayorov authored
      Revert previous delta to debug.c.  Replace with patch to reject indirect types that point to indirect types.
      
      	PR 28718
      	* dwarf.c: Revert previous delta.
      	(debug_get_real_type): Reject indirect types that point to
      	indirect types.
      	(debug_get_type_name, debug_get_type_size, debug_write_type):
      	Likewise.
      0e9f1c04
    • Nelson Chu's avatar
      RISC-V: Updated the default ISA spec to 20191213. · aed44286
      Nelson Chu authored
      Update the default ISA spec from 2.2 to 20191213 will change the default
      version of i from 2.0 to 2.1.  Since zicsr and zifencei are separated
      from i 2.1, users need to add them in the architecture string if they need
      fence.i and csr instructions.  Besides, we also allow old ISA spec can
      recognize zicsr and zifencei, but we won't output them since they are
      already included in the i extension when i's version is less than 2.1.
      
      bfd/
      	* elfxx-riscv.c (riscv_parse_add_subset): Allow old ISA spec can
      	recognize zicsr and zifencei.
      gas/
      	* config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Updated to 20191213.
      	* testsuite/gas/riscv/csr-version-1p10.d: Added zicsr to -march since
      	the default version of i is 2.1.
      	* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
      	* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
      	* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
      	* testsuite/gas/riscv/option-arch-03.d: Updated i's version to 2.1.
      	* testsuite/gas/riscv/option-arch-03.s: Likewise.
      ld/
      	* testsuite/ld-riscv-elf/call-relax.d: Added zicsr to -march since
      	the default version of i is 2.1.
      	* testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated i's version to 2.1.
      	* testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-01b.: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
      	* testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Added zifencei
      	into Tag_RISCV_arch since it is added implied when i's version is
      	larger than 2.1.
      aed44286
    • Alan Modra's avatar
      Move elf_backend_always_size_sections earlier · 6540edd5
      Alan Modra authored
      	* elflink.c (bfd_elf_size_dynamic_sections): Move plt/got init
      	earlier and call elf_backend_always_size_sections at the start
      	of this function.
      6540edd5
    • GDB Administrator's avatar
      Automatic date update in version.in · d794dc3e
      GDB Administrator authored
      d794dc3e
    • H.J. Lu's avatar
      ldelfgen.c: Add missing newlines when calling einfo · ea93a607
      H.J. Lu authored
      	* ldelfgen.c (ldelf_map_segments): Add the missing newline to
      	einfo.
      ea93a607
    • Nick Clifton's avatar
      Fix a stack exhaustion bug parsing malicious STABS format debug information. · af4004d1
      Nick Clifton authored
      	PR 28718
      	* debug.c (debug_write_type): Allow for malicious recursion via
      	indirect debug types.
      af4004d1
    • Richard Sandiford's avatar
      aarch64: Add support for new SME instructions · 27297937
      Richard Sandiford authored
      This patch adds support for three new SME instructions: ADDSPL,
      ADDSVL and RDSVL.  They behave like ADDPL, ADDVL and RDVL, but read
      the streaming vector length instead of the current vector length.
      
      opcodes/
      	* aarch64-tbl.h (aarch64_opcode_table): Add ADDSPL, ADDSVL and RDSVL.
      	* aarch64-dis-2.c: Regenerate.
      
      gas/
      	* testsuite/gas/aarch64/sme.s, testsuite/gas/aarch64/sme.d: Add tests
      	for ADDSPL, ADDSVL and RDSVL.
      27297937
  3. Jan 06, 2022
    • Tom Tromey's avatar
      Use target_announce_detach in more targets · 41e321a8
      Tom Tromey authored
      target_announce_detach was added in commit 0f48b757 ("Factor out
      "Detaching from program" message printing").  There, Pedro wrote:
      
          (For now, I left the couple targets that print this a bit differently
          alone.  Maybe this could be further pulled out into infcmd.c.  If we
          did that, and those targets want to continue printing differently,
          this new function could be converted to a target method.)
      
      It seems to me that the differences aren't very big, and in some cases
      other targets handled the output a bit more nicely.  In particular,
      some targets will print a different message when exec_file==NULL,
      rather than printing the same output with an empty string as
      exec_file.
      
      This patch incorporates the nicer output into target_announce_detach,
      then changes the remaining ports to use this function.
      
      
      41e321a8
    • Tom Tromey's avatar
      Introduce target_announce_attach · bc521517
      Tom Tromey authored
      This introduces target_announce_attach, by analog with
      target_announce_detach.  Then it converts existing targets to use
      this, rather than emitting their own output by hand.
      
      
      bc521517