This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/apinski/gdb-ilp32-gdbserver] Handle ILP32 AARCH64 a little bit better.


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

commit 4a733949149f14b08153b03cfa5a13febdedb2c7
Author: Andrew Pinski <apinski@cavium.com>
Date:   Fri Aug 26 16:31:29 2016 -0700

    Handle ILP32 AARCH64 a little bit better.
    
    Signed-off-by: Andrew Pinski <apinski@cavium.com>

Diff:
---
 gdb/gdbserver/linux-aarch64-low.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index e54a8ba..4c83fdc 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -484,7 +484,10 @@ aarch64_linux_read_description (void)
 
   is_elf64 = linux_pid_exe_is_elf_64_file (tid, &machine);
 
-  if (is_elf64)
+  if (sizeof (void *) == 4 && is_elf64)
+    error (_("Can't debug 64-bit process with 32-bit GDBserver"));
+
+  if (machine == EM_AARCH64)
     return tdesc_aarch64;
   else
     return tdesc_arm_with_neon;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]