* valprint.c (val_print_fields): Call fprint_symbol to get
authorFred Fish <fnf@specifix.com>
Wed, 24 Jun 1992 06:24:51 +0000 (06:24 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 24 Jun 1992 06:24:51 +0000 (06:24 +0000)
automatic C++ demangling for mangled field names.

gdb/ChangeLog
gdb/valprint.c

index 4a4ddda6a9a835df185e00414860236fc3d48709..6aaec86b2784038d5d6a35e48220a1605a3d85be 100644 (file)
@@ -24,6 +24,8 @@ Tue Jun 23 21:46:26 1992  Fred Fish  (fnf@cygnus.com)
        ptrace().
        * cadillac.c (kernel_dispatch):  Make return type void.
        * cadillac.c (iosig):  Signal handlers take one int arg.
        ptrace().
        * cadillac.c (kernel_dispatch):  Make return type void.
        * cadillac.c (iosig):  Signal handlers take one int arg.
+       * valprint.c (val_print_fields):  Call fprint_symbol to get
+       automatic C++ demangling for mangled field names.
 
 Mon Jun 22 20:18:06 1992  Fred Fish  (fnf@cygnus.com)
 
 
 Mon Jun 22 20:18:06 1992  Fred Fish  (fnf@cygnus.com)
 
index 8f1262d1316b2a3c995cce031a13f31b3aa4b0a5..7a6da4086ea0292dcbdc7a3f16df73080539b8b3 100644 (file)
@@ -539,14 +539,14 @@ val_print_fields (type, valaddr, stream, format, recurse, pretty, dont_print)
                fputs_filtered ("\"( ptr \"", stream);
              else
                fputs_filtered ("\"( nodef \"", stream);
                fputs_filtered ("\"( ptr \"", stream);
              else
                fputs_filtered ("\"( nodef \"", stream);
-             fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+             fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
              fputs_filtered ("\" \"", stream);
              fputs_filtered ("\" \"", stream);
-             fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+             fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
              fputs_filtered ("\") \"", stream);
            }
          else
            {
              fputs_filtered ("\") \"", stream);
            }
          else
            {
-             fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+             fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
              fputs_filtered (" = ", stream);
            }
          if (TYPE_FIELD_PACKED (type, i))
              fputs_filtered (" = ", stream);
            }
          if (TYPE_FIELD_PACKED (type, i))
This page took 0.028642 seconds and 4 git commands to generate.