comp.lang.ada
 help / color / mirror / Atom feed
From: rbrogers@iwvisp.com (Bob Rogers)
Subject: Problem using Gnat.Traceback.Symbolic.Symbolic_Traceback()
Date: Tue, 16 Jan 2001 01:33:52 GMT
Date: 2001-01-16T01:33:52+00:00	[thread overview]
Message-ID: <3a63a426.2807354@news.iwvisp.com> (raw)

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




             reply	other threads:[~2001-01-16  1:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-16  1:33 Bob Rogers [this message]
2001-01-17 19:20 ` Problem using Gnat.Traceback.Symbolic.Symbolic_Traceback() Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox