From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11957 invoked by alias); 20 Mar 2008 18:34:30 -0000 Received: (qmail 11924 invoked by uid 22791); 20 Mar 2008 18:34:29 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Mar 2008 18:33:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m2KIXqQ0005186 for ; Thu, 20 Mar 2008 14:33:52 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2KIXqUn026959 for ; Thu, 20 Mar 2008 14:33:52 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2KIXpCA010153 for ; Thu, 20 Mar 2008 14:33:52 -0400 Message-ID: <47E2ADF7.50808@redhat.com> Date: Thu, 20 Mar 2008 18:34:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: frysk Subject: common print-stack options Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00179.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=5978 FYI, all the utilities (fstack, ftrace, ferror, fcatch) now share a common set of options for specifying what a stack backtrace should look like, for instance: $ ./frysk-core/frysk/bindir/ftrace -stack -full-path -sys=write -- /bin/ls [...] 10774.10774 syscall write(1, "config.log files...", 53)\ 10774.10774 dumping stack trace: Task #10774 #0 0x00110402 in __kernel_vsyscall () from /home/scratch/frysk/git/native/[vdso] #1 0x00855135 in new_do_write () from /lib/libc-2.7.so #2 0x0085541f in _IO_do_write@@GLIBC_2.1 () from /lib/libc-2.7.so #3 0x00855d28 in _IO_file_overflow@@GLIBC_2.1 () from /lib/libc-2.7.so #4 0x00858793 in __overflow () from /lib/libc-2.7.so #5 0x0804ea57 in [unknown] from /bin/ls #6 0x0804f026 in [unknown] from /bin/ls #7 0x08050a9e in [unknown] from /bin/ls #8 0x00808390 in __libc_start_main () from /lib/libc-2.7.so #9 0x08049921 in [unknown] from /bin/ls 10774.10774 syscall leave write = -1 ERRNO=38 prints the stack backtrace withouth truncating paths. I've marked down a brainstorming session on what the print-stack options should be for next wednesday's meeting. Andrew