Module Name:    src
Committed By:   msaitoh
Date:           Tue May 12 05:18:50 UTC 2015

Modified Files:
        src/sys/arch/i386/i386: db_disasm.c

Log Message:
 Add missing check for db_Grp9. This change fixes a bug that cmpxchg8b can't
be disassembled.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/i386/i386/db_disasm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/i386/i386/db_disasm.c
diff -u src/sys/arch/i386/i386/db_disasm.c:1.44 src/sys/arch/i386/i386/db_disasm.c:1.45
--- src/sys/arch/i386/i386/db_disasm.c:1.44	Thu Oct 23 10:01:53 2014
+++ src/sys/arch/i386/i386/db_disasm.c	Tue May 12 05:18:50 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_disasm.c,v 1.44 2014/10/23 10:01:53 msaitoh Exp $	*/
+/*	$NetBSD: db_disasm.c,v 1.45 2015/05/12 05:18:50 msaitoh Exp $	*/
 
 /* 
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.44 2014/10/23 10:01:53 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.45 2015/05/12 05:18:50 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -1212,7 +1212,8 @@ db_disasm(
 	    ip->i_extra == (const char *)db_Grp2 ||
 	    ip->i_extra == (const char *)db_Grp6 ||
 	    ip->i_extra == (const char *)db_Grp7 ||
-	    ip->i_extra == (const char *)db_Grp8) {
+	    ip->i_extra == (const char *)db_Grp8 ||
+	    ip->i_extra == (const char *)db_Grp9) {
 		i_name = ((const char *const*)ip->i_extra)[f_reg(regmodrm)];
 	} else if (ip->i_extra == (const char *)db_Grp3) {
 		ip = (const struct inst *)ip->i_extra;

Reply via email to