]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve protection against wrong use from GDB
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 19 Dec 2024 23:09:15 +0000 (00:09 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 7 Jan 2025 12:33:35 +0000 (13:33 +0100)
commit0a71f5b5ca5bac57c660f563940b8baeb3552870
tree356fa16839e70985113139e29ff99138d35371e9
parente8aadcb3518359c13fe5bd8fb7804d9cd60b4cad
ada: Improve protection against wrong use from GDB

A code cleanup in routine intended to be used from DGB, suggested by running
GNATcheck rule Boolean_Negations. However, this code can be tuned to protect
against more illegal uses.

gcc/ada/ChangeLog:

* exp_disp.adb (Write_DT): Add guards that prevent crashes on illegal
node numbers.
gcc/ada/exp_disp.adb