diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-07-05 04:37:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-07-05 04:37:31 +0000 |
commit | 44a83b4ce31c1f2e2f53b0d66363f4c686ae985b (patch) | |
tree | 292d87eb8c19499dd5d0481538c8857bfea6228e /sys/arch | |
parent | ddadc10f7c46e1893733c367288f284615ee9c89 (diff) |
Compute the correct address and try and print a matching symbol for j and
jal instructions.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/db_disasm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/db_disasm.c b/sys/arch/mips64/mips64/db_disasm.c index 6a2d58b8e50..263f202e3a4 100644 --- a/sys/arch/mips64/mips64/db_disasm.c +++ b/sys/arch/mips64/mips64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.6 2007/03/27 15:57:20 miod Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.7 2007/07/05 04:37:30 miod Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)kadb.c 8.1 (Berkeley) 6/10/93 - * $Id: db_disasm.c,v 1.6 2007/03/27 15:57:20 miod Exp $ + * $Id: db_disasm.c,v 1.7 2007/07/05 04:37:30 miod Exp $ */ #include <sys/param.h> @@ -344,7 +344,8 @@ md_printins(int ins, int mdbdot) case OP_J: case OP_JAL: db_printf("%s\t", op_name[i.JType.op]); - db_printf("0x%8x",(mdbdot & 0xF0000000) | (i.JType.target << 2)); + db_printsym((mdbdot & ~0x0fffffffL) | (i.JType.target << 2), + DB_STGY_PROC, db_printf); delay = 1; break; |