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.
This commit is contained in:
Tom Tromey
2023-07-18 10:45:14 -06:00
parent 386d30593e
commit 83f362cf8f
4 changed files with 0 additions and 35 deletions

View File

@@ -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;