public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][PR gdb/25716] Modify Docs to avoid HTML filename collision on Windows
@ 2020-06-19 16:41 Carroll, Paul
  2020-07-07 15:45 ` Andrew Burgess
  0 siblings, 1 reply; 5+ messages in thread
From: Carroll, Paul @ 2020-06-19 16:41 UTC (permalink / raw)
  To: gdb-patches

This is an issue involving the documentation for GDB.
In our case, we use texi2html to convert the gdb.texinfo file into multiple HTML files.
When this is done, we end up with some HTML files that have different contents, but the same name (ignoring case).
That is, we get two files, frame-apply.html and Frame-Apply.html.
The first HTML file is an anchor that points to another HTML file.
The second HTML file is an actual piece of text in the documentation - a section.
This is not an issue for Linux, but can be a problem for Windows system, where filenames are case insensitive.

This patch fix this problem, which results in the 'frame-apply.html' file not being generated.
This patch removes an @anchor(frame apply) and modifies the 2 @xref's that refer to it,
so as to avoid the creation of multiple files that are only different by case.

2020-06-19  Paul Carroll  <pcarroll@codesourcery.com>
     PR gdb/25716
     * gdb/doc/gdb.texinfo (Frame Apply): Remove anchor for 'frame 
apply' and adjust xrefs to it.

---
  gdb/doc/gdb.texinfo | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 59e3e75d18..5301e98fee 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -3600,7 +3600,7 @@ is, using:
  @end smallexample

  The @code{tfaas} command accepts the same options as the @code{frame
-apply} command.  @xref{frame apply}.
+apply} command.  @xref{Frame Apply, frame apply}.

  @kindex thread name
  @cindex name a thread
@@ -8358,7 +8358,6 @@ tfaas i lo -q -t lock_something_t

  @node Frame Apply
  @section Applying a Command to Several Frames.
-@anchor{frame apply}
  @kindex frame apply
  @cindex apply command to several frames
  @table @code
@@ -8490,7 +8489,7 @@ is, using:
  @end smallexample

  The @code{faas} command accepts the same options as the @code{frame
-apply} command.  @xref{frame apply}.
+apply} command.  @xref{Frame Apply, frame apply}.

  Note that the command @code{tfaas @var{command}} applies @var{command}
  on all frames of all threads.  See @xref{Threads,,Threads}.
-- 
2.21.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-08 18:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 16:41 [PATCH][PR gdb/25716] Modify Docs to avoid HTML filename collision on Windows Carroll, Paul
2020-07-07 15:45 ` Andrew Burgess
2020-07-07 19:51   ` Carroll, Paul
2020-07-08 10:42     ` Andrew Burgess
2020-07-08 18:13   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).