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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.220.67 with SMTP id pu3mr20087813pac.19.1457427040648; Tue, 08 Mar 2016 00:50:40 -0800 (PST) X-Received: by 10.182.112.202 with SMTP id is10mr271780obb.7.1457427040595; Tue, 08 Mar 2016 00:50:40 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!ok5no6646898igc.0!news-out.google.com!k1ni12319igd.0!nntp.google.com!hb3no12445863igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 8 Mar 2016 00:50:40 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=97.117.196.130; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 97.117.196.130 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Can't "catch exception" in gdb on OS X From: Jerry Injection-Date: Tue, 08 Mar 2016 08:50:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29705 Date: 2016-03-08T00:50:40-08:00 List-Id: On Saturday, March 5, 2016 at 1:30:44 AM UTC-7, Simon Wright wrote: > Jerry writes: >=20 > > I'm on OS X 10.9.5 trying to debug a GNAT program. When I type > > > > catch exception > > > > when the program is in the debugger but paused at the automatically > > inserted breakpoint at the first line, I get this: > > > > Cannot insert Ada exception catchpoints in this configuration. >=20 > I wrote about this at [1]; there's a GDB Bugzilla entry about it[2]. >=20 > The simplest solution I've found is to invoke gdb with -readnow. >=20 > [1] http://forward-in-code.blogspot.co.uk/2012/01/catching-exceptions-in-= gdb.html > [2] https://sourceware.org/bugzilla/show_bug.cgi?id=3D11385 Thanks, Simon. Google didn't point me to your blog because I entered the cu= rrent gdb error text and it looks like the text has changed since you wrote= . Your suggestions including using -readnow in the gdb call and first telling= gdb to "break __gnat_debug_raise_exception" work on GNAT GPL 2015 but not = GPL 2014 on my machine running OS X 10.9.5. I also have FSF gcc-4.9.1 insta= lled but it isn't codesigned and I didn't bother with trying it. If this wo= uld be useful feedback I will do that (codesign, reboot). For GPL 2015, behavior was the same whether or not I used -readnow. In both= cases, I had to first "start" before having "catch exception" recognized. Jerry