[Ada] Emit DW_AT_GNU_bias with -fgnat-encodings=gdb
authorTom Tromey <tromey@adacore.com>
Thu, 19 Sep 2019 08:14:57 +0000 (08:14 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 19 Sep 2019 08:14:57 +0000 (08:14 +0000)
commit4736041b5aa5681c44cbb9c183b11bbb781492fc
tree6457e5e7f50b252680c6f30eb9964ea84d219248
parent0c27222c60b26cd21588576f140abd04f1d8a853
[Ada] Emit DW_AT_GNU_bias with -fgnat-encodings=gdb

Emit DW_AT_GNU_bias with -fgnat-encodings=gdb.  gdb implements this,
but not the encoded variant.

2019-09-19  Tom Tromey  <tromey@adacore.com>

gcc/ada/

* gcc-interface/misc.c (gnat_get_type_bias): Return the bias
when -fgnat-encodings=gdb.

gcc/testsuite/

* gnat.dg/bias1.adb: New testcase.

From-SVN: r275958
gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/bias1.adb [new file with mode: 0644]