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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.46.193 with SMTP id x1mr3018858pbm.7.1317898116687; Thu, 06 Oct 2011 03:48:36 -0700 (PDT) Path: lh7ni12744pbb.0!nntp.google.com!news1.google.com!postnews.google.com!t16g2000yqm.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: gdb will not "catch exception" or "catch exception unhandled" Date: Thu, 6 Oct 2011 03:48:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <22f84116-3c6f-449e-a02d-a2bc8863de98@t16g2000yqm.googlegroups.com> NNTP-Posting-Host: 97.117.180.49 Mime-Version: 1.0 X-Trace: posting.google.com 1317898116 14911 127.0.0.1 (6 Oct 2011 10:48:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 Oct 2011 10:48:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t16g2000yqm.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:18322 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-10-06T03:48:36-07:00 List-Id: I'm having considerable difficulty getting gdb to break on exceptions; in fact, I can't get it to work at all. I'm using the AdaCore 2010 version on OS X 10.6.8, in Terminal.app: GNU gdb (GDB) 7.1 for GNAT GPL 2010 (20100603) [rev=gdb-7.1-ref-90- g6d5b58a] This GDB was configured as "x86_64-apple-darwin9.6.0". I don't think this is related, but FWIW, this happens every time I use gdb from a terminal session (not GPS): unable to read unknown load command 0x1a warning: `/Volumes/Data/Builds/unix/gtk2.new/bld/pango/.libs/ libpangocairo_1_0_la-module-defs-atsui.o': can't open to read symbols: No such file or directory. except that there a a bazillion such gtk-related warnings. /Volumes/ Data is not my computer, but I do have gtk installed. I suppose this is GPS-related so I don't worry about it too much. So here's the problem. When I start a debugging session and type catch exception or catch exception unhandled gdb complains that I have to start my program running first. So I set a breakpoint on an early line from where I type one of the above commands, and then it accepts either command. But then my program bombs a little later with "bus error" while awaiting input from the keyboard for some user data. I am able to debug normally if I don't try to catch exceptions. Any ideas? Would I have better luck with the 2011 AdaCore version? Jerry