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]

Array of short values


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}

Greetings,
Christoph


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