From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6146 invoked by alias); 7 Dec 2011 07:55:33 -0000 Received: (qmail 6134 invoked by uid 22791); 7 Dec 2011 07:55:32 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Dec 2011 07:55:18 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RYCLT-0000ap-OY; Wed, 07 Dec 2011 02:55:15 -0500 Date: Wed, 07 Dec 2011 08:00:00 -0000 Message-Id: From: Eli Zaretskii To: Tom Tromey CC: pedro@codesourcery.com, hal9000ed2k@gmail.com, dje@google.com, gdb-patches@sourceware.org, pmuldoon@redhat.com, brobecker@adacore.com, drow@false.org, jan.kratochvil@redhat.com In-reply-to: (message from Tom Tromey on Tue, 06 Dec 2011 13:40:16 -0700) Subject: Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename) Reply-to: Eli Zaretskii References: <83fwgzbrp9.fsf@gnu.org> <201112061249.47758.pedro@codesourcery.com> X-IsSubscribed: yes 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-12/txt/msg00220.txt.bz2 > From: Tom Tromey > Cc: Pedro Alves , hal9000ed2k@gmail.com, > dje@google.com, gdb-patches@sourceware.org, pmuldoon@redhat.com, > brobecker@adacore.com, drow@false.org, jan.kratochvil@redhat.com > Date: Tue, 06 Dec 2011 13:40:16 -0700 > > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> Then maybe "as-recorded"? Meaning that this is how the compiler > Eli> recorded the file name in the debug info? > > Works for me. Thanks for the feedback. However, I still would like to know whether my guess regarding the current default, viz.: I think I know the answer. We show by default whatever the compiler saw on its command line when it compiled the source file. E.g., if the command was gcc -c ... /foo/bar/baz.c then GDB will show "/foo/bar/baz.c", but if the compilation command was gcc -c ... baz.c then GDB will show "baz.c". is correct. If this is correct, then we will need an additional setting of the new option. Or maybe I misunderstand, and the consensus here is to _rename_ "full" to "as-recorded" and otherwise leave the implementation intact?