Array of short values

Frederic RISS frederic.riss@st.com
Wed Feb 14 15:43:00 GMT 2007


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.



More information about the Gdb mailing list