Display a complex structure with formatting.
printf format [, expr,…]
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. |
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.
(idb) printf "The PC is 0x%x", $pc
The PC is 0x8051a3c
Copyright © 2001-2011, Intel Corporation. All rights reserved.