This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFA: addresses and pointers may be different sizes while printing



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]