digitalmars.D - Stack Traces on Linux
- dsimcha (4/4) Nov 05 2010 What determines whether the function name or just the address will be pr...
- Daniel Gibson (2/6) Nov 05 2010 I'm not sure, but aren't debug symbols needed (i.e. did you compile with...
- Jesse Phillips (3/10) Nov 05 2010 Add this flag -L--export-dynamic and compile with -gc (-g may work)
- =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= (10/14) Nov 05 2010 or and
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: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.htmlWhat 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
dsimcha wrote:What determines whether the function name or just the address will be p=rintedout when a stack trace is printed on Linux? I'm trying to debug an err=or andall I'm getting is hex addresses. I have no idea why. With other prog=rams Iget 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