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

Andrew Burgess
2011-06-29T10:09:16Z

On 28/06/2011 21:07, Tom Tromey wrote:
>
> Whether this one meets the bar, I don't know. Is basename really the
> obvious transform to apply? What about just dropping the compilation
> directory?

I wonder if an option similar to how the -p switch too patch works might
be a good fit?
The default value would be 0, leaving the path unchanged. A special
value of -1 might give the basename behaviour, while any other positive
value would strip off that number of leading directories (capped to the
basename behaviour).

Andrew