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

Andrew Burgess aburgess@broadcom.com
Wed Jun 29 10:09:00 GMT 2011


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



More information about the Gdb-patches mailing list