~ubuntu-branches/debian/sid/gdb/sid

« back to all changes in this revision

Viewing changes to opcodes/m32c-asm.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:
4
4
   THIS FILE IS MACHINE GENERATED WITH CGEN.
5
5
   - the resultant file is machine generated, cgen-asm.in isn't
6
6
 
7
 
   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2005, 2007, 2008
 
7
   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2005, 2007, 2008, 2010
8
8
   Free Software Foundation, Inc.
9
9
 
10
10
   This file is part of libopcodes.
125
125
                 int opindex, unsigned long *valuep)
126
126
{
127
127
  const char *errmsg = 0;
128
 
  unsigned long value;
 
128
  unsigned long value = 0;
129
129
  long have_zero = 0;
130
130
 
131
131
  if (strncasecmp (*strp, "%dsp8(", 6) == 0)
132
132
    {
133
133
      enum cgen_parse_operand_result result_type;
134
 
      bfd_vma value;
135
 
      const char *errmsg;
 
134
      bfd_vma val;
136
135
 
137
136
      *strp += 6;
138
137
      errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_8,
139
 
                                   & result_type, & value);
 
138
                                   & result_type, & val);
140
139
      if (**strp != ')')
141
140
        return _("missing `)'");
142
141
      (*strp) ++;
143
142
 
144
143
      if (errmsg == NULL
145
144
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
146
 
        {
147
 
          return _("%dsp8() takes a symbolic address, not a number");
148
 
        }
 
145
        return _("%dsp8() takes a symbolic address, not a number");
 
146
 
 
147
      value = val;
149
148
      *valuep = value;
150
149
      return errmsg;
151
150
    }
222
221
               int opindex, signed long *valuep)
223
222
{
224
223
  const char *errmsg = 0;
225
 
  signed long value;
 
224
  signed long value = 0;
226
225
 
227
226
  if (strncasecmp (*strp, "%hi8(", 5) == 0)
228
227
    {
229
228
      enum cgen_parse_operand_result result_type;
230
 
      bfd_vma value;
231
 
      const char *errmsg;
 
229
      bfd_vma val;
232
230
 
233
231
      *strp += 5;
234
232
      errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32C_HI8,
235
 
                                   & result_type, & value);
 
233
                                   & result_type, & val);
236
234
      if (**strp != ')')
237
235
        return _("missing `)'");
238
236
      (*strp) ++;
239
237
 
240
238
      if (errmsg == NULL
241
239
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
242
 
        {
243
 
          value >>= 16;
244
 
        }
 
240
        val >>= 16;
 
241
 
 
242
      value = val;
245
243
      *valuep = value;
246
244
      return errmsg;
247
245
    }
263
261
                 int opindex, unsigned long *valuep)
264
262
{
265
263
  const char *errmsg = 0;
266
 
  unsigned long value;
 
264
  unsigned long value = 0;
267
265
  long have_zero = 0;
268
266
 
269
267
  if (strncasecmp (*strp, "%dsp16(", 7) == 0)
270
268
    {
271
269
      enum cgen_parse_operand_result result_type;
272
 
      bfd_vma value;
273
 
      const char *errmsg;
 
270
      bfd_vma val;
274
271
 
275
272
      *strp += 7;
276
273
      errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_16,
277
 
                                   & result_type, & value);
 
274
                                   & result_type, & val);
278
275
      if (**strp != ')')
279
276
        return _("missing `)'");
280
277
      (*strp) ++;
281
278
 
282
279
      if (errmsg == NULL
283
280
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
284
 
        {
285
 
          return _("%dsp16() takes a symbolic address, not a number");
286
 
        }
 
281
        return _("%dsp16() takes a symbolic address, not a number");
 
282
 
 
283
      value = val;
287
284
      *valuep = value;
288
285
      return errmsg;
289
286
    }
323
320
               int opindex, signed long *valuep)
324
321
{
325
322
  const char *errmsg = 0;
326
 
  signed long value;
 
323
  signed long value = 0;
327
324
 
328
325
  if (strncasecmp (*strp, "%lo16(", 6) == 0)
329
326
    {
330
327
      enum cgen_parse_operand_result result_type;
331
 
      bfd_vma value;
332
 
      const char *errmsg;
 
328
      bfd_vma val;
333
329
 
334
330
      *strp += 6;
335
331
      errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16,
336
 
                                   & result_type, & value);
 
332
                                   & result_type, & val);
337
333
      if (**strp != ')')
338
334
        return _("missing `)'");
339
335
      (*strp) ++;
340
336
 
341
337
      if (errmsg == NULL
342
338
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
343
 
        {
344
 
          value &= 0xffff;
345
 
        }
 
339
        val &= 0xffff;
 
340
 
 
341
      value = val;
346
342
      *valuep = value;
347
343
      return errmsg;
348
344
    }
350
346
  if (strncasecmp (*strp, "%hi16(", 6) == 0)
351
347
    {
352
348
      enum cgen_parse_operand_result result_type;
353
 
      bfd_vma value;
354
 
      const char *errmsg;
 
349
      bfd_vma val;
355
350
 
356
351
      *strp += 6;
357
352
      errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_HI16,
358
 
                                   & result_type, & value);
 
353
                                   & result_type, & val);
359
354
      if (**strp != ')')
360
355
        return _("missing `)'");
361
356
      (*strp) ++;
362
357
 
363
358
      if (errmsg == NULL
364
359
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
365
 
        {
366
 
          value >>= 16;
367
 
        }
 
360
        val >>= 16;
 
361
 
 
362
      value = val;
368
363
      *valuep = value;
369
364
      return errmsg;
370
365
    }