140 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
11672bc929 Update copyright year for GS sources
(no-issue-check)
2026-01-05 12:41:13 +00:00
Vadim Godunko
ddc5afbd28 Rename Get_Chars into Get_Chars_S 2025-02-11 06:10:31 +00:00
Vadim Godunko
d4206d2e19 Use Virtual_String for category name of the messages. 2024-11-13 12:59:34 +00:00
Maxim Reznik
46a162d24e Avoid extra quotes around an argument with spaces
because it doesn't work. For example running
`gprbuild -XCOMFLAGS="-O3 -g"` fails with the error:

> gcc: error: unrecognized debug output level '"'

Fixes #261
2024-07-03 16:47:10 +00:00
Pierre-Marie de Rodat
9d5d31d7be Allow gnatbench to stub the dependency over GNATCOLL.Python
Introduce a simple unit to define a type used to lock Python's GIL.
GNATbench sources will only have to stub it.
2024-06-25 15:54:01 +00:00
Boulanger
948f4ece61 Fix GIL issue related
See comment from dictobject.h:
bpo-40839: Before Python 3.10, it was possible to call
PyDict_GetItem() with the GIL released.

eng/ide/gnatstudio#192

(cherry picked from commit 62f2e884be)
2024-06-24 13:52:49 +00:00
Vadim Godunko
aa393bfd54 Remap path to the project file to remote path. 2023-11-20 12:58:16 +00:00
Boulanger
fa47104c97 Fix regressions related to GNATSAS renaming
Modify GPS.BuildTarget.execute to allow file to be either a string
or a GPS.File.

Fix toplevel menu generation order.

eng/ide/gnatstudio#54

(cherry picked from commit 3868078a7f)
2023-09-26 10:42:26 +00:00
Boulanger
0e409d4274 New actions and avoid having a GNATSAS build mode
- Don't use a special build mode for gnatsas (update Object_Dir
computation to reflect it)
- Add action to load and display SAM baseline
- Replace calls of cpm_bridge by gnatsas review

(cherry picked from commit ac195ba8d8)
2023-09-26 10:42:26 +00:00
Boulanger
d76b8aef1c Don't clean the Messages view when generating the report
(cherry picked from commit 804be6f3a6)
2023-09-26 10:42:26 +00:00
Anthony Leonardo Gracio
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Anthony Leonardo Gracio
03d73baf89 V920-016: Fix exception when computing main menus
By using a vector container instead of a fixed-sized array.

Change-Id: I37248392a4f7aa4c182d3f18bd6f81ab0d7e829e
2022-09-22 14:39:02 +02:00
Adrien Boulanger
1804f192f3 S712-022: Fix over-referenced Python object by Ada
Add free for Callback_Data/Subprogram_Type/List_Instances
Fix ownership transfer issue for Monitored_Command.
Fix over-referenced on widget by python (Editor_Overlay)

Add a test.

Change-Id: I5f6447e37928535f2b7085bcd1b102ee28e31c33
2022-03-31 12:34:25 +00:00
Anthony Leonardo Gracio
af4c8f2d41 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: Id71d3f84cd6ab219a37821da1460038f4eea525c
2022-01-03 15:09:31 +01:00
Anthony Leonardo Gracio
5d28e6ef3b Merge remote-tracking branch 'origin/master' into gtk-3.24
U308-025

(no-precommit-check)

Change-Id: Id55fd191c1b7149055f8d28d4f8dc9bde3b2284c
2021-03-10 16:55:16 +00:00
Adrien Boulanger
794e85fb82 U216-018: Allow output parser with uses-python build target
The build targets running a python command were not redirecting
the output/status to their output parsers.

Change-Id: I7fee8c2bd4386c999f1175ab4ddcbd97fd5c6969
Depends-On: Ia2382dec8a25cdbafd391c0fec96ccf49e013ad7
2021-03-02 14:54:14 +01:00
Vadim Godunko
d75f5ce0a8 T109-039 Protect calls to Python C API.
Change-Id: I53fa492609cf7c79839992265aa1d341347ca070
2021-02-22 13:28:54 +03:00
Anthony Leonardo Gracio
63c2e9d9c9 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: I50abdaba131d76d914f1df9a53f013ec8f48ca68
2021-01-11 17:22:37 +01:00
Andry Ogorodnik
d9993c6c21 S903-025 Rename GPS to GNAT Studio in comments, strings
Depends-On: If8db363de9c59b395772b715a838e3a785b568d7
Change-Id: I509eebd12037a49e0ff751220c7f6911b7480694
2020-10-28 12:03:44 +01:00
Andry Ogorodnik
4278f1ff39 T306-003 Correct relocate-build-tree switch applying.
Change-Id: Id56580b938410e13a47f7f98cce99cfaa54ff461
2020-10-21 17:34:45 +02:00
Anthony Leonardo Gracio
5704df4c31 TA16-011: Don't escape blankspace scenario variable values
We should not put quotes around blankspace variable values, since
it causes issues for underlying tools (e.g: CodePeer).

Change-Id: I1a7f7dca4c7772bb56e73da263d54b152d0beb00
2020-10-20 17:29:29 +02:00
Andry Ogorodnik
16bbaa23b4 T728-015 Quote variables in building command line.
When a variable contains empty spaces in a value.

Change-Id: I70d14de90aa9ffb7e28a135b991e3fd850ff06db
2020-09-09 15:59:25 +02:00
Adrien Boulanger
b7c7e15bc1 T610-018: Preference to control the scenario variable default value
By default explicitely add all the scenario variables on the command
line even if they have their default value.
If the preference is activated, it will only add the scenario
variables which don't have their default value.

Adapt test.

Change-Id: Ic701925a784d6924eda9a9b41d93770f693ea2a7
2020-06-16 14:12:14 +02:00
Vadim Godunko
a381c17ef9 T121-017 Use containing directory of executable...
... on remote machine as current working directory when '[exec_dir]'
is specified in the command line pattern.

Change-Id: I36c224c118ccc7e18e031482404a7e341cdcaff0
2020-04-01 14:50:05 +02:00
Andry Ogorodnik
f7fa0ae643 SC04-033 get_expanded_command_line python API method
Method for getting a complete command line for building
 a project:

GPS.BuildTarget("Build All").get_expanded_command_line()

Change-Id: Ib9ec44e6ce33d8a9ad1ca929837cfcf820089063
2020-01-30 11:13:29 +01:00