From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13038 invoked by alias); 24 Mar 2011 17:13:46 -0000 Received: (qmail 13026 invoked by uid 22791); 24 Mar 2011 17:13:45 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Mar 2011 17:13:40 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2OHD6Bv018289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Mar 2011 13:13:06 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2OHD5qO001073; Thu, 24 Mar 2011 13:13:06 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p2OHD5ti000606; Thu, 24 Mar 2011 13:13:05 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 6B7FE378C88; Thu, 24 Mar 2011 11:13:03 -0600 (MDT) From: Tom Tromey To: "Maucci\, Cyrille" Cc: "gdb\@sourceware.org" Subject: Re: Backtrace extraction ONLY gdb References: <0E02F16954AF394BB163AEE50FDF5485690094DFED@GVW1121EXC.americas.hpqcorp.net> <0E02F16954AF394BB163AEE50FDF548569009DAB5B@GVW1121EXC.americas.hpqcorp.net> Date: Thu, 24 Mar 2011 17:13:00 -0000 In-Reply-To: <0E02F16954AF394BB163AEE50FDF548569009DAB5B@GVW1121EXC.americas.hpqcorp.net> (Cyrille Maucci's message of "Wed, 23 Mar 2011 22:22:04 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00148.txt.bz2 >>>>> "Cyrille" == Maucci, Cyrille writes: Cyrille> The suid trick may do it... Though isn't there some story about Cyrille> suid scripts not being allowed? Yeah. Write a little C program instead. Tom> You can make them on the production machine and then analyze them Tom> elsewhere. Cyrille> Well if analyze them elsewhere is 'looking at the backtrace', Cyrille> yes. If analyze them elsewhere is fully browsing the core Cyrille> file, it requires the exact same exe/libs versions as on the Cyrille> production system. Yes. You can just copy those back, of course. Or, one thing I think people do is keep one copy of the production build "locally", with full debuginfo (separate or not), and then put a stripped copy on the production machine. Cyrille> HP's gdb adds a great feature called packcore to ease the Cyrille> packing of everything needed for offline browsing with one Cyrille> command. Maybe this could be done from Python. I don't know offhand. Tom