66 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
cce69b3b56 Remove duplicate dependency from gtkada. 2024-07-16 06:04:02 +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
af4c8f2d41 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: Id71d3f84cd6ab219a37821da1460038f4eea525c
2022-01-03 15:09:31 +01: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
Adrien Boulanger
4f4904c818 Update Copyright 2019 => 2020.
(no-tn-check)

Change-Id: I7b854142151c6fc934c80c14dbe085e8bc7f6bb7
2020-01-07 10:45:26 +01:00
Nicolas Setton
d39a93eff9 S904-002 replace GPS by GNAT Studio in file headers
Change-Id: Icee628af75e0f1bd471a627c987b8024d999eb4b
2019-09-09 12:39:04 +02:00
Arnaud Charlet
eecff5e042 S226-014 CodePeer run on GPS sources
Fine tune codepeer settings.

Code clean ups: address some codepeer messages either by improving the code
or making the code more explicit to avoid false positives.


Change-Id: I2abd61236b5ccd1b9b4d9dc9b8316b7f442e9862
2019-03-11 19:07:24 +01:00
Anthony Leonardo Gracio
22cf269538 Update copyright year
(no-tn-check)

Change-Id: I27c5f49b41225d056dbc326411dd77b9516a766b
2019-01-03 16:37:00 +01:00
Andry Ogorodnik
e09a6c2e21 R126-010 Properties/Traces has been added
Change-Id: Ief2494f6e619d6466e6050d928f328fd192bd134
2018-02-14 11:26:14 +01:00
Vadim Godunko
5238335796 R117-025 Update copyright year in headers.
Change-Id: Id2d390da2faf2bc23a6abc32a909740a67bc10de
2018-01-17 19:49:29 +03:00
Emmanuel Briot
70e70fc34e Update copyright notices
Q102-020

Change-Id: I109a4f46a86edf29fbc097f739aa61ed95130ab2
2017-01-03 11:03:03 +01:00
Andry Ogorodnik
a6dbc5e8a7 PB02-019 (1/3) Correcting for Documentation_Dir attribute
Also obsolete attribute was removed from IDE package

Change-Id: I432e142960d5f2398db9e88e305473afebcaeea3
2016-11-11 17:48:01 +01:00
Emmanuel Briot
d4080e15fb (Get_Script): remove duplicate subprogram
Change-Id: Icbf2681c5969066b89446043477f611ddad81de7
2016-04-04 17:40:40 +02:00
Emmanuel Briot
d38ec04cc0 Update copyright year
Change-Id: I27dc643fbd3773b3a73d0399d83edae0af633c2e
2016-01-04 10:49:40 +01:00
Emmanuel Briot
eb7bb7895f fix various valgrind issues with commands
A Monitor_Command (for an external process) is wrapped inside a
Scheduled_Command (for the task manager). When the scheduled task
is freed, the monitor command is also freed, but it has a reference
to the scheduled command (used to print a message on the console).
This results in access to freed memory. Remove this internal pointer,
and now pass the low-level command explicitly to the various output
filters (they can still access the scheduled command via a new
Get_Scheduled_Command function in the kernel)

(Next): when moving to the next command in a command list, we should
not free the first command before we have removed it from the list.
Otherwise, the task manager will find that the command we are freeing
belonged to the queue and will try to execute the next command (thus
a nested call to Next, which also results in access to dangling
memory).

(Free): renamed to Primitive_Free, for commands, to make sure the code
is not calling this directly. This fixes various cases where Ref/Unref
was not working properly for commands.

(Execute_Incremental): fix case where we could report a Queue_Changed
event on the wrong queue.
(Active_Incremental, Passive_Incremental): in case of exception, we could
be left in a state where the task manager is not running, but GPS believes
it is.
(GPS.Kernel.Timeout): remove the timeout loop in this package, since the
task manager already has one. This is more efficient, and clarifies the
code (avoids reentrency in some cases). Make sure Exit_Cb is only run
once.

OC14-005

Change-Id: I9972f937d21388e4ba5115c2773d09950a4c567a
2015-12-23 10:24:41 +01:00
Emmanuel Briot
fa7748c367 Update copyright notices to 2015
Change-Id: Ida4e6137317bd53ef0a556edffaafe4022c74e2a
2015-01-05 15:45:56 +01:00
Emmanuel Briot
ec8702349c Update copyright notices to 2014
N103-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@221487 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-06 10:29:22 +00:00
Emmanuel Briot
18a9ac7d95 Remove traces.ads
This package was obsolete and replaced with GNATCOLL.Traces
Exceptions are now sent to "<name>.EXCEPTIONS" streams, and are
 always displayed in the testsuite.
Remove a number of exception handlers in gtk+ callbacks, which were
 no longer necessary since GtkAda has its own exception handlers.
M910-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@215445 936e1b1b-40f2-da11-902a-00137254ae57
2013-09-11 10:57:08 +00:00
Emmanuel Briot
dc4a13fa2b Update copyright notice to 2013
M103-015

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@200402 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-08 10:50:34 +00:00
Arnaud Charlet
c3721ec3c9 Replace Gtk.Main.Timeout/Idle by Glib.Main.
Part of L511-036


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@191529 936e1b1b-40f2-da11-902a-00137254ae57
2012-07-02 09:23:20 +00:00
Emmanuel Briot
c4d6a2193a Continued transition to GPL v3
KC20-002

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@182689 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-20 09:58:07 +00:00
Nicolas Setton
f364929e88 * commands-controls.adb:
(Set_Controls): New profile, returns the created command.
(Unset_Controls): Works directly on the controls command.

* commands-controls.ads:
(Set_Controls): New profile, returns the created command.
(Unset_Controls): Works directly on the controls command.

* commands.adb:
Use Ada containers.
Remove useless subprograms.

* commands.ads:
Remove use of Generic_List and String_List_Utils.
Instead, use Ada.Strings.Unbounded and Ada.Containers.Doubly_Linked_List.
Rename "Command_Queues" package to "Command_Lists, for clarity.
Remove irrelevant comments.
(Launch_Synchronous_Generic): Remove confusing interface.

* commands-interactive.adb:
(Launch_Synchronous_Interactive): Remove, no longer needed.

* commands-interactive.ads:
(Launch_Synchronous_Interactive): Remove, no longer needed.

* gps-kernel-task_manager.ads:
Remove useless 'use'.

* gps-kernel-timeout.adb:
(Execute_Monitor): Remove, not needed.
(Launch_Process): Call Launch_Synchronous API, since Execute_Monitor only
 does something that the regular Execute command does.

* gps-kernel.adb:
Use new container for command lists.

* gps-kernel.ads:
Use new container for commands list.

* task_manager-gui.adb:
Adapt to the fact that we are using an Ada Container for the commands lists.

* task_manager-shell.adb:
(Task_Command_Handler): Adapt to new implementation of command lists.

* task_manager.adb:
Adapt to new implementation of command lists.

* task_manager.ads:
Adapt to new implementation of command lists.

* socket_module.adb:
Adapt to new implementation of command lists.


* src_editor_buffer-debug.adb:
(Buffer_Cmds): Adapt to new implementation of command lists.


* src_editor_buffer.adb:
Store a pointer to the command that changes the state of the undo/redo buttons.
This is cleaner than browsing through the list of 'queue change' actions until
 we find the right command.

* src_editor_buffer.ads:
Store a pointer to the command that controls the state of the undo/redo
 buttons.

For J709-005.




git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@162466 936e1b1b-40f2-da11-902a-00137254ae57
2010-07-15 13:55:36 +00:00
Emmanuel Briot
80bf316b8f Set all Object_Dir and Library_Dir attributes in projects from the value in
gnatcoll_shared.gpr
This is for convenience when working with multiple branches in git:
 by changing the value (in a single place) on each branch, we can keep
 the build tree for each branch, and avoid extra recompilation when
 changing branches. For instance, one can set Object_Dir and Library_Dir
 to the following value in gnatcoll_shared.gpr (not checked in):
    for Object_Dir use "obj/" & External ("GIT_BRANCH", "");
    for Library_Dir use "lib/" & External ("GIT_BRANCH", "");
 provided the environment variable GIT_BRANCH is set automatically every
 time you change the branch (that's under control of the shell)

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@160904 936e1b1b-40f2-da11-902a-00137254ae57
2010-06-08 10:45:36 +00:00