mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 10:30:46 +00:00
* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user