From: Joel Brobecker Date: Fri, 23 Oct 2020 10:15:15 +0000 (+0400) Subject: ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee;p=binutils-gdb.git 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. --- 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);