1
1
/* Functions for manipulating expressions designed to be executed on the agent
2
Copyright (C) 1998, 1999, 2000, 2007, 2008, 2009
2
Copyright (C) 1998, 1999, 2000, 2007, 2008, 2009, 2010
3
3
Free Software Foundation, Inc.
5
5
This file is part of GDB.
272
272
x->buf[x->len + 2] = (reg) & 0xff;
276
/* Assemble code to operate on a trace state variable. */
279
ax_tsv (struct agent_expr *x, enum agent_op op, int num)
281
/* Make sure the tsv number is in range. */
282
if (num < 0 || num > 0xffff)
283
internal_error (__FILE__, __LINE__, _("ax-general.c (ax_tsv): variable number is %d, out of range"), num);
287
x->buf[x->len + 1] = (num >> 8) & 0xff;
288
x->buf[x->len + 2] = (num) & 0xff;
324
340
{"pop", 0, 0, 1, 0}, /* 0x29 */
325
341
{"zero_ext", 1, 0, 1, 1}, /* 0x2a */
326
342
{"swap", 0, 0, 2, 2}, /* 0x2b */
327
{0, 0, 0, 0, 0}, /* 0x2c */
328
{0, 0, 0, 0, 0}, /* 0x2d */
329
{0, 0, 0, 0, 0}, /* 0x2e */
343
{"getv", 2, 0, 0, 1}, /* 0x2c */
344
{"setv", 2, 0, 0, 1}, /* 0x2d */
345
{"tracev", 2, 0, 0, 1}, /* 0x2e */
330
346
{0, 0, 0, 0, 0}, /* 0x2f */
331
347
{"trace16", 2, 0, 1, 1}, /* 0x30 */