forked from Imagelibrary/binutils-gdb
gdb: Don't print a newline in language la_print_typedef methods
When calling the language la_print_typedef method, don't include a newline at the end, instead print the newline from the users of la_print_typedef. This change will be useful in a later commit when the output from la_print_typedef will be placed into an MI output field, in which case the trailing newline is not required. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-typeprint.c (ada_print_typedef): Don't print newline at the end. * c-typeprint.c (c_print_typedef): Likewise. * f-typeprint.c (f_print_typedef): Likewise. * m2-typeprint.c (m2_print_typedef): Likewise. * p-typeprint.c (pascal_print_typedef): Likewise. * rust-lang.c (rust_print_typedef): Likewise. * symtab.c (print_symbol_info): Print a newline after calling typedef_print. Change-Id: I6e697ea1ec0eadaa31aefaea959b2055188d680d
This commit is contained in:
@@ -211,7 +211,7 @@ c_print_typedef (struct type *type,
|
||||
SYMBOL_LINKAGE_NAME (new_symbol)) != 0
|
||||
|| TYPE_CODE (SYMBOL_TYPE (new_symbol)) == TYPE_CODE_TYPEDEF)
|
||||
fprintf_filtered (stream, " %s", SYMBOL_PRINT_NAME (new_symbol));
|
||||
fprintf_filtered (stream, ";\n");
|
||||
fprintf_filtered (stream, ";");
|
||||
}
|
||||
|
||||
/* If TYPE is a derived type, then print out derivation information.
|
||||
|
||||
Reference in New Issue
Block a user