+libcaptive/ke/brkpoint.c
authorshort <>
Tue, 4 Feb 2003 18:03:10 +0000 (18:03 +0000)
committershort <>
Tue, 4 Feb 2003 18:03:10 +0000 (18:03 +0000)
 - +DbgBreakPoint()

src/libcaptive/ke/Makefile.am
src/libcaptive/ke/brkpoint.c [new file with mode: 0644]

index 3398c9d..07d110b 100644 (file)
@@ -22,6 +22,7 @@ include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am
 noinst_LTLIBRARIES=libke.la
 libke_la_SOURCES= \
                apc.c \
+               brkpoint.c \
                bug.c \
                catch.c \
                event.c \
diff --git a/src/libcaptive/ke/brkpoint.c b/src/libcaptive/ke/brkpoint.c
new file mode 100644 (file)
index 0000000..7a604e4
--- /dev/null
@@ -0,0 +1,36 @@
+/* $Id$
+ * reactos object wait emulation of libcaptive
+ * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; exactly version 2 of June 1991 is required
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+
+#include "config.h"
+
+#include "reactos/ddk/kefuncs.h"       /* self */
+#include "reactos/ddk/status.h"        /* for STATUS_SUCCESS */
+#include "reactos/napi/types.h"        /* for NTSTATUS */
+#include <glib/gmessages.h>
+
+
+/**
+ * DbgBreakPoint:
+ * Invoke kernel debugger. libcaptive just writes "DbgBreakPoint() hit"
+ * and continues the run. Called by ext2fsd.sys V0.10A in %DBG mode.
+ */
+VOID DbgBreakPoint(VOID)
+{
+       g_message("DbgBreakPoint() hit");
+}