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,UTF8 Received: by 10.68.21.229 with SMTP id y5mr10500600pbe.1.1318005287104; Fri, 07 Oct 2011 09:34:47 -0700 (PDT) Path: lh7ni13636pbb.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gdb will not "catch exception" or "catch exception unhandled" Date: Fri, 07 Oct 2011 17:34:45 +0100 Organization: A noiseless patient Spider Message-ID: References: <22f84116-3c6f-449e-a02d-a2bc8863de98@t16g2000yqm.googlegroups.com> <915238bc-c2da-4a39-be8f-06997679ae56@f6g2000vbm.googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZNOgVKJ6POedMV/8qqb0dgv0Nodtd8Yc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:KzhICchKUjTxuyh+e585TdXo+Yg= sha1:LTcdu/Ati1geWCxS4asCMWmeBYY= Xref: news1.google.com comp.lang.ada:18337 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Date: 2011-10-07T17:34:45+01:00 List-Id: Jerry writes: > On Oct 6, 3:57 am, Simon Wright wrote: >> Jerry writes: >> > I'm having considerable difficulty getting gdb to break on exceptions; >> > in fact, I can't get it to work at all. >> >> I wrote up something on this here:http://forward-in-code.blogspot.com/2011/08/debugging-with-mac-os-x-s... > > That's really helpful, Simon. Thanks. I pretty much understood your > article which means that it's really well-written. 8^) Thank you! > "HOWEVER, IF YOU CALL IN AN ADA SHARED LIBRARY BY MISTAKE (PERHAPS > BECAUSE YOU MISSED AN EXTERNAL VARIABLE SETTING IN A .GPR), the linker > will find the dynamic Ada runtime because it's referenced from the Ada > shared library:" > > otool on my executable: > > MBPro:product-debug me$ otool -L ./run > ./run: > /usr/local/plplot/lib/libplplotd.11.dylib (compatibility version > 11.0.0, current version 11.0.0) > @rpath/libgnat-2010.dylib (compatibility version 0.0.0, current > version 0.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current > version 125.2.11) > /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib > (compatibility version 1.0.0, current version 268.0.1) > > libplplotd is the PLplot library which I link to; this is almost > certainly referring to libgnat. I think so. > But did I do something wrong? This is > the first project on which I have used gpr, and I found the gpr > documentation to be not the finest example of technical writing. Couldn't possibly comment! > My main gpr file has this: > with "PLplot_Library"; > and > PLplot_Library.gpr > is this: > > library project PLplot_Library is > for Externally_Built use "true"; > for Source_Dirs use (); > for Library_Dir use "/usr/local/plplot/lib"; > for Library_Name use "plplotd"; > for Library_Kind use "dynamic"; > 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 ...?)