set print repeats (gdb mode only)

Limit the number of consecutive, identical array elements the debugger prints.

Syntax

set print repeats threshold

Parameters

threshold

The maximum number of consecutive, identical array elements the debugger prints.

The default value is 10

Description

This command limits the number of consecutive, identical array elements the debugger prints. When the number of such elements exceeds threshold, instead of printing the elements, the debugger prints repeats n times, where n is the number of repetitions.

When threshold is 0, the debugger prints all consecutive, identical array elements.

Example

(idb) p pBig
$1 = "011111211111333333333", '1' <repeats 40 times>
(idb) set print repe 2
(idb) p pBig
$2 = "0", '1' <repeats 5 times>, "2", '1' <repeats 5 times>, '3' <repeats 9 times>, '1' <repeats 40 times>
(idb)   

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.