From owner-freebsd-toolchain@FreeBSD.ORG Thu May 24 12:25:27 2012 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82C36106566C for ; Thu, 24 May 2012 12:25:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 004DE8FC25 for ; Thu, 24 May 2012 12:25:26 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q4OCPJoa098835 for ; Thu, 24 May 2012 15:25:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q4OCPJAB065062 for ; Thu, 24 May 2012 15:25:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q4OCPISO065061 for toolchain@freebsd.org; Thu, 24 May 2012 15:25:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 24 May 2012 15:25:18 +0300 From: Konstantin Belousov To: toolchain@freebsd.org Message-ID: <20120524122518.GJ2358@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4aUSi4GuQtquuilV" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Subject: libunwind-based pstack(1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 12:25:27 -0000 --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--