diff options
author | Jim Wilson <jimw@sifive.com> | 2019-10-16 10:58:37 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2019-10-16 10:58:37 -0700 |
commit | ff371ec99988662e16b061fe0f66e989340f129a (patch) | |
tree | b578c650e2ef593e209d865994d051517067eda3 /gdb/skip.c | |
parent | fec4e896d6834bc6d23b9d666910dce43f2a2184 (diff) | |
download | gdb-ff371ec99988662e16b061fe0f66e989340f129a.zip gdb-ff371ec99988662e16b061fe0f66e989340f129a.tar.gz gdb-ff371ec99988662e16b061fe0f66e989340f129a.tar.bz2 |
Add initial compile command support to RISC-V port.
This adds initial compile command support to the RISC-V port. This fixes
about 228 testsuite failures on a riscv64-linux machine. We need to get
the triplet right which is normally riscv64 or riscv32 instead of the
default riscv. Also, we need to get the compiler options right, since we
don't accept the default -m64 and -mcmodel=large options, so we need to
construct -march and -mabi options which are correct for the target. We
currently don't have info about all extensions used by the target, so this
may need to be adjusted later. For now, I'm assuming that we have all
extensions required by the linux platform spec.
gdb/
* riscv-tdep.c (riscv_gcc_target_options): New.
(riscv_gnu_triplet_regexp): New.
(riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
set_gdbarch_gnu_triplet_regexp.
Change-Id: I315ce8de7789ddf7bdd3b532f917519464941294
Diffstat (limited to 'gdb/skip.c')
0 files changed, 0 insertions, 0 deletions