Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 In db_disasm call get_ascii only if necessary.
details: https://anonhg.NetBSD.org/src/rev/b99332f98d30
branches: trunk
changeset: 555644:b99332f98d30
user: uwe <uwe%NetBSD.org@localhost>
date: Mon Nov 24 03:33:02 2003 +0000
description:
In db_disasm call get_ascii only if necessary.
diffstat:
sys/arch/sh3/sh3/db_disasm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 4e08331e441a -r b99332f98d30 sys/arch/sh3/sh3/db_disasm.c
--- a/sys/arch/sh3/sh3/db_disasm.c Mon Nov 24 03:11:16 2003 +0000
+++ b/sys/arch/sh3/sh3/db_disasm.c Mon Nov 24 03:33:02 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.7 2003/07/15 03:35:56 lukem Exp $ */
+/* $NetBSD: db_disasm.c,v 1.8 2003/11/24 03:33:02 uwe Exp $ */
/*
* Copyright (c) 1998-2000 Internet Initiative Japan Inc.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.7 2003/07/15 03:35:56 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.8 2003/11/24 03:33:02 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -137,10 +137,10 @@
void *pc = (void *)loc;
get_opcode(pc, line);
- get_ascii(pc, ascii);
- if (altfmt)
+ if (altfmt) {
+ get_ascii(pc, ascii);
db_printf("%-32s ! %s\n", line, ascii);
- else
+ } else
db_printf("%s\n", line);
return (loc + 2);
Home |
Main Index |
Thread Index |
Old Index