gnat-gps

How can I specify functions or procedures GNATTest should auomatically generate a test case for

徘徊边缘 提交于 2021-02-09 00:47:33
问题 I'm working on a huge code package (written dominantly in ada), which is an extreme mess. No Unit Tests are applied so far and for all the existing code, Unit tests must not be implemented. But our Team decided, that all the new code should be implemented together with tests. Within GPS there is the possibility to let GNATtest automatically generate test procedures for all functions and procedures in the project. But as written, we have to exclude all of the old code from this automated

How can I specify functions or procedures GNATTest should auomatically generate a test case for

五迷三道 提交于 2021-02-09 00:46:33
问题 I'm working on a huge code package (written dominantly in ada), which is an extreme mess. No Unit Tests are applied so far and for all the existing code, Unit tests must not be implemented. But our Team decided, that all the new code should be implemented together with tests. Within GPS there is the possibility to let GNATtest automatically generate test procedures for all functions and procedures in the project. But as written, we have to exclude all of the old code from this automated

Adacore GNATCOLL library not installing on CentOS 8

江枫思渺然 提交于 2021-01-28 11:15:19
问题 I have recently been using the gnatcoll library on CentOS 7 and Debian 9, the installation process for both operating systems has been the same. When I attempt this install on CentOS 8, I recieve the following error msg: [lloyd@localhost sql]$ PATH=/home/lloyd/opt/GNAT/2020/bin:$PATH [lloyd@localhost sql]$ make setup [lloyd@localhost sql]$ make gprbuild -p -m --target=x86_64-linux -j0 -XGNATCOLL_VERSION=0.0 -XBUILD=PROD -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static \ gnatcoll

Updating the Compiler for the GPS Community Edition 2019 IDE

左心房为你撑大大i 提交于 2021-01-27 14:01:30
问题 I've recently started working on a project that requires my complier to be above GNAT 4.8.5 - When I go to: Help > About You can see that the version I'm using is 4.8.5 Also, when I run the gnatls -v command, I can see this... [parallels@localhost ~]$ gnatls -v GNATLS 4.8.5 20150623 (Red Hat 4.8.5-39) Copyright (C) 1997-2013, Free Software Foundation, Inc. Source Search Path: <Current_Directory> /usr/lib/gcc/x86_64-redhat-linux/4.8.5/adainclude/ Object Search Path: <Current_Directory> /usr

Ada - Accessibility check raised within a procedure

五迷三道 提交于 2020-06-16 03:36:53
问题 I previously asked a question regarding accessibility checks being raised in Ada, which @Brian Drummond was kind enough to awnser. The accessibility check was in a function, now I have a similair problem within a procedure; any guidance as to why this is would be greatly appreciated. The code I am working on has been taken from here: https://github.com/raph-amiard/ada-synth-lib The code in main file below is from the the Simple_Sine example which can be found here: https://github.com/raph

What should I do to solve the GNAT GPS “library not found” problem and build my first “Hello World” program on my Mac?

試著忘記壹切 提交于 2020-05-29 03:56:08
问题 I downloaded the GNAT Community 2019 and have installed on my Mac in my home folder "/Users/leon/opt/GNAT" I run the command "gps" in the directory "/Users/leon/opt/GNAT/2019/bin". And GPS showed up, then I created a project, typed the "Hello World" code. Just as the Wikibook shows. with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello, world!"); end Hello; When I clicked the build button, the program just failed to build. The following is the building output. gprbuild -d -P

How to stop console window from closing immediately | GNAT - GPS

左心房为你撑大大i 提交于 2019-12-12 13:27:57
问题 I have Ada program that runs and compile perfectly using GNAT - GPS. When I run its exe file and provide user input then instead of saying "Press any key to continue", the exe closes immediately. I have searched for it online alot but i only found info related to c/c++/visual studio console window using system('pause'); OR Console.Readline(). Is there any way around for this in Ada lanaguage? 回答1: Apart from using Get_Line or Get , you can also use Get_Immediate from the Ada.Text_IO package.

How to create an ada lib.a and link to C

主宰稳场 提交于 2019-12-09 12:33:28
问题 I am trying to create an ada library and have tried a few different things. I have tried compiling the project using makefiles and trying to create a library from all the .o files This seemed to not work as expected. I then asked adacore support and they pointed me in the direction of using .gpr files for both the ada and c projects and withing in the ada.gpr that should create a library. This almost worked but when it tries to compile the ada I get undefined references. What I have tried:

GDB errors on macOS Mojave

一曲冷凌霜 提交于 2019-11-28 01:45:03
Environment: Mac/Mojave and GDB 8.2.1 (via homebrew). I worked through instructions https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html i.e.: latest GDB via brew, which solves the executable format issue sign GDB with new entitlements Additionally, I've also modified SIP to allow debugging (in Recovery OS terminal: csrutil enable --without debug ). However, I still can’t get gdb to work: (gdb) file main Reading symbols from main...done. (gdb) run Starting program: /Users/joubertold/code/Rhodus/obj/debug/main [New Thread 0x1a03 of process 5082] [New Thread 0x2803 of process 5082]

GDB errors on macOS Mojave

╄→гoц情女王★ 提交于 2019-11-27 04:48:32
问题 Environment: Mac/Mojave and GDB 8.2.1 (via homebrew). I worked through instructions https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html i.e.: latest GDB via brew, which solves the executable format issue sign GDB with new entitlements Additionally, I've also modified SIP to allow debugging (in Recovery OS terminal: csrutil enable --without debug ). However, I still can’t get gdb to work: (gdb) file main Reading symbols from main...done. (gdb) run Starting program: /Users