Deleted Added
full compact
db_watch.c (623) db_watch.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_watch.c,v 1.2 1993/10/16 16:47:32 rgrimes Exp $
27 */
28
29/*
30 * Author: Richard P. Draves, Carnegie Mellon University
31 * Date: 10/90
32 */
33
34#include "param.h"
27 */
28
29/*
30 * Author: Richard P. Draves, Carnegie Mellon University
31 * Date: 10/90
32 */
33
34#include "param.h"
35#include "systm.h"
35#include "proc.h"
36#include "proc.h"
36#include <machine/db_machdep.h>
37#include "ddb/ddb.h"
37
38#include <vm/vm_map.h>
39#include <ddb/db_lex.h>
40#include <ddb/db_watch.h>
41#include <ddb/db_access.h>
42#include <ddb/db_sym.h>
38
39#include <vm/vm_map.h>
40#include <ddb/db_lex.h>
41#include <ddb/db_watch.h>
42#include <ddb/db_access.h>
43#include <ddb/db_sym.h>
43#include <machine/db_machdep.h>
44
45/*
46 * Watchpoints.
47 */
48
49extern boolean_t db_map_equal();
50extern boolean_t db_map_current();
51extern vm_map_t db_map_addr();

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

200 size = 4;
201 db_skip_to_eol();
202
203 db_set_watchpoint(db_map_addr(addr), addr, size);
204}
205
206/* list watchpoints */
207void
44
45/*
46 * Watchpoints.
47 */
48
49extern boolean_t db_map_equal();
50extern boolean_t db_map_current();
51extern vm_map_t db_map_addr();

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

200 size = 4;
201 db_skip_to_eol();
202
203 db_set_watchpoint(db_map_addr(addr), addr, size);
204}
205
206/* list watchpoints */
207void
208db_listwatch_cmd()
208db_listwatch_cmd(db_expr_t dummy1, int dummy2, db_expr_t dummy3, char *dummmy4)
209{
210 db_list_watchpoints();
211}
212
213void
214db_set_watchpoints()
215{
216 register db_watchpoint_t watch;

--- 54 unchanged lines hidden ---
209{
210 db_list_watchpoints();
211}
212
213void
214db_set_watchpoints()
215{
216 register db_watchpoint_t watch;

--- 54 unchanged lines hidden ---