diff options
author | Michael Frysinger <vapier@gentoo.org> | 2011-12-03 18:39:43 +0000 |
---|---|---|
committer | Michael Frysinger <vapier@gentoo.org> | 2011-12-03 18:39:43 +0000 |
commit | a91ef4839023f7321b5215214fb4adfda73b1b5d (patch) | |
tree | 8c421ef8ae789e9f06109374cee14dc8689e459e /include/gdb/callback.h | |
parent | 5687f6834a0ea23ebd3ea0eb4d5b9db7d7c7449b (diff) | |
download | cygnal-a91ef4839023f7321b5215214fb4adfda73b1b5d.tar.gz cygnal-a91ef4839023f7321b5215214fb4adfda73b1b5d.tar.bz2 cygnal-a91ef4839023f7321b5215214fb4adfda73b1b5d.zip |
sim: export cb_get_string for people to use
The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space. So rename and export it
for other people to use.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/gdb/callback.h')
-rw-r--r-- | include/gdb/callback.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gdb/callback.h b/include/gdb/callback.h index a1f79f94d..bbc5bb348 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -324,6 +324,9 @@ int cb_is_stdin (host_callback *, int); int cb_is_stdout (host_callback *, int); int cb_is_stderr (host_callback *, int); +/* Read a string out of the target. */ +int cb_get_string (host_callback *, CB_SYSCALL *, char *, int, unsigned long); + /* Perform a system call. */ CB_RC cb_syscall (host_callback *, CB_SYSCALL *); |