diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-01-28 03:27:02 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-01-28 03:27:02 +0000 |
commit | 9e34a4010fa5aa9abbe36d692474d55ad6a6bb97 (patch) | |
tree | 62520b8d7bcb8e3f3f13a4e0f9ad4abb47375c12 /include/gdb | |
parent | 1815fdeab41b5dab9d6ab70824aef3a4c2574bdb (diff) | |
download | cygnal-9e34a4010fa5aa9abbe36d692474d55ad6a6bb97.tar.gz cygnal-9e34a4010fa5aa9abbe36d692474d55ad6a6bb97.tar.bz2 cygnal-9e34a4010fa5aa9abbe36d692474d55ad6a6bb97.zip |
* callback.h: Include "bfd.h".
(struct host_callback_struct): New member target_endian.
(cb_store_target_endian): Declare.
Diffstat (limited to 'include/gdb')
-rw-r--r-- | include/gdb/ChangeLog | 6 | ||||
-rw-r--r-- | include/gdb/callback.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index ce46172b3..d07d00d16 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-01-28 Hans-Peter Nilsson <hp@axis.com> + + * callback.h: Include "bfd.h". + (struct host_callback_struct): New member target_endian. + (cb_store_target_endian): Declare. + 2004-12-15 Hans-Peter Nilsson <hp@axis.com> * callback.h (CB_SYS_truncate, CB_SYS_ftruncate): New macros. diff --git a/include/gdb/callback.h b/include/gdb/callback.h index cb06e572a..08b1b6b35 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -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" /* 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 *)); |