Application stack trace facility

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

 



Hi,
	I would like to know if there is a system call/library function 
	available in linux which prints the current stack trace of the 
	application.
	
	For ex., 
	If main() calls a() which calls b() which in turn calls c() and if
	c() is defined as
	
	c()
	{
		....
		if (condition)
			dump_stack_trac();
		....
	}
	
	the dump_stack_trace() should print if the "condition" is true -
	
	c(...)
	b(...)
	a(...)
	main(..)
	
	Is there such "dump_stack_trace" library function/system call available?
	I know that if I make the program dump core in the dump_stack_trace 
	function then I can get the stack trace from the core dump but I would
	like to know if I can do this without forcing the core dump.

TIA
Krishna Kondaka
Sanera Systems


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux