set print elements (gdb mode only)

Set a limit on the number of array elements to print.

Syntax

set print elements num

Parameters

num

The number of elements to print.

The default value is 200.

Description

This command sets a limit on the number of array elements to print, which may be useful in a case where the debugger is printing a large array. This limit also applies to the number of characters the debugger will print when printing the value of a char * variable.

If you set num to zero, there is no limit on the number of elements.

Example

(idb) p pc
$1 = (char *) 0x80485b8 "1234"
(idb) set prin ele 2
(idb) p pc
$2 = (char *) 0x80485b8 "12"...
(idb)   

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.