aboutsummaryrefslogtreecommitdiff
path: root/gdb/frv-tdep.h
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2004-03-13 00:16:23 +0000
committerKevin Buettner <kevinb@redhat.com>2004-03-13 00:16:23 +0000
commit7e2958339b115f0c2bd759ee66aa16788fbdac16 (patch)
treec0d1a33469bbbe7cd34a5a75525a5d396df8a058 /gdb/frv-tdep.h
parent60e56bb8e3db676e8676fe209260dd9e9ed5028b (diff)
downloadgdb-7e2958339b115f0c2bd759ee66aa16788fbdac16.zip
gdb-7e2958339b115f0c2bd759ee66aa16788fbdac16.tar.gz
gdb-7e2958339b115f0c2bd759ee66aa16788fbdac16.tar.bz2
Add support for FDPIC executables.
Diffstat (limited to 'gdb/frv-tdep.h')
-rw-r--r--gdb/frv-tdep.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gdb/frv-tdep.h b/gdb/frv-tdep.h
new file mode 100644
index 0000000..3bb9d84
--- /dev/null
+++ b/gdb/frv-tdep.h
@@ -0,0 +1,35 @@
+/* Architecture-dependent code for the Fujitsu FR-V, for GDB, the GNU Debugger.
+ Copyright 2004 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 2 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, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* Enumerate the possible ABIs for FR-V. */
+enum frv_abi
+ {
+ FRV_ABI_EABI,
+ FRV_ABI_FDPIC
+ };
+
+/* Return the FR-V ABI associated with GDBARCH. */
+enum frv_abi frv_abi (struct gdbarch *gdbarch);
+
+/* Fetch the interpreter and executable loadmap addresses (for shared
+ library support) for the FDPIC ABI. Return 0 if successful, -1 if
+ not. (E.g, -1 will be returned if the ABI isn't the FDPIC ABI.) */
+int frv_fdpic_loadmap_addresses (struct gdbarch *gdbarch,
+ CORE_ADDR *interp_addr, CORE_ADDR *exec_addr);