mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:17:34 +00:00
Everywhere: Fix many spelling errors
This commit is contained in:
parent
6bf91d00ef
commit
3102d8e160
39 changed files with 73 additions and 73 deletions
|
@ -104,7 +104,7 @@ OwnPtr<DebugSession> DebugSession::exec_and_attach(String const& command,
|
|||
return {};
|
||||
}
|
||||
|
||||
// We want to continue until the exit from the 'execve' sycsall.
|
||||
// We want to continue until the exit from the 'execve' syscall.
|
||||
// This ensures that when we start debugging the process
|
||||
// it executes the target image, and not the forked image of the tracing process.
|
||||
// NOTE: we only need to do this when we are debugging a new process (i.e not attaching to a process that's already running!)
|
||||
|
|
|
@ -144,7 +144,7 @@ private:
|
|||
HashMap<void*, BreakPoint> m_breakpoints;
|
||||
HashMap<void*, WatchPoint> m_watchpoints;
|
||||
|
||||
// Maps from library name to LoadedLibrary obect
|
||||
// Maps from library name to LoadedLibrary object
|
||||
HashMap<String, NonnullOwnPtr<LoadedLibrary>> m_loaded_libraries;
|
||||
};
|
||||
|
||||
|
@ -245,7 +245,7 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
|
|||
if (current_breakpoint.has_value()) {
|
||||
// We want to make the breakpoint transparent to the user of the debugger.
|
||||
// To achieve this, we perform two rollbacks:
|
||||
// 1. Set regs.eip to point at the actual address of the instruction we breaked on.
|
||||
// 1. Set regs.eip to point at the actual address of the instruction we broke on.
|
||||
// regs.eip currently points to one byte after the address of the original instruction,
|
||||
// because the cpu has just executed the INT3 we patched into the instruction.
|
||||
// 2. We restore the original first byte of the instruction,
|
||||
|
@ -285,9 +285,9 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac
|
|||
// To re-enable the breakpoint, we first perform a single step and execute the
|
||||
// instruction of the breakpoint, and then redo the INT3 patch in its first byte.
|
||||
|
||||
// If the user manually inserted a breakpoint at were we breaked at originally,
|
||||
// we need to disable that breakpoint because we want to singlestep over it to execute the
|
||||
// instruction we breaked on (we re-enable it again later anyways).
|
||||
// If the user manually inserted a breakpoint at the current instruction,
|
||||
// we need to disable that breakpoint because we want to singlestep over that
|
||||
// instruction (we re-enable it again later anyways).
|
||||
if (m_breakpoints.contains(current_breakpoint.value().address) && m_breakpoints.get(current_breakpoint.value().address).value().state == BreakPointState::Enabled) {
|
||||
disable_breakpoint(current_breakpoint.value().address);
|
||||
}
|
||||
|
|
|
@ -247,7 +247,7 @@ void LineProgram::handle_standard_opcode(u8 opcode)
|
|||
m_basic_block = true;
|
||||
break;
|
||||
}
|
||||
case StandardOpcodes::SetProlougeEnd: {
|
||||
case StandardOpcodes::SetPrologueEnd: {
|
||||
m_prologue_end = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -153,7 +153,7 @@ private:
|
|||
SetBasicBlock,
|
||||
ConstAddPc,
|
||||
FixAdvancePc,
|
||||
SetProlougeEnd,
|
||||
SetPrologueEnd,
|
||||
SetEpilogueBegin,
|
||||
SetIsa
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue