When printing a longword displacement, grab the displacement as a
long (instead of a short). That way the printed addresses will be correct.
This commit is contained in:
parent
464c773f27
commit
29cea83095
2
gnu/dist/gdb/vax-tdep.c
vendored
2
gnu/dist/gdb/vax-tdep.c
vendored
@ -244,7 +244,7 @@ print_insn_arg (d, p, addr, info)
|
||||
case 14: /* Long displacement */
|
||||
if (regnum == PC_REGNUM)
|
||||
{
|
||||
info->target = addr + *(short *)p + 5;
|
||||
info->target = addr + *(long *)p + 5;
|
||||
(*info->print_address_func) (info->target, info);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user