public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed/Ada] ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef
@ 2020-10-23  5:47 Joel Brobecker
  0 siblings, 0 replies; only message in thread
From: Joel Brobecker @ 2020-10-23  5:47 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

Hello,

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.

Tested on x86_64-linux.
Reviewed internally at AdaCore by Tom.

Pushed to master.

Cheers,
-- 
Joel

---
 gdb/ChangeLog       | 5 +++++
 gdb/ada-typeprint.c | 3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 282100af214..428eb2234ab 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-22  Hannes Domani  <ssbssa@yahoo.de>
 
 	* stabsread.c (read_member_functions): Remove gdb_assert.
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.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-23  5:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23  5:47 [pushed/Ada] ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).