Traceback on Gnat/Linux 
Author Message
 Traceback on Gnat/Linux


we are porting code from Windows to Linux (Suse 7.3),
Gnat 3.14p on both platforms.
We do not get a symbolic traceback on linux.
The windows options are

gnatmake -s -cargs -O3 -bargs -f -E -largs ... ....adb

The options for Linux are

gnatmake -s -cargs -O3 -funwind-tables -bargs -f -E -largs ... ....adb

my exception handler looks like

    when E : others =>
        Put(Ada.Exceptions.Exception_Information(E) &

On windows I get an output like

Call stack traceback locations:
0x5dbb11 0x5dbe9e 0x5df0a6 0x5de42b 0x40166d 0x401103 0x77f1b9e8
005DBB11 in at mst-rap_generator.adb:394
005DBE9E in mst.rap_generator.initialize at mst-rap_generator.adb:411
005DF0A6 in at mst-sa-process.adb:153
005DE42B in at mst-sa-main.adb:22
0040166D in ?? at crt1.c:0
00401103 in ?? at crt1.c:0
77F1B9E8 in ?? at fake:0

but on linux only the adresses are given.
Whats wrong?

 Thanks for any hints.
    J. Schroer

Sun, 05 Jun 2005 00:03:10 GMT  
 Traceback on Gnat/Linux

> Hello,

> we are porting code from Windows to Linux (Suse 7.3),
> [snip get symbolic traceback on Windows, not on Linux]
> Whats wrong?

Having just read the code on Linux a few minutes ago (to see what it did
for our application) you can see comments that suggest you pass the
address values to addr2line (which should be installed on your system).
I can't be sure, but it appears that since the conversion routine is
readily available - they decided to implement it a more simple way on
Linux (and other Unix systems?) than on Windows.

There is also an example in the gnat user's guide (search for addr2line)
that shows how to do this with and without symbolic traceback (but
requires you to link w/ the addr2line library). There are also
references to the specific files in /usr/gnat/... which have the source
code responsible. Good luck.


Sun, 05 Jun 2005 01:15:10 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Bug in GNAT.Traceback.Symbolic?

2. How to get a traceback in Gnat 3.14p

3. Problem using Gnat.Traceback.Symbolic.Symbolic_Traceback()

4. GNAT.Traceback is back...

5. Tracebacks, GNAT

6. using package GNAT.Traceback

7. GNAT/Ada Traceback Information?

8. GNAT exception traceback

9. perl script for GNAT tracebacks

10. GNAT : Exception traceback

11. problem with Gnat.Traceback.Symbolic on linux with Gnat 3.14p ?

12. Bug in GNAT.Socket.Check_Selector in GNAT 3.14 Linux runtime


Powered by phpBB® Forum Software