Use debug interrupt for breakpoint in i386
This commit is contained in:
parent
a3a6765d38
commit
fb6f74487b
@ -42,7 +42,7 @@ panic (void)
|
|||||||
void
|
void
|
||||||
breakpoint (void) {
|
breakpoint (void) {
|
||||||
if (getenv ("DEBUG")) {
|
if (getenv ("DEBUG")) {
|
||||||
#if defined (__x86_64)
|
#if defined (__x86_64) || defined (__i386)
|
||||||
__asm__ ("int $3;");
|
__asm__ ("int $3;");
|
||||||
#else
|
#else
|
||||||
raise (SIGINT);
|
raise (SIGINT);
|
||||||
|
Loading…
Reference in New Issue
Block a user