comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Irreflective girl, our Ada
Date: Fri, 23 Mar 2012 14:36:04 -0700 (PDT)
Date: 2012-03-23T14:36:04-07:00	[thread overview]
Message-ID: <8960399.806.1332538564809.JavaMail.geo-discussion-forums@ynjx8> (raw)
In-Reply-To: <16102793.315.1332456502956.JavaMail.geo-discussion-forums@vbyj18>

On Thursday, March 22, 2012 5:48:22 PM UTC-5, marius63 wrote:
> I am trying to know a subprogram name from its access value. GNAT has part (all?) of the device in place for this.
> 
>    GNAT.Traceback.Symbolic.Symbolic_Traceback
>     ((1 => My_Subprogram'Code_Address))
> 
> gives the desired name. Note that must be 'Code_Address, not 'Address (this is important). And compile with the -g option, etc.
> 
> But what I have is a pointer to a subprogram (if I had the identifier I would not need this), and alas
> 
>    GNAT.Traceback.Symbolic.Symbolic_Traceback
>     ((1 => My_Subprogram_Ptr.all'Code_Address))
> 
> does not compile. Is there a way to convert Access to Code_Address (not Address)? Or any other trick to get the name of a subprogram identified solely by its Access value?
> 
> Thanks a lot.

Have you tried the Address_to_Access conversions?



  reply	other threads:[~2012-03-23 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 22:48 Irreflective girl, our Ada Marius Amado-Alves
2012-03-23 21:36 ` Shark8 [this message]
2012-03-23 23:23   ` Marius Amado-Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox