public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [AArch64] Fix erroneous use of spu architecture bfd
@ 2020-01-05 11:58 Luis Machado
  0 siblings, 0 replies; only message in thread
From: Luis Machado @ 2020-01-05 11:58 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6a5206eb2740e769bcb0500bdbc5998801d90ef6

commit 6a5206eb2740e769bcb0500bdbc5998801d90ef6
Author: Luis Machado <luis.machado@linaro.org>
Date:   Fri Jan 3 16:08:16 2020 -0300

    [AArch64] Fix erroneous use of spu architecture bfd
    
    While investigating some SVE code, i noticed the use of two spu bfd variables.
    
    This looks like an oversight, as the "id" field is available for non-spu
    architectures as well, even though its primary use was the Cell BE
    architecture.
    
    gdb/ChangeLog:
    
    2020-01-05  Luis Machado  <luis.machado@linaro.org>
    
    	* aarch64-linux-nat.c
    	(aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
    	and bfd_mach_aarch64.

Diff:
---
 gdb/ChangeLog           | 6 ++++++
 gdb/aarch64-linux-nat.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7bd8897..735333f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2020-01-05  Luis Machado  <luis.machado@linaro.org>
+
+	* aarch64-linux-nat.c
+	(aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
+	and bfd_mach_aarch64.
+
 2020-01-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
 	* ui-file.c (stdio_file::can_emit_style_escape)
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 62f5cdb..4e712eb 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -970,7 +970,7 @@ aarch64_linux_nat_target::thread_architecture (ptid_t ptid)
      unavailable, to distinguish from an unset value of 0.  */
   struct gdbarch_info info;
   gdbarch_info_init (&info);
-  info.bfd_arch_info = bfd_lookup_arch (bfd_arch_spu, bfd_mach_spu);
+  info.bfd_arch_info = bfd_lookup_arch (bfd_arch_aarch64, bfd_mach_aarch64);
   info.id = (int *) (vq == 0 ? -1 : vq);
   return gdbarch_find_by_info (info);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-05 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-05 11:58 [binutils-gdb] [AArch64] Fix erroneous use of spu architecture bfd Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).