diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-22 16:31:06 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-02-14 06:22:33 -0700 |
commit | 13eb081a83b6f9b07cf4447e52e1d0503bf90211 (patch) | |
tree | 3dfa1010674e668dffef21fe981c45465e4b6942 /gdb/symmisc.c | |
parent | 7b8c55afd07abf1e2e4efbeca4b9a614ce8d4e1e (diff) | |
download | gdb-13eb081a83b6f9b07cf4447e52e1d0503bf90211.zip gdb-13eb081a83b6f9b07cf4447e52e1d0503bf90211.tar.gz gdb-13eb081a83b6f9b07cf4447e52e1d0503bf90211.tar.bz2 |
Remove LA_PRINT_TYPE
This removes the LA_PRINT_TYPE macro, in favor of using ordinary
method calls.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 160278b..114d6bc 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -525,8 +525,8 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, { if (symbol->type ()->name ()) { - LA_PRINT_TYPE (symbol->type (), "", outfile, 1, depth, - &type_print_raw_options); + current_language->print_type (symbol->type (), "", outfile, 1, depth, + &type_print_raw_options); } else { @@ -536,8 +536,8 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, : (symbol->type ()->code () == TYPE_CODE_STRUCT ? "struct" : "union")), symbol->linkage_name ()); - LA_PRINT_TYPE (symbol->type (), "", outfile, 1, depth, - &type_print_raw_options); + current_language->print_type (symbol->type (), "", outfile, 1, depth, + &type_print_raw_options); } fprintf_filtered (outfile, ";\n"); } @@ -548,11 +548,11 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, if (symbol->type ()) { /* Print details of types, except for enums where it's clutter. */ - LA_PRINT_TYPE (symbol->type (), symbol->print_name (), - outfile, - symbol->type ()->code () != TYPE_CODE_ENUM, - depth, - &type_print_raw_options); + current_language->print_type (symbol->type (), symbol->print_name (), + outfile, + symbol->type ()->code () != TYPE_CODE_ENUM, + depth, + &type_print_raw_options); fprintf_filtered (outfile, "; "); } else |