db_main.c (283088) | db_main.c (283248) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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 27#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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/ddb/db_main.c 283088 2015-05-18 22:27:46Z pfg $"); | 28__FBSDID("$FreeBSD: head/sys/ddb/db_main.c 283248 2015-05-21 15:16:18Z pfg $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/cons.h> 33#include <sys/linker.h> 34#include <sys/kdb.h> 35#include <sys/kernel.h> 36#include <sys/pcpu.h> --- 21 unchanged lines hidden (view full) --- 58 59/* 60 * Symbols can be loaded by specifying the exact addresses of 61 * the symtab and strtab in memory. This is used when loaded from 62 * boot loaders different than the native one (like Xen). 63 */ 64vm_offset_t ksymtab, kstrtab, ksymtab_size; 65 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/cons.h> 33#include <sys/linker.h> 34#include <sys/kdb.h> 35#include <sys/kernel.h> 36#include <sys/pcpu.h> --- 21 unchanged lines hidden (view full) --- 58 59/* 60 * Symbols can be loaded by specifying the exact addresses of 61 * the symtab and strtab in memory. This is used when loaded from 62 * boot loaders different than the native one (like Xen). 63 */ 64vm_offset_t ksymtab, kstrtab, ksymtab_size; 65 |
66boolean_t | 66bool |
67X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line, 68 db_expr_t off) 69{ 70 return (false); 71} 72 73c_db_sym_t 74X_db_lookup(db_symtab_t *symtab, const char *symbol) --- 65 unchanged lines hidden (view full) --- 140 break; 141 } 142 } 143 144 *diffp = (match == NULL) ? off : diff; 145 return ((c_db_sym_t)match); 146} 147 | 67X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line, 68 db_expr_t off) 69{ 70 return (false); 71} 72 73c_db_sym_t 74X_db_lookup(db_symtab_t *symtab, const char *symbol) --- 65 unchanged lines hidden (view full) --- 140 break; 141 } 142 } 143 144 *diffp = (match == NULL) ? off : diff; 145 return ((c_db_sym_t)match); 146} 147 |
148boolean_t | 148bool |
149X_db_sym_numargs(db_symtab_t *symtab, c_db_sym_t sym, int *nargp, 150 char **argp) 151{ 152 return (false); 153} 154 155void 156X_db_symbol_values(db_symtab_t *symtab, c_db_sym_t sym, const char **namep, --- 54 unchanged lines hidden (view full) --- 211 return (1); /* We're the default debugger. */ 212} 213 214static int 215db_trap(int type, int code) 216{ 217 jmp_buf jb; 218 void *prev_jb; | 149X_db_sym_numargs(db_symtab_t *symtab, c_db_sym_t sym, int *nargp, 150 char **argp) 151{ 152 return (false); 153} 154 155void 156X_db_symbol_values(db_symtab_t *symtab, c_db_sym_t sym, const char **namep, --- 54 unchanged lines hidden (view full) --- 211 return (1); /* We're the default debugger. */ 212} 213 214static int 215db_trap(int type, int code) 216{ 217 jmp_buf jb; 218 void *prev_jb; |
219 boolean_t bkpt, watchpt; | 219 bool bkpt, watchpt; |
220 const char *why; 221 222 /* 223 * Don't handle the trap if the console is unavailable (i.e. it 224 * is in graphics mode). 225 */ 226 if (cnunavailable()) 227 return (0); --- 55 unchanged lines hidden --- | 220 const char *why; 221 222 /* 223 * Don't handle the trap if the console is unavailable (i.e. it 224 * is in graphics mode). 225 */ 226 if (cnunavailable()) 227 return (0); --- 55 unchanged lines hidden --- |