* valprint.c (val_print_string): If errcode is set, always print
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 28 Feb 1994 22:44:21 +0000 (22:44 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 28 Feb 1994 22:44:21 +0000 (22:44 +0000)
commitc8ff77bea3a9957c2299eb1f3121ddfca87c08c9
treeda9af5c82358b0a4e5987e6be1ef496e1aabe1f7
parent994fde6d800317a13366f8aac1bf7a68993fa90e
* valprint.c (val_print_string): If errcode is set, always print
an error, regardless of force_ellipsis.  In the non-EIO case,
just print the error message rather than calling error().  Don't
access *(bufptr-1) if bufptr points to the start of the buffer.
When looking for '\0', don't increment bufptr and addr if bufptr
started out already at limit.  If an error happens on fetching the
first character, don't print the string.
gdb/ChangeLog
gdb/valprint.c