printf

Display a complex structure with formatting.

Syntax

printf format [, expr,…]

Parameters

format

A string expression of characters and conversion specifications using the same format specifiers as the printf C function.

expr,…

One or more expressions separated by commas.

Description

This command formats and displays a complex structure. This command requires a running target program because it uses libc. A comma must precede the first expr if there is one. Separate expressions with commas.

Example

(idb) printf "The PC is 0x%x", $pc
The PC is 0x8051a3c

Submit feedback on this help topic

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