This is the mail archive of the gdb@sourceware.org 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]
Other format: [Raw text]

Re: Array of short values


On Wed, 2007-02-14 at 16:32 +0100, Christoph Bartoschek wrote:
> Hi,
> 
> is it possible to easily set an array of short as a convenience variable?
> 
> set $arr = (short *) {1, 2, 3}
> 
> Currently I have to use:
> 
> set $arr = (short *) {0x00020001, 0x00000003}

try 
	set $arr =  {(short)1, (short)2, (short)3}

Not very convenient, but it should work

Fred.


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