From owner-svn-src-all@freebsd.org Mon Sep 9 01:33:46 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C3C4EA113; Mon, 9 Sep 2019 01:33:46 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46RW0B38R8z4LkP; Mon, 9 Sep 2019 01:33:46 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4F1286219; Mon, 9 Sep 2019 01:33:46 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x891Xk2A011444; Mon, 9 Sep 2019 01:33:46 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x891Xjor011442; Mon, 9 Sep 2019 01:33:45 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201909090133.x891Xjor011442@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Mon, 9 Sep 2019 01:33:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352053 - head/sys/ddb X-SVN-Group: head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: head/sys/ddb X-SVN-Commit-Revision: 352053 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2019 01:33:46 -0000 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 #include -#include #include +#include +#include #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*/