diff options
author | Anton Kolesov <anton.kolesov@synopsys.com> | 2014-02-14 11:56:23 +0400 |
---|---|---|
committer | Shahab Vahedi <shahab@synopsys.com> | 2020-12-22 12:18:40 +0100 |
commit | 04c9f85efcd8df5fc482ce97c0104cc7dd5d19e6 (patch) | |
tree | 175e2da06c71f8c43abce4c0b1802ba25795df7b /gdb/configure.host | |
parent | 46023bbe81355230b4e7b76d3084337823d02362 (diff) | |
download | gdb-04c9f85efcd8df5fc482ce97c0104cc7dd5d19e6.zip gdb-04c9f85efcd8df5fc482ce97c0104cc7dd5d19e6.tar.gz gdb-04c9f85efcd8df5fc482ce97c0104cc7dd5d19e6.tar.bz2 |
gdb: Add native support for ARC in GNU/Linux
With this patch in place it is possible to build a GDB that
can run on ARC (GNU/Linux) hosts for debugging ARC targets.
The "arc-linux-nat.c" is a rather small one that mostly deals
with registers and a few thread related hooks.
v2 [1]:
- Remove "void" from the input of "_initialize_arc_linux_nat ()"
[1] Tom's remark after the first patch
https://sourceware.org/pipermail/gdb-patches/2020-November/173223.html
gdb/ChangeLog:
* Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
* configure.host (host to gdb names): Add arc*-*-linux*.
* configure.nat (gdb_host_cpu): Add arc.
* arc-linux-nat.c: New.
Diffstat (limited to 'gdb/configure.host')
-rw-r--r-- | gdb/configure.host | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/configure.host b/gdb/configure.host index ce52823..e94a19b 100644 --- a/gdb/configure.host +++ b/gdb/configure.host @@ -60,6 +60,7 @@ case "${host_cpu}" in aarch64*) gdb_host_cpu=aarch64 ;; alpha*) gdb_host_cpu=alpha ;; +arc*) gdb_host_cpu=arc ;; arm*) gdb_host_cpu=arm ;; hppa*) gdb_host_cpu=pa ;; i[34567]86*) gdb_host_cpu=i386 ;; @@ -91,6 +92,8 @@ alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) gdb_host=nbsd ;; alpha*-*-openbsd*) gdb_host=nbsd ;; +arc*-*-linux*) gdb_host=linux ;; + arm*-*-freebsd*) gdb_host=fbsd ;; arm*-*-linux*) gdb_host=linux ;; arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) |