diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-01 21:00:18 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-01 21:00:18 +0000 |
commit | 4ad0021ebc16093209b5067aa2b8ed708c34d177 (patch) | |
tree | 78dc7893c3e2518f7765d5f0c9e484ed35233f45 /gdb/valprint.c | |
parent | 8b1d1557f36283b8d669eede6fcd603151d67632 (diff) | |
download | gdb-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/valprint.c')
-rw-r--r-- | gdb/valprint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index ed3cc64..7826cf7 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -710,6 +710,13 @@ value_print_array_elements (val, stream, format, pretty) byte, otherwise printing proceeds (including null bytes) until either print_max or LEN characters have been printed, whichever is smaller. */ +/* FIXME: All callers supply LEN of zero. Supplying a non-zero LEN is + pointless, this routine just then becomes a convoluted version of + target_read_memory_partial. Removing all the LEN stuff would simplify + this routine enormously. + + FIXME: Use target_read_string. */ + int val_print_string (addr, len, stream) CORE_ADDR addr; |