Cross-platformizing MMIO stuff.
MSVC build likely needs some fixes.
This commit is contained in:
@@ -25,5 +25,11 @@ bool IsDebuggerAttached() {
|
||||
return (info.kp_proc.p_flag & P_TRACED) != 0;
|
||||
}
|
||||
|
||||
// TODO(benvanik): find a more reliable way.
|
||||
void Break() {
|
||||
// __asm__("int $3");
|
||||
__builtin_debugtrap();
|
||||
}
|
||||
|
||||
} // namespace debugging
|
||||
} // namespace poly
|
||||
|
||||
Reference in New Issue
Block a user