diff options
author | bde <bde@FreeBSD.org> | 1996-04-07 18:34:59 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-04-07 18:34:59 +0000 |
commit | 7c0a6ed764e251179c7beb4a24258d391141f6f0 (patch) | |
tree | 58df7a1f64b5306fa80dc438893ab67920ebf509 /sys | |
parent | b6732671c141de708116fc9628450b6c3f1accdb (diff) | |
download | FreeBSD-src-7c0a6ed764e251179c7beb4a24258d391141f6f0.zip FreeBSD-src-7c0a6ed764e251179c7beb4a24258d391141f6f0.tar.gz |
Use breakpoint() function instead of inline assembler.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/db_interface.c | 8 | ||||
-rw-r--r-- | sys/i386/i386/db_interface.c | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index dd42079..2f36221 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -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; } } diff --git a/sys/i386/i386/db_interface.c b/sys/i386/i386/db_interface.c index dd42079..2f36221 100644 --- a/sys/i386/i386/db_interface.c +++ b/sys/i386/i386/db_interface.c @@ -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; } } |