diff options
author | Maciej W. Rozycki <macro@wdc.com> | 2020-02-05 17:21:12 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@wdc.com> | 2020-02-05 17:21:12 +0000 |
commit | f6480e70001df1c8151362cd4621578bcb293224 (patch) | |
tree | 00ede00c1e84b7f816bad6097978bfe407debff7 /gdb/configure.nat | |
parent | af0ac53c4508aa1adf85d32191105f727144db1c (diff) | |
download | gdb-f6480e70001df1c8151362cd4621578bcb293224.zip gdb-f6480e70001df1c8151362cd4621578bcb293224.tar.gz gdb-f6480e70001df1c8151362cd4621578bcb293224.tar.bz2 |
RISC-V/Linux/native: Factor out target description determination
In preparation for RISC-V/Linux `gdbserver' support factor out parts of
native target description determination code that can be shared between
the programs.
gdb/
* nat/riscv-linux-tdesc.h: New file.
* nat/riscv-linux-tdesc.c: New file, taking code from...
* riscv-linux-nat.c (riscv_linux_nat_target::read_description):
... here.
* configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
NATDEPFILES.
Diffstat (limited to 'gdb/configure.nat')
-rw-r--r-- | gdb/configure.nat | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/configure.nat b/gdb/configure.nat index fb4522f..3fc6f5c 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -276,7 +276,8 @@ case ${gdb_host} in ;; riscv*) # Host: RISC-V, running Linux - NATDEPFILES="${NATDEPFILES} riscv-linux-nat.o" + NATDEPFILES="${NATDEPFILES} riscv-linux-nat.o \ + nat/riscv-linux-tdesc.o" ;; s390) # Host: S390, running Linux |