diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-12 06:07:54 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-12 06:07:54 +0000 |
| commit | 879e0604ee6ac0ded87f6754141e7af25f4b7d5a (patch) | |
| tree | 377214dcbc05356fc2c2709c00fb9f037b59573b /sys/gdb | |
| parent | 76a49ebaa6f20a6d11c310fd675b53bfb99360f3 (diff) | |
Notes
Diffstat (limited to 'sys/gdb')
| -rw-r--r-- | sys/gdb/netgdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gdb/netgdb.c b/sys/gdb/netgdb.c index 48d5533851de..82ff8a078495 100644 --- a/sys/gdb/netgdb.c +++ b/sys/gdb/netgdb.c @@ -340,7 +340,7 @@ DB_FUNC(netgdb, db_netgdb_cmd, db_cmd_table, CS_OWN, NULL) struct debugnet_pcb *pcb; int error; - if (panicstr == NULL) { + if (!KERNEL_PANICKED()) { /* TODO: This limitation should be removed in future work. */ printf("%s: netgdb is currently limited to use only after a " "panic. Sorry.\n", __func__); |
