[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

addr2line on aix not correctly following #line

From: Brendan Doherty
Subject: addr2line on aix not correctly following #line
Date: Tue, 9 Mar 2004 15:00:41 -0800 (PST)


We are using addr2line to produce a stacktrace from
programs when an error occurs.  These programs have
been converted from another language to c++, and make
frequent use of #line to map the c++ lines back to the
original source code.  

When addr2line is reporting the filename:line number,
it is only following the line number from the #line
statement, and not the filename.
As an example, if a stack trace was generated from
line 4 of MYFUNC.cpp, addr2line would report
MYFUNC.cpp:2, where as gdb 6.0 would report
MYFUNC.xxx:2.  addr2line is partly working, as it has
given the correct line number.

#include <myinclude.h>
void MYFUNC() {
#line 2 MYFUNC.xxx

We are using binutils-2.14, gcc-3.3.2, gdb-6.0.  If
you have any ideas, or patches, that might fix this
issue, please let me know.


Do you Yahoo!?
Yahoo! Search - Find what youÂ’re looking for faster

reply via email to

[Prev in Thread] Current Thread [Next in Thread]