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-Language: ENGLISH,ASCII X-Google-Thread: 103376,d188753fef109ace X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-02 10:34:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: problem with Gnat.Traceback.Symbolic on linux with Gnat 3.14p ? Date: 02 Apr 2002 19:18:17 +0100 Organization: Pushface Message-ID: References: <3ca2fb66$0$4997$626a54ce@news.free.fr> <3ca975ff$0$5004$626a54ce@news.free.fr> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1017772426 nnrp-10:3965 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 2 Apr 2002 18:18:17 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:22009 Date: 2002-04-02T18:18:17+00:00 List-Id: "nicolas" writes: > "Simon Wright" a �crit dans le message news: > x7vwuvwbjm7.fsf@smaug.pushface.org... > > "nicolas" writes: > > > > > I have problems with Gnat.Traceback.Symbolic on Linux RedHAT 7.2 and > > > Gnat 3.14p > > > > > > the command issued is > > > gnatmake -f -funwind-tables -g test_trace.adb -bargs -E > > > > Not sure why you've said -funwind-tables ? > > I think I didn't use it with Gnat 3.13p and read somewhere that it is not > required. > But since Traceback doesn't work with Gnat 3.14 p , I followed what the Gnat > user's guide says (without success ...) > > -E > Store tracebacks in exception occurrences when the target supports it. This > is the default with the zero cost exception mechanism. This option is > currently only supported on Solaris, Linux and Windows ix86. Under Solaris > and Linux you need to use explicitly the gcc flag -funwind-tables when > compiling every file in your application. See also the packages > GNAT.Traceback and GNAT.Traceback.Symbolic. Under Windows there is no > specific option to use to enable this feature but you must not > use -fomit-frame-pointer gcc option. I know I'm using Slackware (7.1) and home-compiled GNATso my mileage will vary from yours, but I get eg procedure Trace is procedure R (Depth : Integer); procedure R (Depth : Integer) is begin if Depth = 0 then raise Constraint_Error; else R (Depth - 1); end if; end R; begin R (10); end Trace; compilation (with 3.14a1): smaug[19]$ GNAT_PREFIX=/opt/3.14a1 gnatmake trace -f -g -bargs -E gcc -c -g trace.adb gnatbind -aO./ -E -I- -x trace.ali gnatlink -g trace.ali execution: smaug[20]$ trace Execution terminated by unhandled exception Exception name: CONSTRAINT_ERROR Message: trace.adb:6 Call stack traceback locations: 0x8049217 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x8049242 0x80491c9 0x40030575 traceback: smaug[21]$ addr2line -e trace 0x8049217 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x804922b 0x8049242 0x80491c9 0x40030575 /home/simon/tmp/trace.adb:6 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:8 /home/simon/tmp/trace.adb:12 /home/simon/tmp/b~trace.adb:95 /home/simon/gcc-2.8.1/./frame.c:0