diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 18:39:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 18:39:43 +0000 |
commit | 7171232768ab846e00032b7218b2a4ad275b6ae2 (patch) | |
tree | 6b8bbc022efaa3162cedfb3995bfdd247edd67a5 /include | |
parent | 93f2a35e101e29e80f48ef9103a1aafb7ec2036e (diff) | |
download | gdb-7171232768ab846e00032b7218b2a4ad275b6ae2.zip gdb-7171232768ab846e00032b7218b2a4ad275b6ae2.tar.gz gdb-7171232768ab846e00032b7218b2a4ad275b6ae2.tar.bz2 |
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')
-rw-r--r-- | include/gdb/ChangeLog | 4 | ||||
-rw-r--r-- | include/gdb/callback.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index dabaa5b..9ce3db9 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-12-03 Mike Frysinger <vapier@gentoo.org> + + * callback.h (cb_get_string): New prototype. + 2011-04-14 Mike Frysinger <vapier@gentoo.org> * remote-sim.h (sim_complete_command): New prototype. diff --git a/include/gdb/callback.h b/include/gdb/callback.h index a1f79f9..bbc5bb3 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 *); |