1. Oct 08, 2020
    • Simon Marchi's avatar
      gdb: put user-supplied CFLAGS at the end · a038ffd8
      Simon Marchi authored
      GDB currently doesn't build cleanly with clang (a -Wdeprecated-copy-dtor
      error).  I configured my clang-based GDB build with
      CXXFLAGS="-Wno-error=deprecated-copy-dtor", so I can use it despite that
      problem.  However, I found that it had no effect.  This is because my
      -Wno-error=Wdeprecated-copy-dtor switch is followed by -Werror in the
      command line, which switches back all warnings to be errors.
      
      If we want the user-supplied C(XX)FLAGS to be able to override flags
      added by our configure script, the user-supplied C(XX)FLAGS should
      appear after the configure-supplied flags.
      
      This patch moves the user-supplied CXXFLAGS at the very end of the
      compilation command line, which fixes the problem described above.  This
      means moving it out of INTERNAL_CFLAGS and inlining it in the users of
      INTERNAL_CFLAGS.
      
      I observed the problem when building GDB, but the same problem could
      happen with GDBserver, so the change is done there too.
      
      In GDBserver, INTERNAL_CFLAGS is passed when linking
      
      gdb/ChangeLog:
      
      	* Makefile.in (COMPILE): Add CXXFLAGS.
      	(INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
      	(check-headers): Add CXXFLAGS.
      
      gdbserver/ChangeLog:
      
      	* Makefile.in (COMPILE): Add CXXFLAGS.
      	(INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
      	(gdbserver$(EXEEXT)): Add CXXFLAGS.
      	(gdbreplay$(EXEEXT)): Add CXXFLAGS.
      	($(IPA_LIB)): Add CXXFLAGS.
      	(IPAGENT_COMPILE): Add CXXFLAGS.
      
      Change-Id: I00e054506695e0e9536095c6d14827e48abd8f69
      a038ffd8
    • Kamil Rytarowski's avatar
      Add Makefile.in entry for "Add NetBSD/aarch64 gdbserver support" · 8b558efe
      Kamil Rytarowski authored
      The support is on par with NetBSD/amd64, thus GPR works,
      single step and software breakpoint are operational, and the
      SVR4 r_debug integration is functional.
      
      gdbserver/ChangeLog:
      
               * netbsd-aarch64-low.cc: Add.
               * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
               * configure.srv: Add aarch64*-*-netbsd*.
      8b558efe
    • Shahab Vahedi's avatar
      gdb: Correct the ChageLog entry · bbe90b5d
      Shahab Vahedi authored
      Becausae of a copy/paste, I've put myself as the author of the
      following patch which was not true:
      
      6d2d7c56 gdbserver: Add GNU/Linux support for ARC
      
      This change will place the correct date and author in the ChangeLog.
      bbe90b5d
    • Anton Kolesov's avatar
      arc: Add support for Linux coredump files · cc463201
      Anton Kolesov authored
      With the implemenations in this patch, ARC gdb can handle
      coredump related matters.  The binutils counter part of
      this patch has already been pushed [1].
      
      v2 [2]:
      - arc_linux_collect_gregset: Use "reg <= ARC_LAST_REGNUM" instead of
        "reg < ARC_LAST_REGNUM" for the condition check of the for-loop.
      - arc-linux-tdep.c: Use "ARC_LAST_REGNUM < ARRAY_SIZE (...)" instead of
        "ARC_LAST_REGNUM <= ARRAY_SIZE (...)" for the "asserts".
      - Use "buf + arc_linux_core_reg_offsets[ARC_ERET_REGNUM]" instead of
        "buf + REG_OFF (6)".
      - Fix a few typos/indentation.
      
      v3 [3]:
      - Use gdb_assert_not_reached(text) instead of gdb_assert (!text).
      - Remove unnecessary braces in the for loop.
      
      [1] arc: Add support for ARC HS extra registers in core files
      https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=2745674244d6aecddcf636475034bdb9c0a6b4a0
      
      [2] First remarks
      https://sourceware.org/pipermail/gdb-patches/2020-September/171912.html
      
      [3] Second remarks
      https://sourceware.org/pipermail/gdb-patches/2020-October/172302.html
      
      gdb/ChangeLog:
      
      	* arc-linux-tdep.h: New file.
      	* arc-linux-tdep.c (arc_linux_core_reg_offsets,
      	arc_linux_supply_gregset, arc_linux_supply_v2_regset,
      	arc_linux_collect_gregset, arc_linux_collect_v2_regset,
      	arc_linux_gregset, arc_linux_v2_regset,
      	arc_linux_iterate_over_regset_sections,
      	arc_linux_core_read_description): Implement.
      	(arc_linux_init_osabi): Set iterate_over_regset_sections.
      	* arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
              (arc_gdbarch_features_create): Add.
      	* arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
      cc463201
  2. Oct 07, 2020
    • Anton Kolesov's avatar
      gdbserver: Add GNU/Linux support for ARC · 6d2d7c56
      Anton Kolesov authored
      This gdbserver implementation supports ARC ABI v3 and v4 (older ARC ABI
      versions are not supported by other modern GNU tools or Linux itself).
      Gdbserver supports inspection of ARC HS registers R30, R58 and R59 - feature
      that has been added to Linux 4.12.  Whether gdbserver build will actually
      support this feature depends on the version of Linux headers used to build
      the server.
      
      v2 [1]:
      - Use "this->read_memory ()" instead of "the_target->read_memory ()".
      - Remove the unnecessary "arch-arc.o:" target from the "Makefile.in".
      - Got rid of "ntohs()" function and added lots of comments about
        endianness.
      - Clarify why "pc" value is read from and saved to different fields
        in user regs struct.
      - In function "is_reg_name_available_p()", use a range-based iterator
        to loop over the registers.
      - Removed mentioning of issue number that was not related to sourceware.
      - A few typo's fixed.
      
      [1] Remarks
      https://sourceware.org/pipermail/gdb-patches/2020-September/171911.html
      https://sourceware.org/pipermail/gdb-patches/2020-September/171919.html
      
      gdbserver/ChangeLog:
      
      	* configure.srv: Support ARC architecture.
      	* Makefile.in: Add linux-arc-low.cc and arch/arc.o.
      	* linux-arc-low.cc: New file.
      6d2d7c56
    • Shahab Vahedi's avatar
      arc: Rename "arc_gdbarch_features" struct · e4bd363f
      Shahab Vahedi authored
      "arc_gdbarch_features" is a data structure containing information
      about the ARC architecture: ISA version, register size, etc.
      This name is misleading, because although it carries the phrase
      "gdbarch", it has nothing to do with the type/interface in GDB.
      Traditionaly, "gdbarch" structures are only used for that purpose.
      To rectify this, this patch changes the name to "arc_arch_features".
      
      gdb/ChangeLog:
      
      	* arch/arc.h: Rename "arc_gdbarch_features" to
      	"arc_arch_features".
      	* arc-tdep.h: Likewise.
      	* arc-tdep.c: Likewise.
      e4bd363f
    • Kamil Rytarowski's avatar
      Stop passing netbsd_process_target to local functions · 48491055
      Kamil Rytarowski authored
      Switch from target->read_memory to netbsd_nat::read_memory and
      cleanup the code.
      
      No functional change.
      
      gdbserver/ChangeLog:
      
              * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
              (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
              (netbsd_process_target::qxfer_libraries_svr4): Update.
      48491055
    • Tankut Baris Aktemur's avatar
      gdb/infcmd: remove redundant clear_proceed_status call · b68bef99
      Tankut Baris Aktemur authored
      In `attach_command`, there is a call to `init_wait_for_inferior`
      followed by a call to `clear_proceed_status`.  However,
      `init_wait_for_inferior` already calls `clear_proceed_status`.  Remove
      the redundant call.
      
      Regression-tested on X86_64 Linux.
      
      gdb/ChangeLog:
      2020-10-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
      
      	* infcmd.c (attach_command): Remove the redundant call to
      	`clear_proceed_status`.
      b68bef99
    • Kamil Rytarowski's avatar
      Correct logical error in NetBSD's read_memory and write_memory · 4641551a
      Kamil Rytarowski authored
      In case of repeated ptrace PT_IO call and returning the value of
      transferred bytes equal to 0, do not return without setting
      xfered_len.
      
      gdb/ChangeLog:
      
              * nat/netbsd-nat.c (write_memory, read_memory): Update.
      4641551a
    • Kamil Rytarowski's avatar
      Fix whitespace formatting · 2be01f63
      Kamil Rytarowski authored
      gdbserver/ChangeLog:
      
              * netbsd-low.cc: Fix whitespace formatting.
              * netbsd-amd64-low.cc: Likewise.
      2be01f63
    • Kamil Rytarowski's avatar
      Add common write_memory and read_memory NetBSD routines · 91e5e8db
      Kamil Rytarowski authored
      Instead of sharing the native-only code with all BSDs with slightly
      different semantics of the kernels, share the NetBSD-only behavior beteen
      the NetBSD native and gdbserver setup.
      
      NetBSD does not differentiate the address space I and D in the
      operations (contrary to OpenBSD). NetBSD handles EACCES that integrates
      with NetBSD specific PaX MPROTECT error handling.
      
      Add a verbose message in the native client that an operation could be
      cancelled due to PaX MPROTECT setup.
      
      gdb/ChangeLog:
      
             * nat/netbsd-nat.c (write_memory, read_memory): Add.
             * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
             * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
      
      gdbserver/ChangeLog:
      
             * netbsd-low.cc (netbsd_process_target::read_memory)
             (netbsd_process_target::write_memory): Update.
      91e5e8db
    • Kamil Rytarowski's avatar
      Add ChangeLog for "Add NetBSD/aarch64 gdbserver support" · 9529c852
      Kamil Rytarowski authored
      The support is on par with NetBSD/amd64, thus GPR works,
      single step and software breakpoint are operational, and the
      SVR4 r_debug integration is functional.
      
      gdbserver/ChangeLog:
      
               * netbsd-aarch64-low.cc: Add.
               * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
               * configure.srv: Add aarch64*-*-netbsd*.
      9529c852
    • Kamil Rytarowski's avatar
      Add NetBSD/aarch64 gdbserver support · 8e1d0929
      Kamil Rytarowski authored
      The support is on par with NetBSD/amd64, thus GPR works,
      single step and software breakpoint are operational, and the
      SVR4 r_debug integration is functional.
      
      gdbserver/ChangeLog:
      
               * netbsd-aarch64-low.cc: Add.
               * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
               * configure.srv: Add aarch64*-*-netbsd*.
      8e1d0929
    • Simon Marchi's avatar
      gdb: make signal_catch_counts a static array · 64c03bdb
      Simon Marchi authored
      I noticed that signal_catch_counts is a dynamically-allocated array of
      constant size, allocated at startup an never freed.  This might as well
      be a statically-allocated array.
      
      gdb/ChangeLog:
      
      	* break-catch-sig.c (signal_catch_counts): Make a static arrray.
      	(_initialize_break_catch_sig): Don't allocate array.
      
      Change-Id: I220321df5ad6c1d2664ec9d483eea2dc1c979afe
      64c03bdb
    • Michael Forney's avatar
      gdb: Fix installation of gcore.1 on some platforms · 4b136f6f
      Michael Forney authored
      gcore is installed on NetBSD, FreeBSD, Solaris (HAVE_NATIVE_GCORE_HOST=1)
      and Linux (HAVE_NATIVE_GCORE_TARGET=1). However, even though gcore.1
      is installed conditional on those variables, HAVE_NATIVE_GCORE_HOST
      was missing from gdb/doc/Makefile.in, so manual installation was
      skipped on NetBSD, FreeBSD, and Solaris.
      
      gdb/doc/ChangeLog:
      2020-10-06  Michael Forney  <mforney@mforney.org>
      
              * Makefile.in (HAVE_NATIVE_GCORE_HOST): Add for gcore.1
              install condition.
      
      Change-Id: I17c3ce2ecdfb806ece17f05ba78356b25ffa865e
      4b136f6f
    • GDB Administrator's avatar
      Automatic date update in version.in · 8ab0be17
      GDB Administrator authored
      8ab0be17
    • H.J. Lu's avatar
      x86: Properly merge -z ibt and -z shstk · 574df58f
      H.J. Lu authored
      Merge -z ibt and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND, not
      any GNU_PROPERTY_X86_UINT32_AND_XXX properties.
      
      bfd/
      
      	PR ld/26711
      	* elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Merge -z ibt
      	and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND.
      
      ld/
      
      	PR ld/26711
      	* testsuite/ld-i386/i386.exp: Run ld/26711 tests.
      	* testsuite/ld-x86-64/x86-64.exp: Likewise.
      	* testsuite/ld-i386/pr26711-1.d: Likewise.
      	* testsuite/ld-i386/pr26711-2.d: Likewise.
      	* testsuite/ld-i386/pr26711-3.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-1.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-2.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
      	* testsuite/ld-x86-64/pr26711-3.d: Likewise.
      	* testsuite/ld-x86-64/pr26711.s: Likewise.
      574df58f
  3. Oct 06, 2020
    • Shahab Vahedi's avatar
      gdbserver: Remove unused argument in register_data() · 981b570a
      Shahab Vahedi authored
      The register_data() function in gdbserver/regcache.cc has an
      input argument called "fetch".  This argument is not used by this
      static function at all.  Therefore, it is time to get rid of it.
      
      gdbserver/ChangeLog:
      
      	* regcache.cc (register_data): Remove unused "fetch" argument.
      981b570a
    • Alex Coplan's avatar
      aarch64: Fix bogus type punning in parse_barrier() [PR26699] · 05cfb0d8
      Alex Coplan authored
      This patch fixes a bogus use of type punning in parse_barrier() which
      was causing an assembly failure on big endian LP64 hosts when attempting
      to assemble "isb sy" for AArch64.
      
      The type of the entries in aarch64_barrier_opt_hsh is
      aarch64_name_value_pair. We were incorrectly casting this to the
      locally-defined asm_barrier_opt which has a wider type (on LP64) for the
      second member. This happened to work on little-endian hosts but fails on
      LP64 big endian.
      
      The fix is to use the correct type in parse_barrier(). This makes the
      locally-defined asm_barrier_opt redundant, so remove it.
      
      gas/ChangeLog:
      
      	* config/tc-aarch64.c (asm_barrier_opt): Delete.
      	(parse_barrier): Fix bogus type punning.
      	* testsuite/gas/aarch64/system.d: Update disassembly.
      	* testsuite/gas/aarch64/system.s: Add isb sy test.
      05cfb0d8
    • Nick Clifton's avatar
      Fix a bug in objcopy/strip's ability to merge notes in multiple same-named sections. · 0ec992e6
      Nick Clifton authored
      	* objcopy.c (copy_object): Compare input and output sections by
      	pointer rather than name.
      0ec992e6
    • Gary Benson's avatar
      Fix gdb.base/list.exp with Clang · 30897591
      Gary Benson authored
      Two subtests of gdb.base/list.exp failed when built with Clang
      because the unused function "unused" was optimized out.  This
      commit adds __attribute__ ((used)) to both definitions.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.base/list0.c (unused): Add __attribute__ ((used)).
      	* gdb.base/list1.c (unused): Likewise.
      30897591
    • Gary Benson's avatar
      Fix gdb.base/list-ambiguous.exp with Clang · ced4a4c1
      Gary Benson authored
      The ambiguous variable parts of gdb.base/list-ambiguous.exp failed
      when built with Clang because the variable in question was unused
      and was optimized out.  This commit adds __attribute__ ((used)) to
      both definitions.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.base/list-ambiguous0.c (ambiguous_var): Add
      	__attribute__ ((used)).
      	* gdb.base/list-ambiguous1.c (ambiguous_var): Likewise.
      ced4a4c1
    • Sergey Belyashav's avatar
      A small set of code improvements for the Z80 assembler. · 0ae9445d
      Sergey Belyashav authored
      	PR 26692
      	* config/tc-z80.c (md_begin): Ensure that xpressions are empty
      	before using them.
      	(unify_indexed): Likewise.
      	(z80_start_line_hook): Improve hash sign handling when SDCC
      	compatibility mode enabled.
      	(md_parse_exp_not_indexed): Improve indirect addressing
      	detection.
      	(md_pseudo_table): Accept hd64 as an alias of z810.
      0ae9445d
    • Andrew Burgess's avatar
      sim: Fix autoreconf errors in sim/ directory · 043f5c63
      Andrew Burgess authored
      Run autoreconf in sim/ directory and you'll see some errors.  The
      problem is that autoreconf (a perl script) does not evaluate the value
      passed as an argument to AC_CONFIG_AUX_DIR, so something like:
      
        AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
      
      does not do the right thing inside autoreconf, my understanding is
      that changing to something like this is fine:
      
        AC_CONFIG_AUX_DIR(../..)
      
      the generated configure seems to check the value passed, and the value
      passed relative to the source directory, so I think we get basically
      the same behaviour as before.
      
      sim/testsuite/ChangeLog:
      
      	* configure: Regnerate.
      	* configure.ac (AC_CONFIG_AUX_DIR): Update.
      
      sim/testsuite/d10v-elf/ChangeLog:
      
      	* configure: Regnerate.
      	* configure.ac (AC_CONFIG_AUX_DIR): Update.
      
      sim/testsuite/frv-elf/ChangeLog:
      
      	* configure: Regnerate.
      	* configure.ac (AC_CONFIG_AUX_DIR): Update.
      
      sim/testsuite/m32r-elf/ChangeLog:
      
      	* configure: Regnerate.
      	* configure.ac (AC_CONFIG_AUX_DIR): Update.
      
      sim/testsuite/mips64el-elf/ChangeLog:
      
      	* configure: Regnerate.
      	* configure.ac (AC_CONFIG_AUX_DIR): Update.
      043f5c63
    • Andrew Burgess's avatar
      gdb: handle unmapped overlays in find_pc_line · 31a8f60f
      Andrew Burgess authored
      I configured and built an m32r-elf toolchain, and ran the
      gdb.base/overlays.exp test.  I saw a couple of errors where GDB would
      place a breakpoint in the wrong place when placing a breakpoint using
      a function name, for example in this function:
      
      /* 1 */  int foo (int x)
      /* 2 */  {
      /* 3 */    if (x)
      /* 4 */      return some_global_variable;
      /* 5 */    else
      /* 6 */      return 0;
      /* 7 */  }
      
      GDB would place the breakpoint on line 2 instead of line 3.  The issue
      is that GDB was failing to skip the prologue correctly.
      
      The reason for this is that in m32r-tdep.c:m32r_skip_prologue, we
      first use find_pc_partial_function to find the functions start and end
      addresses, then we use find_pc_line to find the start and end of the
      first line of the function.
      
      Currently, if the pc value passed to find_pc_partial_function is in an
      unmapped overlay then the function start and end addresses that are
      returned are also the unmapped addresses.
      
      However, this is not the case for find_pc_line, here, if the address
      passed in is in an unmapped overlay then we still get back a
      symtab_and_line describing the mapped location.
      
      What this means is that if a function's mapped location is 0x100 ->
      0x120, and its unmapped locations is 0x400 -> 0x420 then we think that
      the start/end is 0x400 and 0x420 respectively, but the first line
      might run from 0x100 to 0x108.
      
      GDB will then try to scan the prologue starting from 0x400 and ending
      at 0x108, this immediately gives up as it thinks we have gone past the
      end of the prologue and the breakpoint is placed at 0x400.
      
      In this commit I propose that we change find_pc_line to return
      addresses in the unmapped range if the address passed in is already in
      the unmapped range.  Now the first line will appear to run from 0x400
      to 0x408 and the prologue scanner will correctly find the end of the
      prologue.
      
      With this commit gdb.base/overlays.exp now completely passes with an
      m32r-elf toolchain.
      
      gdb/ChangeLog:
      
      	* symtab.c (find_pc_line): Return unmapped addresses when the
      	requested address is also unmapped.
      31a8f60f
    • Andrew Burgess's avatar
      gdb/testsuite: allow gdb.base/overlays.exp to compile for m32r · ed3bdac4
      Andrew Burgess authored
      The gdb.base/overlays.exp test is only currently supported on m32r
      baremetal targets, however, when I configure a toolchain for m32r-elf
      the test does not compile.
      
      This commit updates the linker script, fixes some TCL errors in the
      exp file, and adds some missing includes to the source file so that
      the test does compile.
      
      With this test, when run against an m32r-elf toolchain the test mostly
      passes, but there are a couple of failures, these are GDB issues and
      will be addressed in a later commit.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.base/m32r.ld: Remove SEARCH_DIR line.  Add MEMORY regions,
      	make use of regions throughout.
      	* gdb.base/overlays.exp: Enclose string with variableds in "..",
      	not {...}.
      	* gdb.base/ovlymgr.c: Add 'string.h' and 'stdlib.h' includes.
      ed3bdac4
    • Alan Modra's avatar
      Fix gas sh-link-zero test for hppa64-hpux · 3ce6300e
      Alan Modra authored
      	* testsuite/gas/elf/sh-link-zero.s: Don't start directives in
      	first column.  Don't use numeric labels.
      3ce6300e
    • Brandon Bergren's avatar
      PR26667, Add powerpc64le-*-freebsd* support · 6afcdeb3
      Brandon Bergren authored
      	PR 26667
      bfd/
      	* config.bfd: Add powerpc64le-*-freebsd*.
      	* configure.ac: Add powerpc_elf64_fbsd_le_vec.
      	* elf64-ppc.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define for
      	freebsd.
      	* targets.c (powerpc_elf64_fbsd_le_vec): Declare.
      	(_bfd_target_vector): Add it.
      	* configure: Regenerate.
      ld/
      	* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c.
      	Include $(DEPDIR)/eelf64lppc_fbsd.Pc.
      	* configure.tgt: Add powerpc64le-*-freebsd*.
      	* emulparams/elf64lppc_fbsd.sh: New file.
      	* Makefile.in: Regenerate.
      	* po/BLD-POTFILES.in: Regenerate.
      6afcdeb3
    • GDB Administrator's avatar
      Automatic date update in version.in · 08975378
      GDB Administrator authored
      08975378
    • Simon Marchi's avatar
      gdb: sync tui header files in HFILES_NO_SRCDIR · 9e6dbd8b
      Simon Marchi authored
      I noticed that tui/tui-windata.h didn't exist anymore, and that
      tui/tui-out.h wasn't listed.  Fix that.
      
      gdb/ChangeLog:
      
      	* Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
      	tui/tui-out.h.
      
      Change-Id: Ic75cc68432b90ba5be857a2852ad52dea326fe36
      9e6dbd8b
    • Simon Marchi's avatar
      gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c · a1d217e8
      Simon Marchi authored
      I get this build failure:
      
            CXX    amd64-windows-tdep.o
          cc1plus: warning: command-line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
          /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c: In function 'return_value_convention amd64_windows_return_value(gdbarch*, value*, type*, regcache*, gdb_byte*, const gdb_byte*)':
          /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c:374:6: error: 'TYPE_VECTOR' was not declared in this scope
            374 |  if (TYPE_VECTOR (type) && len == 16)
                |      ^~~~~~~~~~~
      
      TYPE_VECTOR was removed in favor of the type::is_vector method.
      
      gdb/ChangeLog:
      
      	* amd64-windows-tdep.c (amd64_windows_return_value): Use
      	type::is_vector instead of TYPE_VECTOR.
      
      Change-Id: I0ce26c3f7a33625761a8dba351c3158464f21b01
      a1d217e8
  4. Oct 05, 2020
    • Nick Clifton's avatar
      Fix compile time error building windmc, detected by gcc 11. · 1f1845d4
      Nick Clifton authored
      	PR 26698
      	* windmc.c (mc_unify_path): Fix typo checking character at end of
      	pathname.
      1f1845d4
    • Przemyslaw Wirkus's avatar
      [PATCH][GAS][AArch64] Update Cortex-X1 feature flags · f9b1d75e
      Przemyslaw Wirkus authored
      This is feature flags update for Cortex-X1 CPU.
      For more information about this processor, see [0].
      
      [0] : https://www.arm.com/products/cortex-x
      
      gas/ChangeLog:
      
      2020-10-05  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
      
      	* config/tc-aarch64.c: Update Cortex-X1 feature flags.
      f9b1d75e
    • Przemyslaw Wirkus's avatar
      [PATCH][GAS][arm] Update Cortex-X1 feature flags · a417e439
      Przemyslaw Wirkus authored
      This is feature flags update for Cortex-X1 CPU.
      For more information about this processor, see [0].
      
      [0] : https://www.arm.com/products/cortex-x
      
      gas/ChangeLog:
      
      2020-10-05  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
      
      	* config/tc-arm.c: Update Cortex-X1 feature flags.
      a417e439
    • Nick Clifton's avatar
      Add NetBSD AArch64 Little Endian and Big Endian BFD support. · c0b31344
      Nick Clifton authored
      bfd      * config.bfd (aarch64-*-netbsd*, aarch64_be-*-netbsd*): Add target.
      c0b31344
    • Kamil Rytarowski's avatar
      Add NetBSD AArch64 GAS support. · cc8b27f8
      Kamil Rytarowski authored
      gas	* configure.tgt (aarch64*-*-netbsd*): Add target.
      cc8b27f8
    • Samanta Navarro's avatar
      Fix spelling mistakes · 0cc79db2
      Samanta Navarro authored
      0cc79db2
    • Simon Marchi's avatar
      gdb: avoid unnecessary string copy in auto_load_objfile_script_1 · 7d144117
      Simon Marchi authored
      Assigning the result of STRIP_DRIVE_SPEC to an std::string creates an
      unnecessary copy of the string.  STRIP_DRIVE_SPEC is defined as:
      
        #define STRIP_DRIVE_SPEC(f) ((f) + 2)
      
      So if it is passed a "const char *", it returns a "const char *".  We
      could use a "const char *" intermediary variable instead of an
      std::string, or (as implemented in this patch) just use it directly in
      the concatenation right after.
      
      gdb/ChangeLog:
      
      	* auto-load.c (auto_load_objfile_script_1): Don't use
      	debugfile_holder as temporary variable when stripping drive
      	letter.
      
      Change-Id: If2ccc7a156b22100754d9cdf6778ac7eeb93da4c
      7d144117
    • T.K. Chia's avatar
      i386: Allow non-absolute segment values for lcall/ljmp · 6d96a594
      T.K. Chia authored
      Allow an unresolved or non-absolute symbol as the segment operand of an
      immediate far jump (`ljmp SEG, OFF') or far call (`lcall SEG, OFF').
      
      gas/
      
      2020-10-05  T.K. Chia  <u1049321969@caramail.com>
      
      	PR gas/26694
      	* NEWS: Updated for i386 lcall and ljmp change.
      	* config/tc-i386.c (output_interseg_jump): Allow non-absolute
      	segment operand for immediate lcall and ljmp.
      	* testsuite/gas/i386/jump.d,
      	* testsuite/gas/i386/jump.s,
      	* testsuite/gas/i386/jump16.d,
      	* testsuite/gas/i386/jump16.e,
      	* testsuite/gas/i386/jump16.s: Add tests for non-absolute
      	segment operand for immediate ljmp.
      
      ld/
      
      2020-10-05  T.K. Chia  <u1049321969@caramail.com>
      
      	PR gas/26694
      	* testsuite/ld-i386/ljmp.s,
      	* testsuite/ld-i386/ljmp1.d,
      	* testsuite/ld-i386/ljmp1.s,
      	* testsuite/ld-i386/ljmp2.d,
      	* testsuite/ld-i386/ljmp2.s,
      	* testsuite/ld-x86-64/ljmp1.d,
      	* testsuite/ld-x86-64/ljmp2.d: New testcases.
      	* testsuite/ld-i386/i386.exp,
      	* testsuite/ld-x86-64/x86-64.exp: Run them.
      6d96a594
    • Nick Clifton's avatar
      Update the BFD linker so that it deprecates grouped short options. · 983d925d
      Nick Clifton authored
      	* lexsup.c (parse_args): Generate an error or warning message when
      	multiple short options are used together.
      983d925d