From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id A94AE3858436; Mon, 4 Oct 2021 08:47:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A94AE3858436 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4110] [Ada] Emit debugging information for TSD object X-Act-Checkin: gcc X-Git-Author: Eric Botcazou X-Git-Refname: refs/heads/master X-Git-Oldrev: 935b35674947fe91e204521626c15090621e41ae X-Git-Newrev: 602176ae83ad265a1dfa061c8b85e24376c22028 Message-Id: <20211004084723.A94AE3858436@sourceware.org> Date: Mon, 4 Oct 2021 08:47:23 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2021 08:47:23 -0000 https://gcc.gnu.org/g:602176ae83ad265a1dfa061c8b85e24376c22028 commit r12-4110-g602176ae83ad265a1dfa061c8b85e24376c22028 Author: Eric Botcazou Date: Mon Aug 23 18:16:05 2021 +0200 [Ada] Emit debugging information for TSD object gcc/ada/ * exp_disp.adb (Make_DT): Copy the Needs_Debug_Info flag from the type onto the TSD object. Diff: --- gcc/ada/exp_disp.adb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/ada/exp_disp.adb b/gcc/ada/exp_disp.adb index 72f4e7c90b7..6ade54be177 100644 --- a/gcc/ada/exp_disp.adb +++ b/gcc/ada/exp_disp.adb @@ -5703,6 +5703,11 @@ package body Exp_Disp is Set_Is_True_Constant (TSD, Building_Static_DT (Typ)); + -- The debugging information for type Ada.Tags.Type_Specific_Data is + -- needed by the debugger in order to display values of tagged types. + + Set_Needs_Debug_Info (TSD, Needs_Debug_Info (Typ)); + -- Initialize or declare the dispatch table object if not Has_DT (Typ) then