diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2007-12-25 17:52:02 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2007-12-25 17:52:02 +0000 |
commit | 3de213cc00f2889d2cd693968fd38c10a7f5def1 (patch) | |
tree | ae45f86ab6fb75519ba2d9dbc206616dba84cc13 /sys/sparc64/sparc64 | |
parent | 6862d27ecd3a641713fe08d9572a27bf218cc8d9 (diff) | |
download | src-3de213cc00f2889d2cd693968fd38c10a7f5def1.tar.gz src-3de213cc00f2889d2cd693968fd38c10a7f5def1.zip |
Add a new 'why' argument to kdb_enter(), and a set of constants to use
for that argument. This will allow DDB to detect the broad category of
reason why the debugger has been entered, which it can use for the
purposes of deciding which DDB script to run.
Assign approximate why values to all current consumers of the
kdb_enter() interface.
Notes
Notes:
svn path=/head/; revision=174898
Diffstat (limited to 'sys/sparc64/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 2 | ||||
-rw-r--r-- | sys/sparc64/sparc64/trap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 2e6d05e572bc..7d1aa0277d52 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -448,7 +448,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) #ifdef KDB if (boothowto & RB_KDB) - kdb_enter("Boot flags requested debugger"); + kdb_enter(KDB_WHY_BOOTFLAGS, "Boot flags requested debugger"); #endif } diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index 8d0ea358dfd3..e9e3c40ffcd4 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -289,7 +289,7 @@ trap(struct trapframe *tf) } if (debugger_on_signal && (sig == 4 || sig == 10 || sig == 11)) - kdb_enter("trapsig"); + kdb_enter(KDB_WHY_TRAPSIG, "trapsig"); ksiginfo_init_trap(&ksi); ksi.ksi_signo = sig; ksi.ksi_code = (int)tf->tf_type; /* XXX not POSIX */ |