* 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.
This commit is contained in:
Jim Kingdon
1994-03-01 21:00:18 +00:00
parent 8b1d1557f3
commit 4ad0021ebc
6 changed files with 487 additions and 51 deletions

View File

@@ -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;