set prompt (gdb mode only)

Set a new string for the debugger prompt.

Syntax

set prompt prompt  

Parameters

prompt

The new prompt. The default debugger prompt is (idb).

Description

This command sets a new string for the debugger prompt.

If prompt contains spaces or special characters, enclose the parameter in quotes ("").

You also can specify a debugger prompt when you start the debugger from a shell with the -prompt option. For example:

% idb -prompt ">> "  
>> quit

You can also change the prompt by setting the $prompt debugger variable. For example:

(idb) set $prompt = "newPrompt>> "
newPrompt>> 

To see the current debugger prompt, use the show prompt command.

Example

(idb) set prompt "(gdb mode) "
(gdb mode) show prompt
idb's prompt is "(gdb mode) ". 
(gdb mode)

There is a space at the end of the first line of the example above. If the space is missed, the result will be as follows:

(idb) set prompt "(gdb mode)"
(gdb mode)show prompt  
idb's prompt is "(gdb mode)". 
(gdb mode)

See Also


Submit feedback on this help topic

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