From 6d2d7c5668f99d1fe9a8da643a43c824b104b337 Mon Sep 17 00:00:00 2001 From: Anton Kolesov Date: Wed, 6 Jul 2016 20:30:29 +0300 Subject: gdbserver: Add GNU/Linux support for ARC 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. --- gdbserver/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdbserver/Makefile.in') diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index 8b80ace..d77a1d0 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in @@ -179,6 +179,7 @@ SFILES = \ $(srcdir)/i387-fp.cc \ $(srcdir)/inferiors.cc \ $(srcdir)/linux-aarch64-low.cc \ + $(srcdir)/linux-arc-low.cc \ $(srcdir)/linux-arm-low.cc \ $(srcdir)/linux-ia64-low.cc \ $(srcdir)/linux-low.cc \ @@ -210,6 +211,7 @@ SFILES = \ $(srcdir)/win32-low.cc \ $(srcdir)/x86-low.cc \ $(srcdir)/../gdb/alloc.c \ + $(srcdir)/../gdb/arch/arc.c \ $(srcdir)/../gdb/arch/arm.c \ $(srcdir)/../gdb/arch/arm-get-next-pcs.c \ $(srcdir)/../gdb/arch/arm-linux.c \ -- cgit v1.1