summaryrefslogtreecommitdiffstats
path: root/sys/gdb
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-06-27 22:05:21 +0000
committergjb <gjb@FreeBSD.org>2014-06-27 22:05:21 +0000
commitfc21f40567ac7485e9e987cf5a539bd0d11c7155 (patch)
treefce5301b062a855bc68b9cb76c6b5966c5a2acbe /sys/gdb
parent2f456747e010bfa5a9dd3498aa5650e0ade39f22 (diff)
downloadFreeBSD-src-fc21f40567ac7485e9e987cf5a539bd0d11c7155.zip
FreeBSD-src-fc21f40567ac7485e9e987cf5a539bd0d11c7155.tar.gz
Revert r267961, r267973:
These changes prevent sysctl(8) from returning proper output, such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1) truss: can not get etype: Cannot allocate memory
Diffstat (limited to 'sys/gdb')
-rw-r--r--sys/gdb/gdb_cons.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/gdb/gdb_cons.c b/sys/gdb/gdb_cons.c
index 47f453f..ff74665 100644
--- a/sys/gdb/gdb_cons.c
+++ b/sys/gdb/gdb_cons.c
@@ -58,8 +58,9 @@ struct gdbcons {
static struct gdbcons state = { -1 };
static int gdbcons_enable = 0;
-SYSCTL_INT(_debug, OID_AUTO, gdbcons, CTLFLAG_RWTUN, &gdbcons_enable,
- 0, "copy console messages to GDB");
+SYSCTL_INT(_debug, OID_AUTO, gdbcons, CTLFLAG_RW, &gdbcons_enable,
+ 0, "copy console messages to gdb");
+TUNABLE_INT("debug.gdbcons", &gdbcons_enable);
static void
gdb_cnprobe(struct consdev *cp)
OpenPOWER on IntegriCloud