0002-Put-Id-of-missing-object-in-exception-message-when-G.patch
To get a bit more information in case of dispatching to non-existent object

0001-Force-PREFIX-to-Windows-syntax-when-used-with-cygwin.patch
Under windows (with cygwin), make install didn't work because of the
/cygdrive/c syntax that isn't understood by gprinstall. This patch turns
cygwin syntax into windows syntax.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
From 924453ffd4b5958a689371f628cab46b23498f71 Mon Sep 17 00:00:00 2001
From: JP Rosen <ro...@adalog.fr>
Date: Tue, 31 May 2016 08:48:22 +0100
Subject: [PATCH 2/2] Put Id of missing object in exception message when
 Get_Object fails

---
 src/gnoga-server-connection.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gnoga-server-connection.adb b/src/gnoga-server-connection.adb
index fc468b0..d9ef784 100644
--- a/src/gnoga-server-connection.adb
+++ b/src/gnoga-server-connection.adb
@@ -1283,7 +1283,7 @@ package body Gnoga.Server.Connection is
          if Object_Map.Contains (ID) then
             return Object_Map.Element (ID);
          else
-            raise No_Object;
+            raise No_Object with "ID:" & ID'Img;
          end if;
       end Get_Object;
 
-- 
1.9.4.msysgit.2

From 5ae8be6e983e9e62c4b7fe0c454e032ffbd6f393 Mon Sep 17 00:00:00 2001
From: JP Rosen <ro...@adalog.fr>
Date: Tue, 31 May 2016 08:47:28 +0100
Subject: [PATCH 1/2] Force PREFIX to Windows syntax when used with cygwin

GPRInstall doesn't understand the /cygdrive/c syntax and won't work
otherwise
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c77f73c..bcd32e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PREFIX=$(dir $(shell which gnatls))..
+PREFIX=$(shell echo $(dir $(shell which gnatls)) | sed 
"s:/cygdrive/\\(.\\):\\1\\::" )..
 GPRCHECK=$(shell gprbuild --version)
 TARGET=$(shell gcc -dumpmachine)
 
-- 
1.9.4.msysgit.2

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to