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.21.229 with SMTP id y5mr35143550pbe.1.1318386277527; Tue, 11 Oct 2011 19:24:37 -0700 (PDT) Path: d5ni2212pbc.0!nntp.google.com!news1.google.com!postnews.google.com!k39g2000prl.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: gdb will not "catch exception" or "catch exception unhandled" Date: Tue, 11 Oct 2011 19:24:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <913c6e88-2079-49f2-aeea-f97d7d467dd5@k39g2000prl.googlegroups.com> References: <22f84116-3c6f-449e-a02d-a2bc8863de98@t16g2000yqm.googlegroups.com> <915238bc-c2da-4a39-be8f-06997679ae56@f6g2000vbm.googlegroups.com> <730fd8c1-2fee-4629-b159-31697a802068@p29g2000pra.googlegroups.com> NNTP-Posting-Host: 97.117.193.44 Mime-Version: 1.0 X-Trace: posting.google.com 1318386277 20366 127.0.0.1 (12 Oct 2011 02:24:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Oct 2011 02:24:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k39g2000prl.googlegroups.com; posting-host=97.117.193.44; 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:18410 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-11T19:24:36-07:00 List-Id: On Oct 8, 1:23=A0am, Simon Wright wrote: > Jerry writes: > Back on this task.... > Thanks for the clarification. > > When you say "plplot is built by gnatmake, not gpr" do you mean "by > using -I (etc) arguments to gnatmake"? I suppose that is the case. > > I take it you wrote PLplot_Library.gpr yourself? Yes. I think I'm on the verge of being confusing. On the one hand is the build process for PLplot which is done by the guys on the PLplot team who are expert in such things (not so much me). They use gnatmake (for Ada stuff) and create among others two libraries, libplplotd which is the guts of PLplot (C code) and libplplotadad which is the Ada bindings. They also leave the .o and .ali files for the Ada bindings so that one could link to them if desired. On the other hand, I have personal projects which use PLplot, and that is the context in which PLplot_Library.gpr appears--as a linking device, not to build PLplot itself. For a long time, for my personal projects, I recompiled the PLplot Ada bindings from sources downloaded from SVN and link them to my other sources. This is weird because I'm not using the "official" PLplot build. I have in the past tried to change this but didn't succeed, until a couple days ago. I now bind/link to the .o/.ali files in the official PLplot build. This is an improvement in the sense that I am probably being a better tester than before and at times it speeds up my own builds. > > > 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? > > Yes. Although I (now) link to the .o files from the "official" PLplot build, I still have to link to the dynamic library libplplotd. I suspect that getting the build team to create a static library would not be something that would require a polite amount of time. > > Given that there are so few Ada source files involved, could you include > them in your main GPR's Ada sources and link against the PLplot > libraries built without the Ada parts? (if that makes sense ...) I think I understand. That was how I have been building my own projects for a long time, as I describe above. But there still remains the libplplotd problem. I'm pretty satisfied with your work-around (debug with Apple's debugger) for the relatively rare situations where I need to have the debugger catch an exception. So as far as I'm concerned, at least for the time being, I'll consider the problem solved. Thanks, Jerry