This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>
- Cc: Joel Brobecker <brobecker at adacore dot com>, hal9000ed2k at gmail dot com, pmuldoon at redhat dot com, tromey at redhat dot com
- Date: Tue, 19 Jul 2011 14:51:37 +0100
- Subject: Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
- References: <BANLkTinD+9_Mkug8o2VhZ03L6XSriL_RKQ@mail.gmail.com> <20110704205101.GU2407@adacore.com> <83liwdphqa.fsf@gnu.org>
On Tuesday 05 July 2011 03:46:21, Eli Zaretskii wrote:
> > Date: Mon, 4 Jul 2011 13:51:01 -0700
> > From: Joel Brobecker <brobecker@adacore.com>
> > Cc: iam ahal <hal9000ed2k@gmail.com>, pmuldoon@redhat.com,
> > tromey@redhat.com, gdb-patches@sourceware.org
> >
> > Now, to find an appropriate name for that setting...
>
> backtrace-display-basename-only?
We already have the set backtrace prefix:
(gdb) set backtrace
limit past-entry past-main
So that'd make it "set backtrace display-basename-only on|off"
Or maybe an enum. Something like:
set backtrace display basename-only|the-whole-sheebang
--
Pedro Alves