From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Alternative for Gnat Studio Date: Tue, 02 Mar 2021 08:04:13 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <602e608e$0$27680$e4fe514c@news.kpn.nl> <60379b69$0$20345$e4fe514c@news.kpn.nl> <86zgzn4xcs.fsf@stephe-leake.org> <5b0c7577-7dcc-468b-a24b-7447a8e796b7n@googlegroups.com> NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:qlJXOzDy9LJw87rFlVpMgNQdZHk= Xref: reader02.eternal-september.org comp.lang.ada:61458 List-Id: John Perry writes: > Honest question: do you have advice for debugging exceptions in > GDB?*** I had to debug an exception the other day & I had a humdinger > of a time determining what caused it. When the Ada RT raises an > exception in GDB, GDB quits the program state altogether, so I have to > employ guess-and-check methods to figure out where, say, an > Ordered_Map Key_Error occurs. This is contrary to how GDB handles C++ > exceptions: the program stops immediately, so that you can examine the > state, move up and down through the stack, etc. I don't remember experiencing this? "catch exception" or "catch exception Key_Error". I may not be able to see much in the RTS, but I can certainly inspect my own code.