"Michael" == Michael Eager <eager@eagerm.com> writes:
Michael> I eliminated the annotations and made the other requested changes.
Michael> + if (strlen (SYMBOL_LINKAGE_NAME (msymbol.minsym))
Michael> + > display_linkage_name_length)
Michael> + {
I think this should also check ui_out_is_mi_like_p.
Michael> + /* Print linkage name after source name if requested and different. */
Michael> + if ((display_linkage_name || ui_out_is_mi_like_p (uiout))
Michael> + && linkname != NULL && strcmp (funname, linkname) != 0)
Michael> + {
Michael> + ui_out_text (uiout, " [");
Michael> +
Michael> + if (strlen (linkname) > display_linkage_name_length)
Michael> + {
Here too.
Michael> + char *lname = alloca (display_linkage_name_length + 4);
Michael> +
Michael> + strncpy (lname, linkname, display_linkage_name_length);
Michael> + lname[display_linkage_name_length] = '\0';
Michael> + strcat (lname, "...");
Michael> + ui_out_text (uiout, lname);
Here you emit it as text...
Michael> + }
Michael> + else
Michael> + ui_out_field_string (uiout, "linkage name", linkname);
... here with a field name with spaces...
Michael> +
Michael> + ui_out_text (uiout, "]");
Michael> + ui_out_field_stream (uiout, "linkage_name", stb);
... and here with an underscore. Another part of the patch used
"linkage-name", with a hyphen. I think the hyphen one should be
preferred.
Also, this last bit looks the same as an earlier revision to me.
"stb" simply isn't valid here -- your code isn't printing to it, it was
set up earlier; I'm surprised it is even still live.