Subject: Re: CVS commit: src/sys
To: None <martin@netbsd.org>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: source-changes
Date: 09/24/2007 01:35:03
----Next_Part(Mon_Sep_24_01_35_03_2007_096)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi! Martin,


Perhaps, Building fails for macppc after it changes of that.  I think
to require '#ifdef DB_MACHINE_COMMANDS'.

Thanks,
--
kiyohara


From: Martin Husemann <martin@netbsd.org>
Date: Sat, 22 Sep 2007 18:40:27 +0000 (UTC)

> 
> Module Name:	src
> Committed By:	martin
> Date:		Sat Sep 22 18:40:27 UTC 2007
> 
> Modified Files:
> 	src/sys/arch/acorn26/acorn26: db_interface.c
> 	src/sys/arch/alpha/alpha: db_interface.c
> 	src/sys/arch/amd64/amd64: db_interface.c
> 	src/sys/arch/arm/arm32: db_interface.c
> 	src/sys/arch/i386/conf: GENERIC
> 	src/sys/arch/i386/i386: db_interface.c
> 	src/sys/arch/ia64/ia64: db_interface.c
> 	src/sys/arch/mips/mips: db_interface.c
> 	src/sys/arch/powerpc/powerpc: db_interface.c
> 	src/sys/arch/sh3/sh3: db_interface.c
> 	src/sys/arch/sparc/sparc: db_interface.c
> 	src/sys/arch/sparc64/sparc64: db_interface.c
> 	src/sys/arch/sun2/sun2: db_machdep.c
> 	src/sys/arch/sun3/sun3: db_machdep.c
> 	src/sys/arch/vax/vax: db_machdep.c
> 	src/sys/ddb: db_command.c db_command.h files.ddb
> Added Files:
> 	src/sys/ddb: db_command_list.h
> 
> Log Message:
> Add a new option DDB_VERBOSE_HELP that adds online help to ddb.
> From Adam Hamsik.
> Minor modifications by me, all bugs are probably mine.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.14 -r1.15 src/sys/arch/acorn26/acorn26/db_interface.c
> cvs rdiff -r1.25 -r1.26 src/sys/arch/alpha/alpha/db_interface.c
> cvs rdiff -r1.8 -r1.9 src/sys/arch/amd64/amd64/db_interface.c
> cvs rdiff -r1.42 -r1.43 src/sys/arch/arm/arm32/db_interface.c
> cvs rdiff -r1.849 -r1.850 src/sys/arch/i386/conf/GENERIC
> cvs rdiff -r1.51 -r1.52 src/sys/arch/i386/i386/db_interface.c
> cvs rdiff -r1.2 -r1.3 src/sys/arch/ia64/ia64/db_interface.c
> cvs rdiff -r1.61 -r1.62 src/sys/arch/mips/mips/db_interface.c
> cvs rdiff -r1.37 -r1.38 src/sys/arch/powerpc/powerpc/db_interface.c
> cvs rdiff -r1.43 -r1.44 src/sys/arch/sh3/sh3/db_interface.c
> cvs rdiff -r1.71 -r1.72 src/sys/arch/sparc/sparc/db_interface.c
> cvs rdiff -r1.98 -r1.99 src/sys/arch/sparc64/sparc64/db_interface.c
> cvs rdiff -r1.8 -r1.9 src/sys/arch/sun2/sun2/db_machdep.c
> cvs rdiff -r1.23 -r1.24 src/sys/arch/sun3/sun3/db_machdep.c
> cvs rdiff -r1.46 -r1.47 src/sys/arch/vax/vax/db_machdep.c
> cvs rdiff -r1.97 -r1.98 src/sys/ddb/db_command.c
> cvs rdiff -r1.27 -r1.28 src/sys/ddb/db_command.h
> cvs rdiff -r0 -r1.1 src/sys/ddb/db_command_list.h
> cvs rdiff -r1.1 -r1.2 src/sys/ddb/files.ddb
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 


----Next_Part(Mon_Sep_24_01_35_03_2007_096)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="db_machine_commands.diff"

Index: db_command.c
===================================================================
RCS file: /cvsroot/src/sys/ddb/db_command.c,v
retrieving revision 1.98
diff -u -r1.98 db_command.c
--- db_command.c	22 Sep 2007 18:40:26 -0000	1.98
+++ db_command.c	23 Sep 2007 16:15:36 -0000
@@ -489,9 +489,11 @@
 			list=&db_show_cmd_list;
 			break;
 
+#ifdef DB_MACHINE_COMMANDS
 		case DDB_MACH_CMD:
 			list=&db_mach_cmd_list;
 			break;
+#endif
 
 		default:
 			return (ENOENT);
@@ -537,9 +539,11 @@
 		list=&db_show_cmd_list;
 		break;
 		
+#ifdef DB_MACHINE_COMMANDS
 	case DDB_MACH_CMD:
 		list=&db_mach_cmd_list;
 		break;
+#endif
 			
 	default:
 		return (EINVAL);
@@ -834,6 +838,7 @@
 				return;
 			}
 			break;
+#ifdef DB_MACHINE_COMMANDS
 		case DDB_MACH_CMD:
 			list=&db_mach_cmd_list;
 			/* need to read machine subcommand if
@@ -848,6 +853,7 @@
 				return;
 			}	
 			break;
+#endif
 		default:
 			db_printf("No such command\n");
 			db_flush_lex();                 
@@ -996,6 +1002,7 @@
 			}	
 			
 			break;
+#ifdef DB_MACHINE_COMMANDS
 		case DDB_MACH_CMD:
 			list=&db_mach_cmd_list;
 			/* read machine subcommand */
@@ -1008,6 +1015,7 @@
 				return;
 			}
 			break;
+#endif
 		default:
 			db_printf("No such command\n");
 			db_flush_lex();

----Next_Part(Mon_Sep_24_01_35_03_2007_096)----