This is the mail archive of the gdb@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: xref a subheading within a node


> Date: Thu, 25 Oct 2012 14:13:01 +0100
> From: Phil Muldoon <pmuldoon@redhat.com>
> 
> 
> I want to cross reference a particular subheading in the MI node of
> the GDB patch I am writing. So in the node:
> 
> @node GDB/MI Program Execution
> @section @sc{gdb/mi} Program Execution
> 
> I want my @xref to point directly at the @subheading:
> 
> @subheading The @code{-stack-list-frames} Command
> @findex -stack-list-frames
> 
> But my @xref:
> 
> @xref{GDB/MI Program Execution,, The -stack-list-frames Command}.
> 
> While it works, in the PDF output only points to the beginning of the
> node:
> 
> see Section 27.14 [The -stack-list-frames Command], page 384.
> 
> This is a large section so I was hoping for more accuracy than that.

That's why we should convert each subheading into a node, btw.

Anyway, I think using @anchor near the subheading, and then changing
the cross-reference to point to that anchor will do what you want.


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