c_value_print -- remove hack^2 from HP -- it causes testsuite losses with
authorDavid Taylor <taylor@redhat.com>
Tue, 5 Jan 1999 17:08:19 +0000 (17:08 +0000)
committerDavid Taylor <taylor@redhat.com>
Tue, 5 Jan 1999 17:08:19 +0000 (17:08 +0000)
no real gain.

gdb/ChangeLog
gdb/c-valprint.c

index 4a24c422c0af59b20e1c9ae2a16e4d9b67ffb09f..d5d81f7fba1a28077d28ce7144c23388a6384a89 100644 (file)
@@ -1,5 +1,8 @@
 Tue Jan  5 11:55:57 1999  David Taylor  <taylor@texas.cygnus.com>
 
+       * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
+       testsuite losses with no real gain.
+
        * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
        if tm-*.h hasn't overridden default value.
 
index 6bc49c3f501e6de6ed455b4daedf2a6b8e7c9526..7a9c6bec0d68f1cfb72c19fe6eef669989c8df46 100644 (file)
@@ -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 */
        }
This page took 0.028185 seconds and 4 git commands to generate.