NetBSD-Users archive

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

Stack trace from C program



Hi, is there a sane way of generating a stack trace from withink a C
program on *BSD?

For example, Solaris has walkcontext() and printstack() functions. It
doesn't look like there is anything similar on NetBSD.

Is there a portable way of implementing those functions, or does it
heavily depend on machine architecture and operating system?


Home | Main Index | Thread Index | Old Index