Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vax Deal with instruction with no arguments.



details:   https://anonhg.NetBSD.org/src/rev/a936ce9f5ad4
branches:  trunk
changeset: 773446:a936ce9f5ad4
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 02 14:29:25 2012 +0000

description:
Deal with instruction with no arguments.

diffstat:

 sys/arch/vax/vax/db_disasm.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r ac8e950b2605 -r a936ce9f5ad4 sys/arch/vax/vax/db_disasm.c
--- a/sys/arch/vax/vax/db_disasm.c      Thu Feb 02 13:32:17 2012 +0000
+++ b/sys/arch/vax/vax/db_disasm.c      Thu Feb 02 14:29:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.19 2009/03/18 16:00:16 cegger Exp $ */
+/*     $NetBSD: db_disasm.c,v 1.20 2012/02/02 14:29:25 matt Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.19 2009/03/18 16:00:16 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.20 2012/02/02 14:29:25 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -219,6 +219,8 @@
                return (-1);
        }
        ib->argp = vax_inst[ib->opc].argdesc;
+       if (ib->argp == NULL)
+               return 0;
 
        while (*ib->argp) {
                switch (*ib->argp) {



Home | Main Index | Thread Index | Old Index