Using Pointer Arithmetic

You can use C and C++ pointer-type conversions to display the contents of a single address in decimal. Using the print command, the syntax is as follows:

 

(idb) print *(int *)(address)

 

Using the same pointer arithmetic, you can use the assign command to alter the contents of a single address. Use the following syntax:

 

(idb) assign *(int *)(address) = value

 

The following example shows how to use pointer arithmetic to examine and change the contents of a single address:

 

(idb) print *(int*)(0x10000000)

 4198916

(idb) assign *(int*)(0x10000000) = 4194744

(idb) print *(int*)(0x10000000)

 4194744

(idb)