Deleted Added
full compact
db_break.c (26639) db_break.c (36735)
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_break.c,v 1.13 1997/02/22 09:28:20 peter Exp $
26 * $Id: db_break.c,v 1.14 1997/06/14 11:52:36 bde Exp $
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33/*
34 * Breakpoints.

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

203 bkpt = bkpt->link)
204 if (db_map_current(bkpt->map)) {
205 db_put_value(bkpt->address, BKPT_SIZE, bkpt->bkpt_inst);
206 }
207 db_breakpoints_inserted = FALSE;
208 }
209}
210
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33/*
34 * Breakpoints.

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

203 bkpt = bkpt->link)
204 if (db_map_current(bkpt->map)) {
205 db_put_value(bkpt->address, BKPT_SIZE, bkpt->bkpt_inst);
206 }
207 db_breakpoints_inserted = FALSE;
208 }
209}
210
211#ifdef notused
211#ifdef SOFTWARE_SSTEP
212/*
213 * Set a temporary breakpoint.
214 * The instruction is changed immediately,
215 * so the breakpoint does not have to be on the breakpoint list.
216 */
212/*
213 * Set a temporary breakpoint.
214 * The instruction is changed immediately,
215 * so the breakpoint does not have to be on the breakpoint list.
216 */
217static db_breakpoint_t
217db_breakpoint_t
218db_set_temp_breakpoint(addr)
219 db_addr_t addr;
220{
221 register db_breakpoint_t bkpt;
222
223 bkpt = db_breakpoint_alloc();
224 if (bkpt == 0) {
225 db_printf("Too many breakpoints.\n");

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

232 bkpt->init_count = 1;
233 bkpt->count = 1;
234
235 bkpt->bkpt_inst = db_get_value(bkpt->address, BKPT_SIZE, FALSE);
236 db_put_value(bkpt->address, BKPT_SIZE, BKPT_SET(bkpt->bkpt_inst));
237 return bkpt;
238}
239
218db_set_temp_breakpoint(addr)
219 db_addr_t addr;
220{
221 register db_breakpoint_t bkpt;
222
223 bkpt = db_breakpoint_alloc();
224 if (bkpt == 0) {
225 db_printf("Too many breakpoints.\n");

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

232 bkpt->init_count = 1;
233 bkpt->count = 1;
234
235 bkpt->bkpt_inst = db_get_value(bkpt->address, BKPT_SIZE, FALSE);
236 db_put_value(bkpt->address, BKPT_SIZE, BKPT_SET(bkpt->bkpt_inst));
237 return bkpt;
238}
239
240static void
240void
241db_delete_temp_breakpoint(bkpt)
242 db_breakpoint_t bkpt;
243{
244 db_put_value(bkpt->address, BKPT_SIZE, bkpt->bkpt_inst);
245 db_breakpoint_free(bkpt);
246}
241db_delete_temp_breakpoint(bkpt)
242 db_breakpoint_t bkpt;
243{
244 db_put_value(bkpt->address, BKPT_SIZE, bkpt->bkpt_inst);
245 db_breakpoint_free(bkpt);
246}
247
247#endif
248
249/*
250 * List breakpoints.
251 */
252static void
253db_list_breakpoints()
254{

--- 110 unchanged lines hidden ---
248#endif
249
250/*
251 * List breakpoints.
252 */
253static void
254db_list_breakpoints()
255{

--- 110 unchanged lines hidden ---