comp.lang.ada
 help / color / mirror / Atom feed
* Problem in gnatxref?
@ 2003-12-05 12:13 Chris Meudec
  2003-12-05 14:14 ` Stephen Leake
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chris Meudec @ 2003-12-05 12:13 UTC (permalink / raw)


Hi all,
gnatxref does not seem to cross reference record field names in record
aggregates. I am using gnat 3.13p.

For example, with 

package gnatxref_pb is 
type Dis is
   record
      Lane        : BOOLEAN;
      Ded          : BOOLEAN;
   end record;            
Out_DiscreteInputs :Dis := Dis'( Lane        =>     true,
                                 Ded         => not true
                               );
end gnatxref_pb;

gnatxref outputs the following:

Ded                                                          Type:
Enum
  Decl:  gnatxref_pb.ads        6:7
Dis                                                          Type:
Record
  Decl:  gnatxref_pb.ads        3:6
  Ref:   gnatxref_pb.ads        9:21      9:28
Lane                                                         Type:
Enum
  Decl:  gnatxref_pb.ads        5:7
Out_DiscreteInputs                                           Type:
Record
  Decl:  gnatxref_pb.ads        9:1
gnatxref_pb                                                  Type:
Unit
  Decl:  gnatxref_pb.ads        1:9

as you can see 'Lane' and 'Ded' are properly xref on declaration but
not on reference in the aggregate.

Why is that? Should I switch to a newer version of gnatxref? Is there
other identifiers that are not xrefed?
How can this problem be fixed?

Best regards,
Chris.



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Problem in gnatxref?
@ 2003-12-11 14:42 ada_wizard
  0 siblings, 0 replies; 5+ messages in thread
From: ada_wizard @ 2003-12-11 14:42 UTC (permalink / raw)
  To: comp.lang.ada

meudecc@itcarlow.ie (Chris Meudec) writes:

> I have upgraded to version 3.15 under windows and I still get the same
> problem.

Ah. Sorry; I tested it with Gnat 5.01a (only available with a support
contract). 

> Who is providing gnat under windows?

Ada Core Technologies, same as all of the other GNAT ports. There
should be a new public release Real Soon Now :).

You could try the gnat that is included in the gcc distribution; it is
close to GNAT 5.01a. There is a binary for Windows in the Cygwin
distribution (which is worth having on its own, for bash, make, cvs,
ssh, etc); http://www.cygwin.com.

-- 
-- Stephe

___________________________________________________________
This mail sent using ToadMail -- Web based e-mail @ ToadNet



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-11 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 12:13 Problem in gnatxref? Chris Meudec
2003-12-05 14:14 ` Stephen Leake
     [not found] ` <uu14fqrlk.fsf@acm.org>
2003-12-08 11:16   ` Chris Meudec
2003-12-08 11:16 ` Chris Meudec
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 14:42 ada_wizard

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