* callback.h: Include "bfd.h".
[deliverable/binutils-gdb.git] / include / gdb / callback.h
index cb06e572ac10bd37b891376a0c89334d1f938062..08b1b6b357230a8303944824118a9d4faf0d51ff 100644 (file)
@@ -56,6 +56,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <varargs.h>
 #endif
 #endif
+/* Needed for enum bfd_endian.  */
+#include "bfd.h"
 \f
 /* Mapping of host/target values.  */
 /* ??? For debugging purposes, one might want to add a string of the
@@ -151,6 +153,8 @@ struct host_callback_struct
      Example: "st_dev,4:st_ino,4:st_mode,4:..."  */
   const char *stat_map;
 
+  enum bfd_endian target_endian;
+
   /* Marker for those wanting to do sanity checks.
      This should remain the last member of this struct to help catch
      miscompilation errors. */
@@ -280,6 +284,9 @@ int cb_host_to_target_signal PARAMS ((host_callback *, int));
    Result is size of target stat struct or 0 if error.  */
 int cb_host_to_target_stat PARAMS ((host_callback *, const struct stat *, PTR));
 
+/* Translate a value to target endian.  */
+void cb_store_target_endian PARAMS ((host_callback *, char *, int, long));
+
 /* Perform a system call.  */
 CB_RC cb_syscall PARAMS ((host_callback *, CB_SYSCALL *));
 
This page took 0.032883 seconds and 4 git commands to generate.