kernel_debugger_loop() now memorizes the last sDebuggerOnCPU value, so that

the CPU value doesn't get lost when exiting a nested debugger.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14069 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-26 02:39:24 +00:00
parent 15612acb76
commit 29cf7df355

View File

@ -272,6 +272,7 @@ parse_line(char *buf, char **argv, int *argc, int max_args)
static void
kernel_debugger_loop(void)
{
int32 previousCPU = sDebuggerOnCPU;
sDebuggerOnCPU = smp_get_current_cpu();
kprintf("Welcome to Kernel Debugging Land...\n");
@ -311,7 +312,7 @@ kernel_debugger_loop(void)
sCurrentLine = 0;
}
sDebuggerOnCPU = -1;
sDebuggerOnCPU = previousCPU;
}