summaryrefslogtreecommitdiff
path: root/gdb/riscv-ravenscar-thread.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-04-19 10:41:40 -0600
committerTom Tromey <tromey@adacore.com>2019-12-12 11:47:40 -0700
commitdb3ad2f031d4da70db35977abbcede0399d81d6b (patch)
treed1f99732683aad6b7ff3c45a573668215d7f86c6 /gdb/riscv-ravenscar-thread.h
parent2ffe5b9c792fe78dbbcbe31b6fea751285df8876 (diff)
downloadbinutils-gdb-db3ad2f031d4da70db35977abbcede0399d81d6b.tar.gz
Ravenscar port for RISC-V
This adds Ravenscar support to gdb for RISC-V targets. This was tested internally using AdaCore's test suite and qemu. gdb/ChangeLog 2019-12-12 Tom Tromey <tromey@adacore.com> * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o. (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h. (ALLDEPFILES): Add riscv-ravenscar-thread.c. * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o. * riscv-ravenscar-thread.c: New file. * riscv-ravenscar-thread.h: New file. * riscv-tdep.c (riscv_gdbarch_init): Call register_riscv_ravenscar_ops. Change-Id: Ic47a3b3cfbbe80c2c82a5f48d2e0481845cac8b0
Diffstat (limited to 'gdb/riscv-ravenscar-thread.h')
-rw-r--r--gdb/riscv-ravenscar-thread.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/riscv-ravenscar-thread.h b/gdb/riscv-ravenscar-thread.h
new file mode 100644
index 00000000000..d360ad7417a
--- /dev/null
+++ b/gdb/riscv-ravenscar-thread.h
@@ -0,0 +1,27 @@
+/* Ravenscar RISC-V target support.
+
+ Copyright (C) 2019 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef RISCV_RAVENSCAR_THREAD_H
+#define RISCV_RAVENSCAR_THREAD_H
+
+struct gdbarch;
+
+extern void register_riscv_ravenscar_ops (struct gdbarch *gdbarch);
+
+#endif