Bibekananda wrote:
> We are porting linux code to solaris.While compiling  I am getting  errors 
> like backtrace,backtrace_symbols  undeclared. What are the replacement for 
> these in solaris.Is there anything in MDB similar to backtrace?

While recent Solaris Express & OpenSolaris builds have added backtrace(),
the native Solaris equivalent of printstack() has been around since
Solaris 9 - an example open source code that uses whichever one the platform
supports (including an option to fork/exec pstack for more complete stack
traces and support of even older Solaris releases) is the X.Org X server:

http://cgit.freedesktop.org/xorg/xserver/tree/os/backtrace.c

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to