Hi, with the change several days ago, I see some texts were added in the gdb manual to tell the user about changing how file names are displayed. gdb/doc/gdb.texinfo | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a8a7284..a448c97 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -6535,6 +6535,24 @@ unlimited. Display the current limit on backtrace levels. @end table +You can control how file names are displayed. + +@table @code +@item set filename-display +@itemx set filename-display relative +@cindex filename-display +Display file names relative to the compilation directory. This is the default. + +@item set filename-display basename +Display only basename of a filename. + +@item set filename-display absolute +Display an absolute filename. + +@item show filename-display +Show the current way to display filenames. +@end table + @node Selection @section Selecting a Frame These changes were under the frame/backtrace section of the manual, but those options were in-fact affect on other part of the command response. E.g. the breakpoint command response. E.g.: set filename-display absolute will affect the result. [debug]> break "E:/code/cb/test_code/mortenr2012-01-15/main.cpp:16" [debug]Breakpoint 2 at 0x4016ef: file E:\code\cb\test_code\mortenr2012-01-15\main.cpp, line 16. So, please mention or add some texts for this kind of information. Thanks.
I did not update the doc after extending the scope of the patch, it sure needs a fix, thanks.