X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fdoc%2Fpython.texi;h=b47c38deef70b3d394b9e22b839379062175afac;hb=2e62ab400ff96334c92e5acf0a462cb9dc0d19a7;hp=36947de30b090588b231afb691b69a48a6ac5173;hpb=4be290b2517839872ef7de47230be8dbd291a7e5;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 36947de30b..b47c38deef 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -931,6 +931,11 @@ Number of array elements to print, or @code{0} to print an unlimited number of elements (see @code{set print elements} in @ref{Print Settings}). +@item max_depth +The maximum depth to print for nested structs and unions, or @code{-1} +to print an unlimited number of elements (see @code{set print +max-depth} in @ref{Print Settings}). + @item repeat_threshold Set the threshold for suppressing display of repeated array elements, or @code{0} to represent all elements, even if repeated. (See @code{set @@ -1365,6 +1370,9 @@ object which is convertible to a @value{GDBN} value. This method is optional. If it does not exist, @value{GDBN} will act as though the value has no children. + +Children may be hidden from display based on the value of @samp{set +print max-depth} (@pxref{Print Settings}). @end defun @defun pretty_printer.display_hint (self)