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-Thread: a07f3367d7,f5ce49ceb519648b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!nx02.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: addr2line i mingw gcc 4.4.0 Date: Sat, 27 Jun 2009 13:09:47 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <86f46e08-56e0-4cc1-89be-93af2e7cad31@q37g2000vbi.googlegroups.com> <550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1246122587 23564 192.74.137.71 (27 Jun 2009 17:09:47 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 27 Jun 2009 17:09:47 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:K96ZjIPypMprebVRq9tRL55SHrI= Xref: g2news2.google.com comp.lang.ada:6673 Date: 2009-06-27T13:09:47-04:00 List-Id: Stephen Leake writes: > A third alternative is to output numeric traceback from the failing > program, and then use addr2line (the program) to get the symbolic > traceback in a separate manual step. This is the approach usually recommended by AdaCore. The reason you want a traceback is because "something's wrong". And that might mean that memory has been corrupted. The symbolic traceback mechanism is pretty heavy, and therefore more likely to trip over that corrupted memory. So the approach mentioned by Stephen above is more robust. It's also more efficient, because the symbolic traceback mechanism is not part of your program -- it's in the separate addr2line program. - Bob