Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2019 01:33:45 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352053 - head/sys/ddb
Message-ID:  <201909090133.x891Xjor011442@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Mon Sep  9 01:33:45 2019
New Revision: 352053
URL: https://svnweb.freebsd.org/changeset/base/352053

Log:
  ddb(4): Move an extern variable declaration to a header
  
  Trivial cleanup, no functional change.

Modified:
  head/sys/ddb/db_command.h
  head/sys/ddb/db_run.c

Modified: head/sys/ddb/db_command.h
==============================================================================
--- head/sys/ddb/db_command.h	Mon Sep  9 01:05:51 2019	(r352052)
+++ head/sys/ddb/db_command.h	Mon Sep  9 01:33:45 2019	(r352053)
@@ -49,6 +49,7 @@ void	db_command_init(void);
 void	db_command_loop(void);
 void	db_command_script(const char *command);
 
+extern int		db_cmd_loop_done;
 extern db_addr_t	db_dot;		/* current location */
 extern db_addr_t	db_last_addr;	/* last explicit address typed */
 extern db_addr_t	db_prev;	/* last address examined

Modified: head/sys/ddb/db_run.c
==============================================================================
--- head/sys/ddb/db_run.c	Mon Sep  9 01:05:51 2019	(r352052)
+++ head/sys/ddb/db_run.c	Mon Sep  9 01:33:45 2019	(r352053)
@@ -48,8 +48,9 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm.h>
 
 #include <ddb/ddb.h>
-#include <ddb/db_break.h>
 #include <ddb/db_access.h>
+#include <ddb/db_break.h>
+#include <ddb/db_command.h>
 
 #define	STEP_ONCE	1
 #define	STEP_RETURN	2
@@ -331,8 +332,6 @@ db_clear_single_step(void)
 }
 
 #endif	/* SOFTWARE_SSTEP */
-
-extern int	db_cmd_loop_done;
 
 /* single-step */
 /*ARGSUSED*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909090133.x891Xjor011442>