Date: Thu, 24 May 2012 15:25:18 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: toolchain@freebsd.org Subject: libunwind-based pstack(1) Message-ID: <20120524122518.GJ2358@deviant.kiev.zoral.com.ua>
next in thread | raw e-mail | index | archive | help
--4aUSi4GuQtquuilV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I reimplemented pstack(1) using libunwind. The source is available at the git repository at http://people.freebsd.org/~kib/git/pstacku.git/ . To use it, you should also use git HEAD of the libunwind from http://libunwind.nongnu.org, I do not think that version from ports will work. Due to libunwind use, this pstack works on i386 and amd64. When libunwind/FreeBSD is ported to other arches, adding corresponding support to pstack is quite easy. So far, I tried to implement most of the features supported by original pstack, but there are limitations due to use of libunwind. Only libthr supported as the threading library, you probably get some funny results for libc_r and kse-based libpthread. The big unimplemented feature is coredump stack dumping, but libunwind only got support for Linux coredump backtracing a day ago, and I did not yet looked at porting this to FreeBSD. Lesser implemented but not properly working feature is the arguments=20 printing. I might fix this later. Enjoy. --4aUSi4GuQtquuilV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk++KK4ACgkQC3+MBN1Mb4guCQCgwhm3UJnAjKuO/xjAoF5CN45v JboAnREqRS7/qMY81gd7Y90VSQ/TLM1d =iCvy -----END PGP SIGNATURE----- --4aUSi4GuQtquuilV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120524122518.GJ2358>