diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-24 20:24:06 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-24 20:24:06 +0000 |
commit | e27da962b9eeee5ae8f18b89f6393d858ddbbee0 (patch) | |
tree | 0dea2c1656f90b50ba9c8b387391e1db7e92b19b /gdb/target.h | |
parent | d4d4658cae242484689634e476a4b51366b5e277 (diff) | |
download | gdb-e27da962b9eeee5ae8f18b89f6393d858ddbbee0.tar.gz |
2003-10-24 Andrew Cagney <cagney@redhat.com>
* target.c: Include "gdbcore.h".
(get_target_memory, get_target_memory_unsigned): New functions.
* target.h (get_target_memory, get_target_memory_unsigned): Declare.
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
Use get_target_memory_unsigned.
* Makefile.in (target.o): Update dependencies.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 03a7fd8803b..2fb3381e7a2 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -248,6 +248,18 @@ extern LONGEST target_write (struct target_ops *ops, enum target_object object, const char *annex, const void *buf, ULONGEST offset, LONGEST len); + +/* Wrappers to target read/write that perform memory transfers. They + throw an error if the memory transfer fails. + + NOTE: cagney/2003-10-23: The naming schema is lifted from + "frame.h". The parameter order is lifted from get_frame_memory, + which in turn lifted it from read_memory. */ + +extern void get_target_memory (struct target_ops *ops, CORE_ADDR addr, + void *buf, LONGEST len); +extern ULONGEST get_target_memory_unsigned (struct target_ops *ops, + CORE_ADDR addr, int len); /* If certain kinds of activity happen, target_wait should perform |