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:
parent
15612acb76
commit
29cf7df355
@ -272,6 +272,7 @@ parse_line(char *buf, char **argv, int *argc, int max_args)
|
|||||||
static void
|
static void
|
||||||
kernel_debugger_loop(void)
|
kernel_debugger_loop(void)
|
||||||
{
|
{
|
||||||
|
int32 previousCPU = sDebuggerOnCPU;
|
||||||
sDebuggerOnCPU = smp_get_current_cpu();
|
sDebuggerOnCPU = smp_get_current_cpu();
|
||||||
|
|
||||||
kprintf("Welcome to Kernel Debugging Land...\n");
|
kprintf("Welcome to Kernel Debugging Land...\n");
|
||||||
@ -311,7 +312,7 @@ kernel_debugger_loop(void)
|
|||||||
sCurrentLine = 0;
|
sCurrentLine = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sDebuggerOnCPU = -1;
|
sDebuggerOnCPU = previousCPU;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user