On Fri, Sep 3, 2021 at 10:55 AM Eric Botcazou <botca...@adacore.com> wrote: > > Hi, > > packed array types are sometimes represented with integer types under the hood > in Ada, but we nevertheless need to emit them as array types in the debug info > so we have the types.get_array_descr_info langhook for this purpose; but it is > not invoked from modified_type_die, which is responsible for: > > FAIL: gdb.ada/arrayptr.exp: scenario=minimal: print pa_ptr.all > FAIL: gdb.ada/arrayptr.exp: scenario=minimal: print pa_ptr.all(3) > > in the GDB testsuite. > > Tested on x86-64/Linux, both GCC and GDB, OK for the mainline?
OK, I suppose this should also help some Fortran array descriptor cases? Richard. > > 2021-09-03 Eric Botcazou <ebotca...@adacore.com> > > * dwarf2out.c (modified_type_die): Deal with all array types earlier. > > -- > Eric Botcazou