From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Exception traceback when using TDM-GCC 5.1.0-3
Date: Thu, 28 Jul 2016 18:19:21 +0200
Date: 2016-07-28T18:19:21+02:00 [thread overview]
Message-ID: <nndb9e$110$1@dont-email.me> (raw)
In-Reply-To: <aadd68e4-de0d-4e8f-bef7-1e387970a421@googlegroups.com>
On 2016-07-28 18:07, ahlan.marriott@gmail.com wrote:
> On Thursday, 28 July 2016 14:26:03 UTC+2, björn lundin wrote:
>> On 2016-07-28 08:56, ahlan.marriott@gmail.com wrote:
>>
>>>
>>> If I do exactly what Simon does (use gnat make on a single file) then I get eight traceback addresses.
>>> However when I use addr2line I don't get a very useful symbolic traceback as it refers to lines within b~ce.adb rather than the true source ce.adb
>>> If I catch the exception and use gnat.traceback.symbolic.symbolic_traceback then all I get are the addresses and not the symbolic references I expected.
>>>
>>
>>
>> since 10 years, we are not useing
>> gnat.traceback.symbolic.symbolic_traceback.
>>
>>
>> instead we get the hex addresses with Ada.Exceptions.Exception_Message
>> and from that we use addr2line.
>>
>>
>> addr2line --functions --basenames --exe=path/to/exe-file hex-adressess
>>
>>
>> --
>> --
>> Björn
>
> Dear Björn,
>
> We use Gnat symbolic because we catch the exceptions and write them into a log.
> In this case it makes more sense to write the symbolic traceback rather than a series of hexadecimal numbers.
> With AdaCore Pro & GPL this works fine.
> If only I could get TDM to do the same ;-(
>
> MfG
> Ahlan
>
We spawn addr2line from the executable, feeding it the hex-adresses (and
path to exe).
We just dump that to a redirected std-out.
You could capture that output, and then put that into a log.
If you get the hex-addresses that is...
--
--
Björn
next prev parent reply other threads:[~2016-07-28 16:19 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-19 16:40 Exception traceback when using TDM-GCC 5.1.0-3 ahlan.marriott
2016-07-20 5:33 ` jrmarino
2016-07-20 6:19 ` ahlan
2016-07-20 6:43 ` Simon Wright
2016-07-20 7:13 ` ahlan
2016-07-20 13:09 ` jrmarino
2016-07-23 16:13 ` Simon Wright
2016-07-24 8:43 ` ahlan.marriott
2016-07-24 9:44 ` Simon Wright
2016-07-24 17:14 ` jrmarino
2016-07-24 18:54 ` ahlan.marriott
2016-07-24 19:46 ` Björn Lundin
2016-07-25 8:45 ` ahlan.marriott
2016-07-25 9:04 ` gautier_niouzes
2016-07-25 18:49 ` ahlan.marriott
2016-07-25 11:34 ` Björn Lundin
2016-07-25 12:05 ` Simon Wright
2016-07-25 14:06 ` Björn Lundin
2016-07-25 18:48 ` ahlan.marriott
2016-07-26 21:20 ` jrmarino
2016-07-27 7:09 ` Markus Schöpflin
2016-07-27 7:35 ` Simon Wright
2016-07-27 10:57 ` ahlan.marriott
2016-07-27 13:22 ` Simon Wright
2016-07-27 14:11 ` ahlan.marriott
2016-07-27 15:45 ` Simon Wright
2016-07-27 19:32 ` Anh Vo
2016-07-27 20:33 ` ahlan.marriott
2016-07-27 21:03 ` Anh Vo
2016-07-28 6:07 ` ahlan.marriott
2016-07-28 6:56 ` ahlan.marriott
2016-07-28 12:26 ` Björn Lundin
2016-07-28 16:07 ` ahlan.marriott
2016-07-28 16:19 ` Björn Lundin [this message]
2016-07-28 14:48 ` Anh Vo
2016-07-28 15:44 ` Anh Vo
2016-07-28 16:00 ` ahlan.marriott
2016-07-28 16:16 ` Anh Vo
2016-07-28 20:34 ` ahlan.marriott
2016-07-28 20:55 ` Björn Lundin
2016-07-29 6:40 ` ahlan.marriott
2016-07-29 10:08 ` Björn Lundin
2016-07-30 8:10 ` ahlan.marriott
2016-07-29 7:01 ` Simon Wright
2016-07-29 8:21 ` gautier_niouzes
2016-07-31 8:26 ` ahlan
2016-07-29 15:57 ` Anh Vo
2016-07-29 18:48 ` Anh Vo
2016-07-30 8:11 ` ahlan.marriott
2016-07-27 10:41 ` ahlan.marriott
2016-07-27 7:18 ` gautier_niouzes
2016-07-27 10:45 ` ahlan.marriott
2016-07-25 7:14 ` Georg Bauhaus
2016-07-20 13:06 ` jrmarino
2016-07-21 3:51 ` gautier_niouzes
2016-07-21 7:24 ` ahlan
2016-07-21 10:33 ` gautier_niouzes
2016-07-21 12:15 ` ahlan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox