From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6447 invoked by alias); 27 Jun 2011 16:00:52 -0000 Received: (qmail 6383 invoked by uid 22791); 27 Jun 2011 16:00:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Jun 2011 16:00:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7A17B2BB213; Mon, 27 Jun 2011 12:00:33 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3ItlHyer8q6j; Mon, 27 Jun 2011 12:00:33 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 47C0E2BB212; Mon, 27 Jun 2011 12:00:33 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 590CE145615; Mon, 27 Jun 2011 09:00:29 -0700 (PDT) Date: Mon, 27 Jun 2011 16:00:00 -0000 From: Joel Brobecker To: Phil Muldoon Cc: iam ahal , gdb-patches@sourceware.org Subject: Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename) Message-ID: <20110627160029.GF20676@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00397.txt.bz2 > You could use Python to write a custom backtrace to do this. But that > is neither here or there to this patch. Yeah, I am wondering which way would be best. It seems like a Python backtrace decorator would already work, or could be made to work. But on the other hand, we can't ignore the fact that linking against the Python library is not necessary easy. In particular, things seems to work OK on Windows, but I noticed that GDB crashes when trying to source a Python script. I haven't tried linking with Python on x64 Windows yet. So, there are pluses and minuses on both ends. I am wondering what everyone else thinks... If we were to implement this in GDB itself, I'd rather go with a setting rather than a command-line option. But that's just a suggestion. -- Joel