From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6428 invoked by alias); 10 Oct 2011 14:58:15 -0000 Received: (qmail 6410 invoked by uid 22791); 10 Oct 2011 14:58:11 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_DB,TW_QU,T_FRT_CLICK X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Oct 2011 14:57:56 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9AEvr4j029093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Oct 2011 10:57:53 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9AEvpjN008993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Oct 2011 10:57:52 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9AEvoZ7009494; Mon, 10 Oct 2011 16:57:50 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9AEvnnd009493; Mon, 10 Oct 2011 16:57:49 +0200 Date: Mon, 10 Oct 2011 14:58:00 -0000 From: Jan Kratochvil To: Ulrich Weigand Cc: eliz@gnu.org, gdb-patches@sourceware.org Subject: [patch] New test+use texinfo @click - @HAVE_MAKEINFO_CLICK@ [Re: doc build failure (Re: [patch 04/12] entryval#3: Virtual tail call frames)] Message-ID: <20111010145749.GA9444@host1.jankratochvil.net> References: <201110101357.p9ADvmvK012977@d06av02.portsmouth.uk.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110101357.p9ADvmvK012977@d06av02.portsmouth.uk.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00270.txt.bz2 On Mon, 10 Oct 2011 15:57:48 +0200, Ulrich Weigand wrote: > Eli Zaretskii wrote: > > @arrow is from a relatively new version of Texinfo. What version do > > you have on that machine? > > This is a RHEL 5 machine, which has: > > [uweigand@pctc1 ~]$ makeinfo --version > makeinfo (GNU texinfo) 4.8 I will check in the patch below if no comments appear. Thanks, Jan gdb/ 2011-10-10 Jan Kratochvil Fix compatibility with texinfo versions older than 4.12. * configure: Regenerate. * configure.ac (HAVE_MAKEINFO_CLICK): New test for AC_SUBST. gdb/doc/ 2011-10-10 Jan Kratochvil Fix compatibility with texinfo versions older than 4.12. * Makefile.in (MAKEINFO): Add @HAVE_MAKEINFO_CLICK@. * gdb.texinfo (Tail Call Frames): Convert @arrow{} to @click, make the sentence conditional on HAVE_MAKEINFO_CLICK. --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -2179,6 +2179,20 @@ dnl At the moment, we just assume it's UTF-8. AC_DEFINE(GDB_DEFAULT_HOST_CHARSET, "UTF-8", [Define to be a string naming the default host character set.]) +AC_CACHE_CHECK([whether makeinfo supports @click], gdb_cv_have_makeinfo_click, + [echo '@clicksequence{a @click{} b}' >conftest.texinfo + if makeinfo conftest.texinfo >/dev/null 2>/dev/null; then + gdb_cv_have_makeinfo_click=yes + else + gdb_cv_have_makeinfo_click=no + fi]) +if test x"$gdb_cv_have_makeinfo_click" = xyes; then + HAVE_MAKEINFO_CLICK="-DHAVE_MAKEINFO_CLICK" +else + HAVE_MAKEINFO_CLICK="" +fi +AC_SUBST(HAVE_MAKEINFO_CLICK) + AC_OUTPUT(Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile, [ case x$CONFIG_HEADERS in --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -45,7 +45,7 @@ gdbdir = $(srcdir)/.. TEXIDIR=${gdbdir}/../texinfo # where to find makeinfo, preferably one designed for texinfo-2 -MAKEINFO=makeinfo +MAKEINFO=makeinfo @HAVE_MAKEINFO_CLICK@ MAKEHTML = $(MAKEINFO) --html MAKEHTMLFLAGS = --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -9789,11 +9789,13 @@ tailcall: reduced: 0x4004d2(a) | #2 0x0000000000400395 in main () at t.c:9 @end smallexample -Frames #0 and #2 are real, #1 is a virtual tail call frame. The code can have -possible execution paths -@code{main@arrow{}a@arrow{}b@arrow{}c@arrow{}d@arrow{}f} or -@code{main@arrow{}a@arrow{}b@arrow{}e@arrow{}f}, @value{GDBN} cannot find which +Frames #0 and #2 are real, #1 is a virtual tail call frame. +@ifset HAVE_MAKEINFO_CLICK +The code can have possible execution paths +@clicksequence{main@click{}a@click{}b@click{}c@click{}d@click{}f} or +@clicksequence{main@click{}a@click{}b@click{}e@click{}f}, @value{GDBN} cannot find which one from the inferior state. +@end ifset @code{initial:} state shows some random possible calling sequence @value{GDBN} has found. It then finds another possible calling sequcen - that one is