digitalmars.D - Stack Traces on Linux
- dsimcha <dsimcha yahoo.com> Nov 05 2010
- Daniel Gibson <metalcaedes gmail.com> Nov 05 2010
- Jesse Phillips <jessekphillips+D gmail.com> Nov 05 2010
- =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= <jeberger free.fr> Nov 05 2010
What determines whether the function name or just the address will be printed out when a stack trace is printed on Linux? I'm trying to debug an error and all I'm getting is hex addresses. I have no idea why. With other programs I get full function names.
Nov 05 2010
dsimcha schrieb:What determines whether the function name or just the address will be printed out when a stack trace is printed on Linux? I'm trying to debug an error and all I'm getting is hex addresses. I have no idea why. With other programs I get full function names.
I'm not sure, but aren't debug symbols needed (i.e. did you compile with -g)?
Nov 05 2010
Daniel Gibson Wrote:dsimcha schrieb:What determines whether the function name or just the address will be printed out when a stack trace is printed on Linux? I'm trying to debug an error and all I'm getting is hex addresses. I have no idea why. With other programs I get full function names.
I'm not sure, but aren't debug symbols needed (i.e. did you compile with -g)?
Add this flag -L--export-dynamic and compile with -gc (-g may work) http://www.digitalmars.com/d/archives/digitalmars/D/A_working_backtrace_for_linux_114405.html
Nov 05 2010
Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable dsimcha wrote:What determines whether the function name or just the address will be p=
out when a stack trace is printed on Linux? I'm trying to debug an err=
all I'm getting is hex addresses. I have no idea why. With other prog=
get full function names.
IIRC with gcc you need to add -rdynamic when linking. Jerome --=20 mailto:jeberger free.fr http://jeberger.free.fr Jabber: jeberger jabber.fr
Nov 05 2010









Jesse Phillips <jessekphillips+D gmail.com> 