RFA: addresses and pointers may be different sizes while printing

Jim Blandy jimb@zwingli.cygnus.com
Thu Jul 5 16:33:00 GMT 2001


Andrew Cagney <ac131313@cygnus.com> writes:
> to be 110% sure, all of:
> 
> 	(gdb) print main
> 	(gdb) print &main
> 	(gdb) print/x main
> 	(gdb) print/x &main
> 
> end up displaying the same hex (CORE_ADDR) value?

Yes, except for the third one, which says 

(gdb) print/x main
$3 = Value can't be converted to integer.



More information about the Gdb-patches mailing list