set (idb mode only)

Set a debugger variable to a value or show all debugger variables.

Syntax

set [ variable = expr ]

Parameters

variable

A debugger variable, memory address, or expression that is accessible according to the scope and visibility rules of the language.

expr

The new definition of variable. This expression can be any expression that is valid in the current context.

Description

This command sets a debugger variable, memory address, or expression that is accessible according to the scope and visibility rules of the language of the debuggee. Alternatively, this command displays a list of all debugger variables and their values.

To set a debugger variable, enter this command followed by a variable name, an equal sign, and a definition. Enclose string definitions in quotes.

To display the definitions of all debugger variables, enter this command without any parameters.

To display the definition of a single debugger variable, use the print command.

To delete one or all debugger variables, use the unset command.

To delete one or all environment variables, use the unsetenv command (not the unset command).

Enter help $variable for a list of all predefined debugger variables.

Example

(idb) print $givedebughints
0
(idb) set $givedebughints = "gdb"
(idb) print $givedebughints
1

See Also


Submit feedback on this help topic

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