From 8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 23 Oct 2020 14:15:15 +0400 Subject: [PATCH] ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef This commit removes a call to ada_check_typedef which has already been done a few lines earlier in the same function, so the second one is superfluous. gdb/ChangeLog: * ada-typeprint.c (ada_print_type): Remove superfluous second call to ada_check_typedef. --- gdb/ChangeLog | 5 +++++ gdb/ada-typeprint.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 398d9a7fd10..871a31a6b8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-10-23 Joel Brobecker + + * ada-typeprint.c (ada_print_type): Remove superfluous second call + to ada_check_typedef. + 2020-10-23 Andrew Burgess * f-exp.y (f_parse): Rename to... diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 8ee620c36ad..13037c049c1 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -967,9 +967,6 @@ ada_print_type (struct type *type0, const char *varstring, return; } - if (show > 0) - type = ada_check_typedef (type); - if (is_var_decl && type->code () != TYPE_CODE_FUNC) fprintf_filtered (stream, "%.*s: ", ada_name_prefix_len (varstring), varstring); -- 2.30.2