aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-07-18 10:45:14 -0600
committerTom Tromey <tromey@adacore.com>2023-07-21 07:25:23 -0600
commit83f362cf8f9539cefdd5df709a347a5396d23c76 (patch)
tree19e12d7ed93fd600290c0e672690da32cbaf62e0 /gdb/ada-valprint.c
parent386d30593e4a1b1267e03c72b812403d9038a75b (diff)
downloadgdb-83f362cf8f9539cefdd5df709a347a5396d23c76.zip
gdb-83f362cf8f9539cefdd5df709a347a5396d23c76.tar.gz
gdb-83f362cf8f9539cefdd5df709a347a5396d23c76.tar.bz2
Remove ancient Ada workaround
I ran across this very old code in gdb's Ada support. After a bit of archaeology, we couldn't determine what bug this might have been working around. It is no longer needed, so this patch removes it. As this is entirely Ada-specific and was reviewed and tested at AdaCore, I'm checking it in.
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r--gdb/ada-valprint.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 0d5916c..dacc72d 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -844,12 +844,6 @@ ada_val_print_struct_union (struct value *value,
int recurse,
const struct value_print_options *options)
{
- if (ada_is_bogus_array_descriptor (value->type ()))
- {
- gdb_printf (stream, "(...?)");
- return;
- }
-
gdb_printf (stream, "(");
if (print_field_values (value, value, stream, recurse, options,
@@ -1089,13 +1083,6 @@ ada_value_print (struct value *val0, struct ui_file *stream,
gdb_printf (stream, ") ");
}
}
- else if (ada_is_bogus_array_descriptor (type))
- {
- gdb_printf (stream, "(");
- type_print (type, "", stream, -1);
- gdb_printf (stream, ") (...?)");
- return;
- }
opts = *options;
opts.deref_ref = true;