Re: Stack trace recoding on Mac OS X Leopard ( 10.5 )
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UthvASUVnA5UZY9FY+JFBwiluEExgzwzaaT1YwG9r/E=; b=JMKe1QPHQuOItDIg5vpqoeeOhfSiAKhiCF7xgJzse1DaH4oXAaG1tLR+7nwBZIM6qP geut0Y0K6NRH58cQbdL569xYHO3cNN0HhILymdPKTLIhgtwju1VQ9o2CBjfP9RoKXuDl GK2vOSqbn7K/cLaEG0dFQ6zTSCXgYeH+GqeFg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=AOKEd7tHh1dyFwI3r+LTsq4f1FgTftI7CvZI/SUipIfRLMk3BhICiq3MsE9owa8FkQ zLru+KbJ/vFpYSz6YYi1Es026grQJ6mF3hxHMHAaZJ8ZHdJdcltLY94Q3K3cKwMYU5DP mT/z5WXWHDVZx8wg+Ly/UvKHMm0/JWehd4IqA= 2008/8/22 Rohitash <rohitash.panda@oracle.com>:
Hi, I was exploring of some interfaces in Mac OS X if present , which might help me get a call backtrace which I want to record for some specific internal exception conditions . If some kind of unwind library is already available for use , that would really help simplify my task .
I am not sure if the BSD library backtrace() and friends should be able to help me walk through all the stack frames and provide me with the arguments , parameters and the translated PC ( to symbolic names ) at any point I want to get a trace the call stack.
yes, backtrace(3) will do this -- James Peach | jorgar@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
James Peach