~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to gdb/ax-general.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
4
4
 
5
5
   This file is part of GDB.
272
272
  x->buf[x->len + 2] = (reg) & 0xff;
273
273
  x->len += 3;
274
274
}
 
275
 
 
276
/* Assemble code to operate on a trace state variable.  */
 
277
 
 
278
void
 
279
ax_tsv (struct agent_expr *x, enum agent_op op, int num)
 
280
{
 
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);
 
284
 
 
285
  grow_expr (x, 3);
 
286
  x->buf[x->len] = op;
 
287
  x->buf[x->len + 1] = (num >> 8) & 0xff;
 
288
  x->buf[x->len + 2] = (num) & 0xff;
 
289
  x->len += 3;
 
290
}
275
291
 
276
292
 
277
293
 
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 */
332
348
};