On 22 Jun 2016, at 13:06, Stephen Leake <[email protected]> wrote:
> 
> Simon Wright <[email protected]> writes:
> 
>> ================================================
>> -*- mode: compilation; default-directory: "~/adacore/svd2ada/" -*-
>> Compilation started at Wed Jun 22 07:54:37
>> 
>> gnat find -a -r Common_Prefix:base_types.adb:603:13 -Psvd2ada.gpr
>> gnat: 'gnat find -P' is no longer supported;
>> 
>> Compilation exited abnormally with code 4 at Wed Jun 22 07:54:37
>> ================================================
>> 
>> Hmpf.
> 
> Yes. That's what gpr_query is for.
> 
> Let me know if it works for you, and if the manual on how to install and
> use it needs to be improved.

Looking good! handles 'for Target use', 'for Runtime ("Ada") use' just fine.

The manual certainly needs to be updated for building and for actual use. For 
info, I built with the macOS GCC 6.1.0 as at SF.

Is readline functionality actually required in use, or only for test? the 
instructions to build GNATColl won't build a (working) readline.

Do you think that a person using gpr-query should be able to type C-c C-r to 
show references, as in gnatxref, rather than C-c TAB C-r (or the equivalent but 
more comfortable C-c C-i C-r)? And it would be nice not to have to M-x 
gpr-query for each file.

> Ok; I can finally get rid of 'gnat list' in ada-mode :).

I suppose some users might not want to install gnatcoll and gpr_query unless 
they have to?

>> gprls produces different output
>> from gnat list: if with FSF GCC 6.1.0 I say
>> 
>> $ arm-eabi-gnat list -v -P testbed.gpr 
>> --RTS=/Users/simon/cortex-gnat-rts/arduino-due
>> 
>> (the --RTS is needed even though the gpr states it) I get
>> 
>> Source Search Path:
>>   <Current_Directory>
>>   /Users/simon/cortex-gnat-rts/arduino-due/adainclude
>>   /Users/simon/cortex-gnat-rts/arduino-due/atsam3x8e
>>   /Users/simon/cortex-gnat-rts/common
>>   /Users/simon/cortex-gnat-rts/test-arduino-due
>>   /Users/simon/cortex-gnat-rts/test-common
>> 
>> whereas if I say
>> 
>> gprls -P testbed.gpr
>> 
>> I just get
>> 
>> Source Search Path:
>>   /Users/simon/cortex-gnat-rts/test-arduino-due/
>>   /Users/simon/cortex-gnat-rts/test-common/
> 
> Hmm. I'm guessing this is according to some directory layout standard;
> why do you have other dirs in your search path?

The longer list of paths includes paths in the RTS. gpr_query gets this longer 
list.


_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to