aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2020-10-23 14:15:15 +0400
committerJoel Brobecker <brobecker@adacore.com>2020-10-23 14:15:15 +0400
commit8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee (patch)
tree46bef547f3b34a8d5c3b769af342850952bf216b
parent1a0ea39913588b4e7ae47e384683784314fca8fe (diff)
downloadbinutils-8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee.zip
binutils-8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee.tar.gz
binutils-8747316ecf9ecf5aaf885b973b0c056fa4c3a2ee.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-typeprint.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 398d9a7..871a31a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-typeprint.c (ada_print_type): Remove superfluous second call
+ to ada_check_typedef.
+
2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
* f-exp.y (f_parse): Rename to...
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 8ee620c..13037c0 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);