* target.c, target.h (target_read_string): Provide error detection to
[deliverable/binutils-gdb.git] / gdb / valprint.c
index ed3cc643cb86e2e213a654c8afd09294ec51a7e6..7826cf72488cc3c8f9d223655215930f6f456047 100644 (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;
This page took 0.022815 seconds and 4 git commands to generate.