~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to opcodes/i386-dis.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9415
9415
  char *prefix_obufp;
9416
9416
 
9417
9417
  if (info->mach == bfd_mach_x86_64_intel_syntax
9418
 
      || info->mach == bfd_mach_x86_64)
 
9418
      || info->mach == bfd_mach_x86_64
 
9419
      || info->mach == bfd_mach_l1om
 
9420
      || info->mach == bfd_mach_l1om_intel_syntax)
9419
9421
    address_mode = mode_64bit;
9420
9422
  else
9421
9423
    address_mode = mode_32bit;
9422
9424
 
9423
9425
  if (intel_syntax == (char) -1)
9424
9426
    intel_syntax = (info->mach == bfd_mach_i386_i386_intel_syntax
9425
 
                    || info->mach == bfd_mach_x86_64_intel_syntax);
 
9427
                    || info->mach == bfd_mach_x86_64_intel_syntax
 
9428
                    || info->mach == bfd_mach_l1om_intel_syntax);
9426
9429
 
9427
9430
  if (info->mach == bfd_mach_i386_i386
9428
9431
      || info->mach == bfd_mach_x86_64
 
9432
      || info->mach == bfd_mach_l1om
9429
9433
      || info->mach == bfd_mach_i386_i386_intel_syntax
9430
 
      || info->mach == bfd_mach_x86_64_intel_syntax)
 
9434
      || info->mach == bfd_mach_x86_64_intel_syntax
 
9435
      || info->mach == bfd_mach_l1om_intel_syntax)
9431
9436
    priv.orig_sizeflag = AFLAG | DFLAG;
9432
9437
  else if (info->mach == bfd_mach_i386_i8086)
9433
9438
    priv.orig_sizeflag = 0;
9529
9534
    }
9530
9535
 
9531
9536
  /* The output looks better if we put 7 bytes on a line, since that
9532
 
     puts most long word instructions on a single line.  */
9533
 
  info->bytes_per_line = 7;
 
9537
     puts most long word instructions on a single line.  Use 8 bytes
 
9538
     for Intel L1OM.  */
 
9539
  if (info->mach == bfd_mach_l1om
 
9540
      || info->mach == bfd_mach_l1om_intel_syntax)
 
9541
    info->bytes_per_line = 8;
 
9542
  else
 
9543
    info->bytes_per_line = 7;
9534
9544
 
9535
9545
  info->private_data = &priv;
9536
9546
  priv.max_fetched = priv.the_buffer;
10080
10090
 
10081
10091
  /* db_4  6 */
10082
10092
  {
10083
 
    "feni(287 only)","fdisi(287 only)","fNclex","fNinit",
10084
 
    "fNsetpm(287 only)","(bad)","(bad)","(bad)",
 
10093
    "fNeni(8087 only)","fNdisi(8087 only)","fNclex","fNinit",
 
10094
    "fNsetpm(287 only)","frstpm(287 only)","(bad)","(bad)",
10085
10095
  },
10086
10096
 
10087
10097
  /* de_3  7 */
10174
10184
 
10175
10185
/* Capital letters in template are macros.  */
10176
10186
static int
10177
 
putop (const char *template, int sizeflag)
 
10187
putop (const char *in_template, int sizeflag)
10178
10188
{
10179
10189
  const char *p;
10180
10190
  int alt = 0;
10188
10198
  else                                  \
10189
10199
    abort ();
10190
10200
 
10191
 
  for (p = template; *p; p++)
 
10201
  for (p = in_template; *p; p++)
10192
10202
    {
10193
10203
      switch (*p)
10194
10204
        {