This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]