diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2019-09-08 22:52:47 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2019-09-08 22:52:47 +0000 |
commit | 10f6c05ce7200aaeb0a279a8422db34727403429 (patch) | |
tree | e5ac3b65822610321b55cc7085db317f727fc67f /sys/gdb/gdb_cons.c | |
parent | d1bc2d79f2bdc0853969b23d2efaf781177426e5 (diff) | |
download | src-10f6c05ce7200aaeb0a279a8422db34727403429.tar.gz src-10f6c05ce7200aaeb0a279a8422db34727403429.zip |
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.
Notes
Notes:
svn path=/head/; revision=352050
Diffstat (limited to 'sys/gdb/gdb_cons.c')
-rw-r--r-- | sys/gdb/gdb_cons.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/gdb/gdb_cons.c b/sys/gdb/gdb_cons.c index 5e24437a6513..c83236050d5b 100644 --- a/sys/gdb/gdb_cons.c +++ b/sys/gdb/gdb_cons.c @@ -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) |