Deleted Added
full compact
db_command.c (623) db_command.c (798)
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$
26 * $Id: db_command.c,v 1.2 1993/10/16 16:47:10 rgrimes Exp $
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33
34/*
35 * Command dispatcher.
36 */
37#include "param.h"
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33
34/*
35 * Command dispatcher.
36 */
37#include "param.h"
38#include "systm.h"
38#include "proc.h"
39#include "proc.h"
39#include <machine/db_machdep.h> /* type definitions */
40#include "ddb/ddb.h"
40
41#include <ddb/db_lex.h>
42#include <ddb/db_output.h>
43
44#include <setjmp.h>
45
46/*
47 * Exported global variables

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

163db_command(last_cmdp, cmd_table)
164 struct command **last_cmdp; /* IN_OUT */
165 struct command *cmd_table;
166{
167 struct command *cmd;
168 int t;
169 char modif[TOK_STRING_SIZE];
170 db_expr_t addr, count;
41
42#include <ddb/db_lex.h>
43#include <ddb/db_output.h>
44
45#include <setjmp.h>
46
47/*
48 * Exported global variables

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

164db_command(last_cmdp, cmd_table)
165 struct command **last_cmdp; /* IN_OUT */
166 struct command *cmd_table;
167{
168 struct command *cmd;
169 int t;
170 char modif[TOK_STRING_SIZE];
171 db_expr_t addr, count;
171 boolean_t have_addr;
172 boolean_t have_addr = FALSE;
172 int result;
173
174 t = db_read_token();
175 if (t == tEOL) {
176 /* empty line repeats last command, at 'next' */
177 cmd = *last_cmdp;
178 addr = (db_expr_t)db_next;
179 have_addr = FALSE;

--- 300 unchanged lines hidden ---
173 int result;
174
175 t = db_read_token();
176 if (t == tEOL) {
177 /* empty line repeats last command, at 'next' */
178 cmd = *last_cmdp;
179 addr = (db_expr_t)db_next;
180 have_addr = FALSE;

--- 300 unchanged lines hidden ---