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-7-bit X-Google-Thread: 103376,90a801062c5b0e67,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-15 17:37:36 PST Path: supernews.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: rbrogers@iwvisp.com (Bob Rogers) Newsgroups: comp.lang.ada Subject: Problem using Gnat.Traceback.Symbolic.Symbolic_Traceback() Date: Tue, 16 Jan 2001 01:33:52 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3a63a426.2807354@news.iwvisp.com> X-Newsreader: Forte Free Agent 1.21/32.243 X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:4038 Date: 2001-01-16T01:33:52+00:00 List-Id: I'm running GNAT 3.13p on Win98, and I'm having a problem with gnat.traceback.symbolic.symbolic_traceback. I build my test program using the command line gnatmake myprog -cargs -g -funwind-tables -bargs -E When myprog raises an exception, Ada.Exceptions.Exception_Name(E), Exception_Message(E), and Exception_Information(E) are correct, including the hex program counter locations in Exception_Information. Also, Gnat.Traceback.Call_Chain returns a Traceback_Array whose addresses translate correctly to source file line numbers when I enter "addr2line -e myprog.exe addr" from the command line. However, gnat.traceback.symbolic.Symbolic_Traceback(Traceback_Array)) fails with the console message: (null): C:\PROG\WORK\MYPROG.EXE.exe: No such file or directory Comments in function Symbolic_Traceback (g-trasym.adb) say that the function actually executes the Ada-aware version of addr2line for each address in the traceback array. The message above implies that an extra .exe is being appended to the program name before it is passed to addr2line. Any help will be greatly appreciated. Bob Rogers rbrogers@iwvisp.com