Re: [RFA] Avoid recursivly defined user functions.

Don Howard
2002-04-13T16:33:10Z

How's this?

2002-04-13 Don Howard <dhoward@redhat.com>

From Eli Zaretskii <eliz@is.elta.co.il>
* gdb.texinfo (show max-user-call-depth): Correct formatting.
Provide a better explaination of this feature.

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.96
diff -p -u -w -r1.96 gdb.texinfo
--- gdb.texinfo 12 Apr 2002 22:31:23 -0000 1.96
+++ gdb.texinfo 13 Apr 2002 16:30:18 -0000
@@ -12784,9 +12784,10 @@ definitions for all user-defined command
@kindex show max-user-call-depth
@kindex set max-user-call-depth
@item show max-user-call-depth
-@item set max-user-call-depth
-The value of @code{max-user-call-depth} controls how many levels deep a
-user-defined call chain can go. Default is 1024.
+@itemx set max-user-call-depth
+The value of @code{max-user-call-depth} controls how many recursion
+levels are allowed in user-defined commands before GDB suspects an
+infinite recursion and aborts the command.

@end table

On Sat, 13 Apr 2002, Eli Zaretskii wrote:

> > Date: Fri, 12 Apr 2002 15:31:30 -0700 (PDT)
> > From: Don Howard <dhoward@redhat.com>
> >
> > +@kindex show max-user-call-depth
> > +@kindex set max-user-call-depth
> > +@item show max-user-call-depth
> > +@item set max-user-call-depth
>
> The second @item should be @itemx. In general, all the @item's but
> the first one should be @itemx when they all pertain to the same entry
> in the @table (or in @itemize list). This is so the produced text
> looks like this:
>
> [previous text]
>
> show max-user-call-depth
> set max-user-call-depth
> The value of `max-user-call-depth' controls how many...
>
> instead of this:
>
> [previous text]
>
> show max-user-call-depth
>
> set max-user-call-depth
> The value of `max-user-call-depth' controls how many...
>
> where the extra line between the two @item's makes the first one look
> as if the following text doesn't apply to it.
>
> > +The value of @code{max-user-call-depth} controls how many levels deep a
> > +user-defined call chain can go.
>
> Perhaps this text is a bit more clear:
>
> The value of @code{max-user-call-depth} controls how many recursion
> levels are allowed in user-defined commands before GDB suspects an
> infinite recursion and aborts the command.
>

--
dhoward@redhat.com
gdb engineering