Deleted Added
full compact
db_sym.c (623) db_sym.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_sym.c,v 1.2 1993/10/16 16:47:25 rgrimes Exp $
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33#include "param.h"
27 */
28
29/*
30 * Author: David B. Golub, Carnegie Mellon University
31 * Date: 7/90
32 */
33#include "param.h"
34#include "systm.h"
34#include "proc.h"
35#include "proc.h"
35#include <machine/db_machdep.h>
36#include "ddb/ddb.h"
36#include <ddb/db_sym.h>
37
38/*
39 * We import from the symbol-table dependent routines:
40 */
41extern db_sym_t X_db_lookup();
42extern db_sym_t X_db_search_symbol();
43extern boolean_t X_db_line_at_pc();

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

308 if (db_line_at_pc(cursym, &filename, &linenum, off))
309 db_printf(" [%s:%d]", filename, linenum);
310 }
311}
312
313
314boolean_t
315db_line_at_pc( sym, filename, linenum, pc)
37#include <ddb/db_sym.h>
38
39/*
40 * We import from the symbol-table dependent routines:
41 */
42extern db_sym_t X_db_lookup();
43extern db_sym_t X_db_search_symbol();
44extern boolean_t X_db_line_at_pc();

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

309 if (db_line_at_pc(cursym, &filename, &linenum, off))
310 db_printf(" [%s:%d]", filename, linenum);
311 }
312}
313
314
315boolean_t
316db_line_at_pc( sym, filename, linenum, pc)
317 int sym;
318 int filename;
319 int linenum;
320 int pc;
316{
317 return X_db_line_at_pc( db_last_symtab, sym, filename, linenum, pc);
318}
321{
322 return X_db_line_at_pc( db_last_symtab, sym, filename, linenum, pc);
323}