Preserve name of range types
authorTom Tromey <tromey@adacore.com>
Mon, 20 Mar 2023 16:14:51 +0000 (10:14 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Mar 2023 16:20:52 +0000 (10:20 -0600)
commit4bfcb286dd1f85f74616f169b4ca9db7677fab5b
treec039b0a57a6c26a63c486e19b31819880f4796a7
parent84bc96de16b64ae67460bf4896379a7543cecfd3
Preserve name of range types

The type-allocation patches introduced a small regression that was
picked up by the AdaCore internal test suite.  Previously, the name of
a range type was preserved by resolve_dynamic_range, but now it is
not.  This patch changes this code to preserve the name.

Reviewed-By: Bruno Larsen <blarsen@redhat.com>
gdb/gdbtypes.c
gdb/testsuite/gdb.ada/dyn-range.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/dyn-range/dyn.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/dyn-range/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/dyn-range/pck.ads [new file with mode: 0644]