2010-05-18 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L. Add details in the messages. (evax_bfd_print_image): Change message.
This commit is contained in:
parent
18ae9cc1db
commit
0fca53b78d
2 changed files with 20 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-05-18 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
|
||||||
|
Add details in the messages.
|
||||||
|
(evax_bfd_print_image): Change message.
|
||||||
|
|
||||||
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
|
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR gas/11600
|
PR gas/11600
|
||||||
|
|
|
@ -6954,19 +6954,25 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file)
|
||||||
break;
|
break;
|
||||||
case DST__K_INCR_LINUM:
|
case DST__K_INCR_LINUM:
|
||||||
val = buf[1];
|
val = buf[1];
|
||||||
fprintf (file, _("incr_linum: +%u\n"), val);
|
fprintf (file, _("incr_linum(b): +%u\n"), val);
|
||||||
line += val;
|
line += val;
|
||||||
cmdlen = 2;
|
cmdlen = 2;
|
||||||
break;
|
break;
|
||||||
case DST__K_INCR_LINUM_W:
|
case DST__K_INCR_LINUM_W:
|
||||||
val = bfd_getl16 (buf + 1);
|
val = bfd_getl16 (buf + 1);
|
||||||
fprintf (file, _("incr_linum: +%u\n"), val);
|
fprintf (file, _("incr_linum_w: +%u\n"), val);
|
||||||
line += val;
|
line += val;
|
||||||
cmdlen = 3;
|
cmdlen = 3;
|
||||||
break;
|
break;
|
||||||
|
case DST__K_INCR_LINUM_L:
|
||||||
|
val = bfd_getl32 (buf + 1);
|
||||||
|
fprintf (file, _("incr_linum_l: +%u\n"), val);
|
||||||
|
line += val;
|
||||||
|
cmdlen = 5;
|
||||||
|
break;
|
||||||
case DST__K_SET_LINUM:
|
case DST__K_SET_LINUM:
|
||||||
line = (unsigned)bfd_getl16 (buf + 1);
|
line = bfd_getl16 (buf + 1);
|
||||||
fprintf (file, _("set_line_num %u\n"), line);
|
fprintf (file, _("set_line_num(w) %u\n"), line);
|
||||||
cmdlen = 3;
|
cmdlen = 3;
|
||||||
break;
|
break;
|
||||||
case DST__K_SET_LINUM_B:
|
case DST__K_SET_LINUM_B:
|
||||||
|
@ -6975,12 +6981,12 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file)
|
||||||
cmdlen = 2;
|
cmdlen = 2;
|
||||||
break;
|
break;
|
||||||
case DST__K_SET_LINUM_L:
|
case DST__K_SET_LINUM_L:
|
||||||
line = (unsigned)bfd_getl32 (buf + 1);
|
line = bfd_getl32 (buf + 1);
|
||||||
fprintf (file, _("set_line_num_l %u\n"), line);
|
fprintf (file, _("set_line_num_l %u\n"), line);
|
||||||
cmdlen = 5;
|
cmdlen = 5;
|
||||||
break;
|
break;
|
||||||
case DST__K_SET_ABS_PC:
|
case DST__K_SET_ABS_PC:
|
||||||
pc = (unsigned)bfd_getl32 (buf + 1);
|
pc = bfd_getl32 (buf + 1);
|
||||||
fprintf (file, _("set_abs_pc: 0x%08x\n"), pc);
|
fprintf (file, _("set_abs_pc: 0x%08x\n"), pc);
|
||||||
cmdlen = 5;
|
cmdlen = 5;
|
||||||
break;
|
break;
|
||||||
|
@ -6990,7 +6996,7 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file)
|
||||||
cmdlen = 5;
|
cmdlen = 5;
|
||||||
break;
|
break;
|
||||||
case DST__K_TERM:
|
case DST__K_TERM:
|
||||||
fprintf (file, _("term: 0x%02x"), buf[1]);
|
fprintf (file, _("term(b): 0x%02x"), buf[1]);
|
||||||
pc += buf[1];
|
pc += buf[1];
|
||||||
fprintf (file, _(" pc: 0x%08x\n"), pc);
|
fprintf (file, _(" pc: 0x%08x\n"), pc);
|
||||||
cmdlen = 2;
|
cmdlen = 2;
|
||||||
|
@ -7556,7 +7562,7 @@ evax_bfd_print_image (bfd *abfd, FILE *file)
|
||||||
}
|
}
|
||||||
count = bfd_getl16 (dmth.psect_count);
|
count = bfd_getl16 (dmth.psect_count);
|
||||||
fprintf (file,
|
fprintf (file,
|
||||||
_(" module address: 0x%08x, size: 0x%08x, (%u psects)\n"),
|
_(" module offset: 0x%08x, size: 0x%08x, (%u psects)\n"),
|
||||||
(unsigned)bfd_getl32 (dmth.modbeg),
|
(unsigned)bfd_getl32 (dmth.modbeg),
|
||||||
(unsigned)bfd_getl32 (dmth.size), count);
|
(unsigned)bfd_getl32 (dmth.size), count);
|
||||||
dmt_size -= sizeof (dmth);
|
dmt_size -= sizeof (dmth);
|
||||||
|
|
Loading…
Reference in a new issue