Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gdb When printing a longword displacement, grab the...
details: https://anonhg.NetBSD.org/src/rev/232e2e103be2
branches: trunk
changeset: 494220:232e2e103be2
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 04 02:10:37 2000 +0000
description:
When printing a longword displacement, grab the displacement as a
long (instead of a short). That way the printed addresses will be
correct.
diffstat:
gnu/dist/gdb/vax-tdep.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9c7108e47886 -r 232e2e103be2 gnu/dist/gdb/vax-tdep.c
--- a/gnu/dist/gdb/vax-tdep.c Tue Jul 04 01:51:22 2000 +0000
+++ b/gnu/dist/gdb/vax-tdep.c Tue Jul 04 02:10:37 2000 +0000
@@ -244,7 +244,7 @@
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
Home |
Main Index |
Thread Index |
Old Index