Skip to content

Commit 842e40d

Browse files
committed
[NTOS:KDBG] Minor code style for the following commits
1 parent 478a903 commit 842e40d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

ntoskrnl/kd64/kdtrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ KdpTrap(IN PKTRAP_FRAME TrapFrame,
147147

148148
/*
149149
* Check if we got a STATUS_BREAKPOINT with a SubID for Print, Prompt or
150-
* Load/Unload symbols. Make sure it isn't a software breakpoints as those
150+
* Load/Unload symbols. Make sure it isn't a software breakpoint as those
151151
* are handled by KdpReport.
152152
*/
153153
if ((ExceptionRecord->ExceptionCode == STATUS_BREAKPOINT) &&

ntoskrnl/kdbg/kdb.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ KdbpInternalEnter(VOID)
11761176
Thread->Tcb.StackLimit = (ULONG_PTR)KdbStack;
11771177
Thread->Tcb.KernelStack = (char*)KdbStack + KDB_STACK_SIZE;
11781178

1179-
// KdbPrintf("Switching to KDB stack 0x%08x-0x%08x (Current Stack is 0x%08x)\n", Thread->Tcb.StackLimit, Thread->Tcb.StackBase, Esp);
1179+
// KdbPrintf("Switching to KDB stack 0x%08x-0x%08x (Current Stack is 0x%08x)\n",
1180+
// Thread->Tcb.StackLimit, Thread->Tcb.StackBase, Esp);
11801181

11811182
KdbpStackSwitchAndCall(KdbStack + KDB_STACK_SIZE - KDB_STACK_RESERVE, KdbpCallMainLoop);
11821183

@@ -1333,7 +1334,6 @@ KdbEnterDebuggerException(
13331334
{
13341335
Resume = TRUE; /* Set the resume flag when continuing execution */
13351336
}
1336-
13371337
/*
13381338
* When a temporary breakpoint is hit we have to make sure that we are
13391339
* in the same context in which it was set, otherwise it could happen
@@ -1360,7 +1360,6 @@ KdbEnterDebuggerException(
13601360

13611361
KdbEnteredOnSingleStep = TRUE;
13621362
}
1363-
13641363
/*
13651364
* If we hit a breakpoint set by the debugger we set the single step flag,
13661365
* ignore the next single step and reenable the breakpoint.

ntoskrnl/kdbg/kdb_cli.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3341,23 +3341,20 @@ VOID
33413341
KdbpCliInterpretInitFile(VOID)
33423342
{
33433343
PCHAR p1, p2;
3344-
INT_PTR i;
3345-
CHAR c;
33463344

33473345
/* Execute the commands in the init file */
33483346
DPRINT("KDB: Executing KDBinit file...\n");
33493347
p1 = KdbInitFileBuffer;
33503348
while (p1[0] != '\0')
33513349
{
3352-
i = strcspn(p1, "\r\n");
3350+
size_t i = strcspn(p1, "\r\n");
33533351
if (i > 0)
33543352
{
3355-
c = p1[i];
3353+
CHAR c = p1[i];
33563354
p1[i] = '\0';
33573355

33583356
/* Look for "break" command and comments */
33593357
p2 = p1;
3360-
33613358
while (isspace(p2[0]))
33623359
p2++;
33633360

0 commit comments

Comments
 (0)