Deleted Added
full compact
db_trace.c (185634) db_trace.c (189903)
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/amd64/amd64/db_trace.c 185634 2008-12-05 11:34:36Z kib $");
28__FBSDID("$FreeBSD: head/sys/amd64/amd64/db_trace.c 189903 2009-03-17 00:48:11Z jkim $");
29
30#include "opt_compat.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kdb.h>
35#include <sys/proc.h>
36#include <sys/stack.h>

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

311 strcmp(name, "nmi_calltrap") == 0 ||
312 strcmp(name, "Xdblfault") == 0)
313 frame_type = TRAP;
314 else if (strncmp(name, "Xatpic_intr", 11) == 0 ||
315 strncmp(name, "Xapic_isr", 9) == 0 ||
316 strcmp(name, "Xtimerint") == 0 ||
317 strcmp(name, "Xipi_intr_bitmap_handler") == 0 ||
318 strcmp(name, "Xcpustop") == 0 ||
29
30#include "opt_compat.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kdb.h>
35#include <sys/proc.h>
36#include <sys/stack.h>

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

311 strcmp(name, "nmi_calltrap") == 0 ||
312 strcmp(name, "Xdblfault") == 0)
313 frame_type = TRAP;
314 else if (strncmp(name, "Xatpic_intr", 11) == 0 ||
315 strncmp(name, "Xapic_isr", 9) == 0 ||
316 strcmp(name, "Xtimerint") == 0 ||
317 strcmp(name, "Xipi_intr_bitmap_handler") == 0 ||
318 strcmp(name, "Xcpustop") == 0 ||
319 strcmp(name, "Xcpususpend") == 0 ||
319 strcmp(name, "Xrendezvous") == 0)
320 frame_type = INTERRUPT;
321 else if (strcmp(name, "Xfast_syscall") == 0)
322 frame_type = SYSCALL;
323#ifdef COMPAT_IA32
324 else if (strcmp(name, "Xint0x80_syscall") == 0)
325 frame_type = SYSCALL;
326#endif
327 /* XXX: These are interrupts with trap frames. */
328 else if (strcmp(name, "Xtimerint") == 0 ||
329 strcmp(name, "Xcpustop") == 0 ||
320 strcmp(name, "Xrendezvous") == 0)
321 frame_type = INTERRUPT;
322 else if (strcmp(name, "Xfast_syscall") == 0)
323 frame_type = SYSCALL;
324#ifdef COMPAT_IA32
325 else if (strcmp(name, "Xint0x80_syscall") == 0)
326 frame_type = SYSCALL;
327#endif
328 /* XXX: These are interrupts with trap frames. */
329 else if (strcmp(name, "Xtimerint") == 0 ||
330 strcmp(name, "Xcpustop") == 0 ||
331 strcmp(name, "Xcpususpend") == 0 ||
330 strcmp(name, "Xrendezvous") == 0 ||
331 strcmp(name, "Xipi_intr_bitmap_handler") == 0)
332 frame_type = TRAP_INTERRUPT;
333 }
334
335 /*
336 * Normal frames need no special processing.
337 */

--- 359 unchanged lines hidden ---
332 strcmp(name, "Xrendezvous") == 0 ||
333 strcmp(name, "Xipi_intr_bitmap_handler") == 0)
334 frame_type = TRAP_INTERRUPT;
335 }
336
337 /*
338 * Normal frames need no special processing.
339 */

--- 359 unchanged lines hidden ---