summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>1999-05-07 23:08:23 +0000
committermckusick <mckusick@FreeBSD.org>1999-05-07 23:08:23 +0000
commit6106d6252c4ec393b32f42441adb0c91e9c75c06 (patch)
tree0fa454532ebe5d5fe2dba8a4776fde5a78e5823e /sys/ddb/db_command.c
parentf7cb93212ea82218f8a88a75fae0090e456d292f (diff)
downloadFreeBSD-src-6106d6252c4ec393b32f42441adb0c91e9c75c06.zip
FreeBSD-src-6106d6252c4ec393b32f42441adb0c91e9c75c06.tar.gz
Get rid of extern declarations on gdb stuff so systems compiled without
DDB will compile. Warn users that try to use GDB without specifying a GDB port in their configuration file.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index cb41d85..f86ad2f 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_command.c,v 1.28 1998/07/08 10:53:45 bde Exp $
+ * $Id: db_command.c,v 1.29 1999/01/14 06:22:01 jdp Exp $
*/
/*
@@ -535,6 +535,8 @@ db_fncall(dummy1, dummy2, dummy3, dummy4)
/* Enter GDB remote protocol debugger on the next trap. */
+dev_t gdbdev;
+
static void
db_gdb (dummy1, dummy2, dummy3, dummy4)
db_expr_t dummy1;
@@ -542,6 +544,12 @@ db_gdb (dummy1, dummy2, dummy3, dummy4)
db_expr_t dummy3;
char * dummy4;
{
+
+ if (gdbdev == -1) {
+ db_printf("No gdb port enabled. Set flag 0x80 on desired port\n");
+ db_printf("in your configuration file (currently sio only).\n");
+ return;
+ }
boothowto ^= RB_GDB;
db_printf("Next trap will enter %s\n",
OpenPOWER on IntegriCloud