From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd24ffa36ebe3ef6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-04 19:23:07 PST Path: bga.com!news.sprintlink.net!cs.utexas.edu!swrinde!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: comar@cs.nyu.edu (Cyrille Comar) Newsgroups: comp.lang.ada Subject: Re: debugging GNAT programs Date: 4 Mar 1995 09:07:24 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3j9s6s$1kg@lang8.cs.nyu.edu> References: NNTP-Posting-Host: lang8.cs.nyu.edu Date: 1995-03-04T09:07:24-05:00 List-Id: vladimir@speedy.intrepid.com (Vladimir Vukicevic) writes: : In article <1995Mar2.095243.14051@sei.cmu.edu> marc@sei.cmu.edu (Marc : Graham) writes: : > (Anyway, gdb debugs the generated c code, not the Ada code. Which : > makes it pretty useless.) I have been extensively debugging GNAT code (written in Ada95) for 2 years with gdb and found it quite useful. The only awkward thing is that you have to use the C syntax for expressions but this is managable... : : Another thing to know is that if you want to step into a dispatching call, : you have to step through some internal gnat procedures which find the address : of the real function in the vtable. Vladimir, The procedure you are refering to (Get_Prim_Op_Address) is an artifact that should be invisible to the direct user and will be as soon as "inter-module inlining" is working: all the Dispatch-Table access functions will be unconditionnally inlined... The only purpose of this interface is to make the communication with other OO-Languages possible as it is done now for C++. -- ------------------------------------------------------------------------ Cyrille Comar, E-mail: comar@cs.nyu.edu Gnat Project US phone: (212) 998-3489