Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 19:41:48 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 49496 for review
Message-ID:  <200403220341.i2M3fmcb097036@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=49496

Change 49496 by marcel@marcel_nfs on 2004/03/21 19:40:53

	Axe db_alt_break(). It has been moved to the frontend as
	kdb_alt_break() where it's present unconditionally so that
	you can actually depend on it in modules.

Affected files ...

.. //depot/projects/gdb/sys/ddb/db_break.c#2 edit

Differences ...

==== //depot/projects/gdb/sys/ddb/db_break.c#2 (text+ko) ====

@@ -367,46 +367,3 @@
 #endif
 	    return kernel_map;
 }
-
-#ifdef ALT_BREAK_TO_DEBUGGER
-/*
- * Solaris implements a new BREAK which is initiated by a character sequence
- * CR ~ ^b which is similar to a familiar pattern used on Sun servers by the
- * Remote Console.
- *
- * Note that this function may be called from almost anywhere, with interrupts
- * disabled and with unknown locks held, so it must not access data other than
- * its arguments.  Its up to the caller to ensure that the state variable is
- * consistent.
- */
-
-#define	KEY_CR		13	/* CR '\r' */
-#define	KEY_TILDE	126	/* ~ */
-#define	KEY_CRTLB	2	/* ^B */
-
-int
-db_alt_break(int data, int *state)
-{
-	int brk = 0;
-
-	switch (data) {
-	case KEY_CR:
-		*state = KEY_TILDE;
-		break;
-	case KEY_TILDE:
-		if (*state == KEY_TILDE)
-			*state = KEY_CRTLB;
-		else
-			*state = 0;
-		break;
-	case KEY_CRTLB:
-		if (*state == KEY_CRTLB)
-			brk = 1;
-		/* FALLTHROUGH */
-	default:
-		*state = 0;
-		break;
-	}
-	return (brk);
-}
-#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403220341.i2M3fmcb097036>