This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Array of short values
- From: Frederic RISS <frederic dot riss at st dot com>
- To: Christoph Bartoschek <bartoschek at or dot uni-bonn dot de>
- Cc: gdb at sourceware dot org
- Date: Wed, 14 Feb 2007 16:42:01 +0100
- Subject: Re: Array of short values
- References: <200702141632.08219.bartoschek@or.uni-bonn.de>
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.