Deleted Added
full compact
db_interface.c (41763) db_interface.c (42135)
1/*
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

--- 9 unchanged lines hidden (view full) ---

18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie the
24 * rights to redistribute these changes.
25 *
1/*
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

--- 9 unchanged lines hidden (view full) ---

18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie the
24 * rights to redistribute these changes.
25 *
26 * $Id: db_interface.c,v 1.41 1998/06/08 09:23:24 dfr Exp $
26 * $Id: db_interface.c,v 1.42 1998/12/14 05:34:33 dillon Exp $
27 */
28
29/*
30 * Interface to new debugger.
31 */
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/reboot.h>

--- 255 unchanged lines hidden (view full) ---

290 }
291}
292
293/*
294 * XXX
295 * Move this to machdep.c and allow it to be called if any debugger is
296 * installed.
297 */
27 */
28
29/*
30 * Interface to new debugger.
31 */
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/reboot.h>

--- 255 unchanged lines hidden (view full) ---

290 }
291}
292
293/*
294 * XXX
295 * Move this to machdep.c and allow it to be called if any debugger is
296 * installed.
297 */
298volatile int in_Debugger = 0;
299
298void
299Debugger(msg)
300 const char *msg;
301{
300void
301Debugger(msg)
302 const char *msg;
303{
302 static volatile u_char in_Debugger;
303
304 /*
305 * XXX
306 * Do nothing if the console is in graphics mode. This is
307 * OK if the call is for the debugger hotkey but not if the call
308 * is a weak form of panicing.
309 */
310 if (cons_unavail && !(boothowto & RB_GDB))
311 return;
312
313 if (!in_Debugger) {
314 in_Debugger = 1;
315 db_printf("Debugger(\"%s\")\n", msg);
316 breakpoint();
317 in_Debugger = 0;
318 }
319}
304
305 /*
306 * XXX
307 * Do nothing if the console is in graphics mode. This is
308 * OK if the call is for the debugger hotkey but not if the call
309 * is a weak form of panicing.
310 */
311 if (cons_unavail && !(boothowto & RB_GDB))
312 return;
313
314 if (!in_Debugger) {
315 in_Debugger = 1;
316 db_printf("Debugger(\"%s\")\n", msg);
317 breakpoint();
318 in_Debugger = 0;
319 }
320}