db_command.c (228569) | db_command.c (242424) |
---|---|
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 --- 18 unchanged lines hidden (view full) --- 27 * Author: David B. Golub, Carnegie Mellon University 28 * Date: 7/90 29 */ 30/* 31 * Command dispatcher. 32 */ 33 34#include <sys/cdefs.h> | 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 --- 18 unchanged lines hidden (view full) --- 27 * Author: David B. Golub, Carnegie Mellon University 28 * Date: 7/90 29 */ 30/* 31 * Command dispatcher. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/ddb/db_command.c 228569 2011-12-16 11:44:20Z kib $"); | 35__FBSDID("$FreeBSD: head/sys/ddb/db_command.c 242424 2012-11-01 04:07:08Z alfred $"); |
36 37#include <sys/param.h> 38#include <sys/linker_set.h> 39#include <sys/lock.h> 40#include <sys/kdb.h> 41#include <sys/mutex.h> 42#include <sys/proc.h> 43#include <sys/reboot.h> --- 486 unchanged lines hidden (view full) --- 530 kdb_reenter(); 531} 532 533static void 534db_dump(db_expr_t dummy, boolean_t dummy2, db_expr_t dummy3, char *dummy4) 535{ 536 int error; 537 | 36 37#include <sys/param.h> 38#include <sys/linker_set.h> 39#include <sys/lock.h> 40#include <sys/kdb.h> 41#include <sys/mutex.h> 42#include <sys/proc.h> 43#include <sys/reboot.h> --- 486 unchanged lines hidden (view full) --- 530 kdb_reenter(); 531} 532 533static void 534db_dump(db_expr_t dummy, boolean_t dummy2, db_expr_t dummy3, char *dummy4) 535{ 536 int error; 537 |
538 if (textdump_pending) { 539 db_printf("textdump_pending set.\n" 540 "run \"textdump unset\" first or \"textdump dump\" for a textdump.\n"); 541 return; 542 } |
|
538 error = doadump(FALSE); 539 if (error) { 540 db_printf("Cannot dump: "); 541 switch (error) { 542 case EBUSY: 543 db_printf("debugger got invoked while dumping.\n"); 544 break; 545 case ENXIO: --- 322 unchanged lines hidden --- | 543 error = doadump(FALSE); 544 if (error) { 545 db_printf("Cannot dump: "); 546 switch (error) { 547 case EBUSY: 548 db_printf("debugger got invoked while dumping.\n"); 549 break; 550 case ENXIO: --- 322 unchanged lines hidden --- |