Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)

Pedro Alves
2011-07-19T13:52:03Z

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