From owner-svn-src-all@freebsd.org Sun Sep 8 22:52:48 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 D8C91E5FA8; Sun, 8 Sep 2019 22:52:48 +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 46RRQS5Q6Rz4D2P; Sun, 8 Sep 2019 22:52:48 +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 9E92445CE; Sun, 8 Sep 2019 22:52:48 +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 x88Mqm2S017437; Sun, 8 Sep 2019 22:52:48 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x88Mqm4g017434; Sun, 8 Sep 2019 22:52:48 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201909082252.x88Mqm4g017434@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Sun, 8 Sep 2019 22:52:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352050 - head/sys/gdb X-SVN-Group: head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: head/sys/gdb X-SVN-Commit-Revision: 352050 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: Sun, 08 Sep 2019 22:52:48 -0000 Author: cem Date: Sun Sep 8 22:52:47 2019 New Revision: 352050 URL: https://svnweb.freebsd.org/changeset/base/352050 Log: gdb(4): Root a sysctl tree at 'debug.gdb.' Like debug.ddb and debug.kdb. Rename 'debug.gdbcons' to 'debug.gdb.cons,' but leave the old name as a compatibility alias. Modified: head/sys/gdb/gdb_cons.c head/sys/gdb/gdb_int.h head/sys/gdb/gdb_main.c Modified: head/sys/gdb/gdb_cons.c ============================================================================== --- head/sys/gdb/gdb_cons.c Sun Sep 8 21:43:19 2019 (r352049) +++ head/sys/gdb/gdb_cons.c Sun Sep 8 22:52:47 2019 (r352050) @@ -60,8 +60,11 @@ struct gdbcons { static struct gdbcons state = { -1 }; static int gdbcons_enable = 0; +SYSCTL_INT(_debug_gdb, OID_AUTO, cons, CTLFLAG_RWTUN, &gdbcons_enable, 0, + "copy console messages to GDB"); +/* Legacy sysctl alias */ SYSCTL_INT(_debug, OID_AUTO, gdbcons, CTLFLAG_RWTUN, &gdbcons_enable, - 0, "copy console messages to GDB"); + 0, "copy console messages to GDB"); static void gdb_cnprobe(struct consdev *cp) Modified: head/sys/gdb/gdb_int.h ============================================================================== --- head/sys/gdb/gdb_int.h Sun Sep 8 21:43:19 2019 (r352049) +++ head/sys/gdb/gdb_int.h Sun Sep 8 22:52:47 2019 (r352050) @@ -31,9 +31,13 @@ #ifndef _GDB_GDB_INT_H_ #define _GDB_GDB_INT_H_ +#include + #ifndef EOF #define EOF (-1) #endif + +SYSCTL_DECL(_debug_gdb); extern struct gdb_dbgport *gdb_cur; Modified: head/sys/gdb/gdb_main.c ============================================================================== --- head/sys/gdb/gdb_main.c Sun Sep 8 21:43:19 2019 (r352049) +++ head/sys/gdb/gdb_main.c Sun Sep 8 22:52:47 2019 (r352050) @@ -44,6 +44,8 @@ __FBSDID("$FreeBSD$"); #include #include +SYSCTL_NODE(_debug, OID_AUTO, gdb, CTLFLAG_RW, 0, "GDB settings"); + static dbbe_init_f gdb_init; static dbbe_trap_f gdb_trap;