svn commit: r295432 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Tue Feb 9 10:18:23 UTC 2016


Author: andrew
Date: Tue Feb  9 10:18:22 2016
New Revision: 295432
URL: https://svnweb.freebsd.org/changeset/base/295432

Log:
  Use designated initialisers for the db disassembler interface to help with
  finding the struct when searching for one of its members.

Modified:
  head/sys/arm64/arm64/db_disasm.c

Modified: head/sys/arm64/arm64/db_disasm.c
==============================================================================
--- head/sys/arm64/arm64/db_disasm.c	Tue Feb  9 10:06:06 2016	(r295431)
+++ head/sys/arm64/arm64/db_disasm.c	Tue Feb  9 10:18:22 2016	(r295432)
@@ -41,9 +41,9 @@ static void db_disasm_printaddr(vm_offse
 
 /* Glue code to interface db_disasm to the generic ARM disassembler */
 static const struct disasm_interface db_disasm_interface = {
-	db_disasm_read_word,
-	db_disasm_printaddr,
-	db_printf
+	.di_readword = db_disasm_read_word,
+	.di_printaddr = db_disasm_printaddr,
+	.di_printf = db_printf,
 };
 
 static u_int


More information about the svn-src-head mailing list