diff options
author | David Taylor <taylor@redhat.com> | 1999-01-05 17:08:19 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 1999-01-05 17:08:19 +0000 |
commit | eceede31002bfd9e315b7fd9cb5610c1d65d2ceb (patch) | |
tree | 1dc572c4c25e1e0443d04df8d6b1ff72fc113686 /gdb/c-valprint.c | |
parent | 2819d3d65f1662f62cc984808ebc794cce65885d (diff) | |
download | binutils-gdb-eceede31002bfd9e315b7fd9cb5610c1d65d2ceb.tar.gz |
c_value_print -- remove hack^2 from HP -- it causes testsuite losses with
no real gain.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 6bc49c3f501..7a9c6bec0d6 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -468,17 +468,10 @@ c_value_print (val, stream, format, pretty) { /* Hack: remove (char *) for char strings. Their type is indicated by the quoted string anyway. */ - /* Hack^2: ensure that const char *, const unsigned char * - come out without the type but the volatile variants - and the signed variants don't. */ if (TYPE_CODE (type) == TYPE_CODE_PTR && TYPE_NAME (type) == NULL && TYPE_NAME (TYPE_TARGET_TYPE (type)) != NULL && - STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char") && - !TYPE_VOLATILE (TYPE_TARGET_TYPE (type)) && - (TYPE_UNSIGNED (TYPE_TARGET_TYPE (type)) || TYPE_NOSIGN (TYPE_TARGET_TYPE (type))) && - !TYPE_VOLATILE (type) && - !TYPE_CONST (type)) + STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char")) { /* Print nothing */ } |