aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-26 01:23:06 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-26 01:23:06 +0000
commit5ce7426fb88e62da9490e1b8376124e4335fd103 (patch)
tree1b65d264f26c3e4cd5fa6a201db7dcbe15effed5 /gdb/valprint.c
parent471c3c3f7481de564b87c72f9d082c715a22b8fc (diff)
downloadgdb-5ce7426fb88e62da9490e1b8376124e4335fd103.zip
gdb-5ce7426fb88e62da9490e1b8376124e4335fd103.tar.gz
gdb-5ce7426fb88e62da9490e1b8376124e4335fd103.tar.bz2
* valprint.c (val_print): Remove inaccurate comment about what
types can be stub types.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 1d1fbc0..999c9dd 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -136,8 +136,7 @@ val_print (type, valaddr, address, stream, format, deref_ref, recurse, pretty)
/* Ensure that the type is complete and not just a stub. If the type is
only a stub and we can't find and substitute its complete type, then
- print appropriate string and return. Typical types that my be stubs
- are structs, unions, and C++ methods. */
+ print appropriate string and return. */
check_stub_type (type);
if (TYPE_FLAGS (type) & TYPE_FLAG_STUB)
@@ -798,7 +797,12 @@ val_print_string (addr, len, stream)
++addr;
++bufptr;
if (bufptr[-1] == '\0')
- break;
+ {
+ /* We don't care about any error which happened after
+ the NULL terminator. */
+ errcode = 0;
+ break;
+ }
}
}
} while (errcode == 0 /* no error */