Use breakpoint() function instead of inline assembler.

This commit is contained in:
Bruce Evans 1996-04-07 18:34:59 +00:00
parent 5dbd168e2e
commit 3fd674e22b
2 changed files with 4 additions and 12 deletions

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_interface.c,v 1.16 1995/12/07 12:45:29 davidg Exp $
* $Id: db_interface.c,v 1.17 1995/12/10 13:36:25 phk Exp $
*/
/*
@ -273,11 +273,7 @@ Debugger(msg)
if (!in_Debugger) {
in_Debugger = 1;
db_printf("Debugger(\"%s\")\n", msg);
#ifdef __GNUC__
__asm __volatile("int $3");
#else
int3();
#endif
breakpoint();
in_Debugger = 0;
}
}

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_interface.c,v 1.16 1995/12/07 12:45:29 davidg Exp $
* $Id: db_interface.c,v 1.17 1995/12/10 13:36:25 phk Exp $
*/
/*
@ -273,11 +273,7 @@ Debugger(msg)
if (!in_Debugger) {
in_Debugger = 1;
db_printf("Debugger(\"%s\")\n", msg);
#ifdef __GNUC__
__asm __volatile("int $3");
#else
int3();
#endif
breakpoint();
in_Debugger = 0;
}
}