From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10176 invoked by alias); 14 Feb 2007 15:42:29 -0000 Received: (qmail 10133 invoked by uid 22791); 14 Feb 2007 15:42:28 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Feb 2007 15:42:13 +0000 Received: from lon-out-01.spheriq.net ([195.46.50.129]) by lon-del-03.spheriq.net with ESMTP id l1EFg8Kp013712 for ; Wed, 14 Feb 2007 15:42:08 GMT Received: from lon-cus-02.spheriq.net (lon-cus-02.spheriq.net [195.46.50.38]) by lon-out-01.spheriq.net with ESMTP id l1EFg6G5025817 for ; Wed, 14 Feb 2007 15:42:07 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-02.spheriq.net with ESMTP id l1EFg3O9025208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Feb 2007 15:42:06 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4112CDA48; Wed, 14 Feb 2007 15:42:03 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F004F473CC; Wed, 14 Feb 2007 15:42:02 +0000 (GMT) Received: from [10.18.180.51] (crx3051.cro.st.com [10.18.180.51]) by mail1.cro.st.com (MOS 3.7.5a-GA) with ESMTP id CJS91204 (AUTH "frederic riss"); Wed, 14 Feb 2007 16:42:02 +0100 (CET) Subject: Re: Array of short values From: Frederic RISS To: Christoph Bartoschek Cc: gdb@sourceware.org In-Reply-To: <200702141632.08219.bartoschek@or.uni-bonn.de> References: <200702141632.08219.bartoschek@or.uni-bonn.de> Content-Type: text/plain Date: Wed, 14 Feb 2007 15:43:00 -0000 Message-Id: <1171467722.3236.62.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00124.txt.bz2 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.