]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Avoid crash with 'length
authorTom Tromey <tromey@adacore.com>
Tue, 21 Jan 2025 17:49:07 +0000 (10:49 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 22 Jan 2025 15:08:25 +0000 (08:08 -0700)
commitfbfadf96594a120f820457f03d7cf20b5e8ad597
tree71a599c44e0ca88cb196bf82a4ec07a02a58baee
parent63efd116baafd6210a65b29973766c3fa264098f
Avoid crash with 'length

While testing gnat-llvm, I found a gdb crash when applying 'length to
a non-array type.  This patch fixes the crash.
gdb/ada-lang.c
gdb/testsuite/gdb.ada/p-bounds.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/p-bounds/main.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/p-bounds/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/p-bounds/pck.ads [new file with mode: 0644]