How to print a binary value(1010) into decimal value(10) in GDB?
<p>I want to print the decimal value of 1010 in <code>gdb</code>,
but it prints the result as it is what I gave last.</p>

<pre><code>(gdb) 
(gdb) p/d 1010
$1 = 1010
(gdb)
</code></pre>