aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-01 21:00:18 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-01 21:00:18 +0000
commit4ad0021ebc16093209b5067aa2b8ed708c34d177 (patch)
tree78dc7893c3e2518f7765d5f0c9e484ed35233f45 /gdb/target.h
parent8b1d1557f36283b8d669eede6fcd603151d67632 (diff)
downloadgdb-4ad0021ebc16093209b5067aa2b8ed708c34d177.zip
gdb-4ad0021ebc16093209b5067aa2b8ed708c34d177.tar.gz
gdb-4ad0021ebc16093209b5067aa2b8ed708c34d177.tar.bz2
* target.c, target.h (target_read_string): Provide error detection to
caller. Put string in malloc'd space, so caller need not impose arbitrary limits. * solib.c (find_solib): Update to use new interface. * irix5-nat.c (find_solib): Read o_path from inferior (clear_solib): Free storage for o_path. * valprint.c (val_print_string): Add comments.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 31e6e89..29f5131 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -359,8 +359,7 @@ target_detach PARAMS ((char *, int));
#define target_prepare_to_store() \
(*current_target->to_prepare_to_store) ()
-extern int
-target_read_string PARAMS ((CORE_ADDR, char *, int));
+extern int target_read_string PARAMS ((CORE_ADDR, char **, int, int *));
extern int
target_read_memory PARAMS ((CORE_ADDR, char *, int));