summaryrefslogtreecommitdiff
path: root/gdb/or1k-linux-tdep.h
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-10-09 06:26:30 +0900
committerStafford Horne <shorne@gmail.com>2021-10-29 05:22:12 +0900
commita45b1e66c5da4b8f5f9c39245ad4ea4769e3420a (patch)
treea95413bec369ebb3917037acbdec512edc77923e /gdb/or1k-linux-tdep.h
parentd33637719631e02e3880761b734b54a02e41b06d (diff)
downloadbinutils-gdb-a45b1e66c5da4b8f5f9c39245ad4ea4769e3420a.tar.gz
gdb: or1k: add native linux support
This patch adds support for running gdb natively on OpenRISC linux. Debugging support is provided via the linux PTRACE interface which is mostly handled by GDB genric code. This patch provides the logic of how to read and write the ptrace registers between linux and GDB. Single stepping is privided in a separate patch.
Diffstat (limited to 'gdb/or1k-linux-tdep.h')
-rw-r--r--gdb/or1k-linux-tdep.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/or1k-linux-tdep.h b/gdb/or1k-linux-tdep.h
new file mode 100644
index 00000000000..19294669e64
--- /dev/null
+++ b/gdb/or1k-linux-tdep.h
@@ -0,0 +1,26 @@
+/* Target-dependent code for GNU/Linux on OpenRISC.
+
+ Copyright (C) 2021 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 OR1K_LINUX_TDEP_H
+#define OR1K_LINUX_TDEP_H
+
+/* Target descriptions. */
+extern struct target_desc *tdesc_or1k_linux;
+
+#endif /* OR1K_LINUX_TDEP_H */