[0/4] arc: Add GNU/Linux support

Message ID 20200326125206.13120-1-shahab.vahedi@gmail.com
Headers show
Series
  • arc: Add GNU/Linux support
Related show

Message

Lancelot SIX via Gdb-patches March 26, 2020, 12:52 p.m.
From: Shahab Vahedi <shahab@synopsys.com>


This is a series of changes to enable debugging ARC targets that are
running on a native ARC GNU/Linux system.  Most of these changes are
related to how registers are slightly handled differently compared
to a baremetal scenario.  Each commit illustrate further on those.

After this series, there will come patches that add support for
native ARC gdb/gdbserver.

Anton Kolesov (4):
  arc: Add XML target features for Linux targets
  arc: Recognize registers available on Linux targets
  arc: Add GNU/Linux support for ARC
  arc: Add arc-*-linux regformats

 gdb/Makefile.in                           |   1 +
 gdb/arc-linux-tdep.c                      | 284 ++++++++++++++++++++++
 gdb/arc-tdep.c                            |  84 +++++--
 gdb/arc-tdep.h                            |  22 +-
 gdb/arch/arc.c                            |  40 ++-
 gdb/arch/arc.h                            |  18 +-
 gdb/configure.tgt                         |   6 +
 gdb/doc/gdb.texinfo                       |   3 +-
 gdb/features/Makefile                     |   8 +-
 gdb/features/arc/aux-arcompact-linux.c    |  34 +++
 gdb/features/arc/aux-arcompact-linux.xml  |  31 +++
 gdb/features/arc/aux-v2-linux.c           |  38 +++
 gdb/features/arc/aux-v2-linux.xml         |  35 +++
 gdb/features/arc/core-arcompact-linux.c   |  45 ++++
 gdb/features/arc/core-arcompact-linux.xml |  56 +++++
 gdb/features/arc/core-v2-linux.c          |  48 ++++
 gdb/features/arc/core-v2-linux.xml        |  58 +++++
 gdb/regformats/arc-arcompact-linux.dat    |  42 ++++
 gdb/regformats/arc-v2-linux.dat           |  45 ++++
 19 files changed, 859 insertions(+), 39 deletions(-)
 create mode 100644 gdb/arc-linux-tdep.c
 create mode 100644 gdb/features/arc/aux-arcompact-linux.c
 create mode 100644 gdb/features/arc/aux-arcompact-linux.xml
 create mode 100644 gdb/features/arc/aux-v2-linux.c
 create mode 100644 gdb/features/arc/aux-v2-linux.xml
 create mode 100644 gdb/features/arc/core-arcompact-linux.c
 create mode 100644 gdb/features/arc/core-arcompact-linux.xml
 create mode 100644 gdb/features/arc/core-v2-linux.c
 create mode 100644 gdb/features/arc/core-v2-linux.xml
 create mode 100644 gdb/regformats/arc-arcompact-linux.dat
 create mode 100644 gdb/regformats/arc-v2-linux.dat

-- 
2.26.0