Bug 15150 - suggestion on adding some statements/words about how file names are displayed.
Summary: suggestion on adding some statements/words about how file names are displayed.
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 15:14 UTC by asmwarrior
Modified: 2013-02-16 08:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asmwarrior 2013-02-15 15:14:37 UTC
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.
Comment 1 Jan Kratochvil 2013-02-16 08:44:09 UTC
I did not update the doc after extending the scope of the patch, it sure needs a fix, thanks.