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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Can't "catch exception" in gdb on OS X Date: Sat, 05 Mar 2016 08:30:42 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="900e1437335c90c92a3116ad49605f53"; logging-data="7077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XgVNYH0RyB4WqJa4zGa7qW939RVCQZMg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:x+TxA9ccJC1hDo35ZP5fZVSjF3g= sha1:UCD935feGKOSuNBdJVEwY95MCpw= Xref: news.eternal-september.org comp.lang.ada:29677 Date: 2016-03-05T08:30:42+00:00 List-Id: Jerry writes: > 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. I wrote about this at [1]; there's a GDB Bugzilla entry about it[2]. The simplest solution I've found is to invoke gdb with -readnow. [1] http://forward-in-code.blogspot.co.uk/2012/01/catching-exceptions-in-gdb.html [2] https://sourceware.org/bugzilla/show_bug.cgi?id=11385