From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4c1aeced34d252fb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.8.229 with SMTP id u5mr13550661pba.0.1318046084007; Fri, 07 Oct 2011 20:54:44 -0700 (PDT) Path: lh7ni14035pbb.0!nntp.google.com!news1.google.com!postnews.google.com!p29g2000pra.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: gdb will not "catch exception" or "catch exception unhandled" Date: Fri, 7 Oct 2011 20:54:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <730fd8c1-2fee-4629-b159-31697a802068@p29g2000pra.googlegroups.com> References: <22f84116-3c6f-449e-a02d-a2bc8863de98@t16g2000yqm.googlegroups.com> <915238bc-c2da-4a39-be8f-06997679ae56@f6g2000vbm.googlegroups.com> NNTP-Posting-Host: 97.117.180.49 Mime-Version: 1.0 X-Trace: posting.google.com 1318046083 5009 127.0.0.1 (8 Oct 2011 03:54:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 8 Oct 2011 03:54:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p29g2000pra.googlegroups.com; posting-host=97.117.180.49; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HLUARECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4,gzip(gfe) Xref: news1.google.com comp.lang.ada:18348 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-07T20:54:43-07:00 List-Id: On Oct 7, 9:34=A0am, Simon Wright wrote: > Jerry writes: > > On Oct 6, 3:57=A0am, Simon Wright wrote: > >> Jerry writes: > > My main gpr file has this: > > =A0 with "PLplot_Library"; > > and > > =A0 PLplot_Library.gpr > > is this: > > > =A0 library project PLplot_Library is > > =A0 =A0for Externally_Built use "true"; > > =A0 =A0for Source_Dirs use (); > > =A0 =A0for Library_Dir use "/usr/local/plplot/lib"; > > =A0 =A0for Library_Name use "plplotd"; > > =A0 =A0for Library_Kind use "dynamic"; > > =A0 end PLplot_Library; > > > Is there something that I could do better here or am I stuck because I > > need to link to libplplotd which references libgnat? > > Is there an option in the build GPR for PLplot to build it as a static > library? (actually, plplot-5.9.8 doesn't include any *.gpr* files ...?) You are correct--plplot is built by gnatmake, not gpr. That is done by a complicated (many platforms, drivers, languages) build process based on cmake which is a separate activity from my personal projects which use PLplot (which I referred to earlier in this thread as "my main gpr file"). The PLplot team (none Ada guys) figured out how to build GNAT stuff amazingly quickly and they incorporated it into their build process. As you can see, it generates a dynamic library. I don't know what would be involved in getting it to build a static library. However, I have considered changing the PLplot build to use GPR because I think it would take care of a slightly awkward conditional situation with respect to one of the binding source files related to whether Real_Vector from G.3 is used or not. This would require some work by other team members so I have let it slide for quite a while. I was a little puzzled when the PLplot guys built the ada stuff as a conventional library; wouldn't it be possible to instead bind/link to the .o and .ali files? Or maybe this doesn't fit with their overall build process. Or maybe they don't know about this option. Back to the main idea--if the PLplot library were built as a static library (or linked to the .o files), would the debugger work better? Jerry