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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cde22e927264fcd4 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: GDB and exceptions Date: 1999/04/14 Message-ID: #1/1 X-Deja-AN: 466408433 References: <7evl9g$1l1$1@nnrp1.dejanews.com> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1999-04-14T00:00:00+00:00 List-Id: dennison@telepath.com writes: > In article , > jboulais@sikorsky.com (Boulais, Jeffrey M) wrote: > > I'm trying to set a breakpoint on exceptions. Whenever I try, I get a > > 'Couldn't open "a-except.adb": no such file or directory' message. Does > > anyone have a suggestion? > > You mean when the exception occurs you get that? I get something very much > like that. But its no big deal, since I don't *want* to debug that file. I > can pretty much assume the Ada runtime is working correctly. > > In the nice TK version of GDB, just select "Stacks" from the "Window" menu and > click on the lowest numbered level that contains your code. That should place > you on the line where the exception was raised. And in the even nicer command line gdb under emacs (no bias here :), just type "up" to go up one stack level, or "where" to see the full list, then "frame n" to get to your code. -- Stephe