subr_kdb.c (59588a546f55523d6fd37ab42eb08b719311d7d6) | subr_kdb.c (9d6ae1e3c26a0c3334a268b587f17dccb9a503d7) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2004 The FreeBSD Project 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 32 unchanged lines hidden (view full) --- 41#include <sys/lock.h> 42#include <sys/pcpu.h> 43#include <sys/priv.h> 44#include <sys/proc.h> 45#include <sys/sbuf.h> 46#include <sys/smp.h> 47#include <sys/stack.h> 48#include <sys/sysctl.h> | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2004 The FreeBSD Project 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 32 unchanged lines hidden (view full) --- 41#include <sys/lock.h> 42#include <sys/pcpu.h> 43#include <sys/priv.h> 44#include <sys/proc.h> 45#include <sys/sbuf.h> 46#include <sys/smp.h> 47#include <sys/stack.h> 48#include <sys/sysctl.h> |
49#include <sys/tslog.h> |
|
49 50#include <machine/kdb.h> 51#include <machine/pcb.h> 52 53#ifdef SMP 54#include <machine/smp.h> 55#endif 56 --- 497 unchanged lines hidden (view full) --- 554 * Initialize the kernel debugger interface. 555 */ 556void 557kdb_init(void) 558{ 559 struct kdb_dbbe *be, **iter; 560 int cur_pri, pri; 561 | 50 51#include <machine/kdb.h> 52#include <machine/pcb.h> 53 54#ifdef SMP 55#include <machine/smp.h> 56#endif 57 --- 497 unchanged lines hidden (view full) --- 555 * Initialize the kernel debugger interface. 556 */ 557void 558kdb_init(void) 559{ 560 struct kdb_dbbe *be, **iter; 561 int cur_pri, pri; 562 |
563 TSENTER(); |
|
562 kdb_active = 0; 563 kdb_dbbe = NULL; 564 cur_pri = -1; 565 SET_FOREACH(iter, kdb_dbbe_set) { 566 be = *iter; 567 pri = (be->dbbe_init != NULL) ? be->dbbe_init() : -1; 568 be->dbbe_active = (pri >= 0) ? 0 : -1; 569 if (pri > cur_pri) { --- 7 unchanged lines hidden (view full) --- 577 be = *iter; 578 if (be->dbbe_active == 0) 579 printf(" %s", be->dbbe_name); 580 } 581 printf("\n"); 582 printf("KDB: current backend: %s\n", 583 kdb_dbbe->dbbe_name); 584 } | 564 kdb_active = 0; 565 kdb_dbbe = NULL; 566 cur_pri = -1; 567 SET_FOREACH(iter, kdb_dbbe_set) { 568 be = *iter; 569 pri = (be->dbbe_init != NULL) ? be->dbbe_init() : -1; 570 be->dbbe_active = (pri >= 0) ? 0 : -1; 571 if (pri > cur_pri) { --- 7 unchanged lines hidden (view full) --- 579 be = *iter; 580 if (be->dbbe_active == 0) 581 printf(" %s", be->dbbe_name); 582 } 583 printf("\n"); 584 printf("KDB: current backend: %s\n", 585 kdb_dbbe->dbbe_name); 586 } |
587 TSEXIT(); |
|
585} 586 587/* 588 * Handle contexts. 589 */ 590void * 591kdb_jmpbuf(jmp_buf new) 592{ --- 213 unchanged lines hidden --- | 588} 589 590/* 591 * Handle contexts. 592 */ 593void * 594kdb_jmpbuf(jmp_buf new) 595{ --- 213 unchanged lines hidden --- |