aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-04 00:30:28 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-05 01:01:45 +0100
commitc8cd13d8e9853752de5756ab42a98e2d0baff0a9 (patch)
tree3da4d2d12fdb903b1a85e93cf9514e5d93f7ae67 /i386
parentd7348c94453d2662affecbb7605047044898ed19 (diff)
downloadgnumach-c8cd13d8e9853752de5756ab42a98e2d0baff0a9.tar.gz
gnumach-c8cd13d8e9853752de5756ab42a98e2d0baff0a9.tar.bz2
gnumach-c8cd13d8e9853752de5756ab42a98e2d0baff0a9.zip
Fix ddb warnings introduced with -Wstrict-prototypes
Changed some ddb command functions to have the expected signature but not all of them due to the being difficult to inter-dependency between header files (for those just used cast). Message-Id: <Y7UO9HTfpZ8U0Nfy@mars>
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/trap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index 6e446ab0..1128145e 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -58,6 +58,7 @@
#include <kern/exception.h>
#if MACH_KDB
+#include <ddb/db_break.h>
#include <ddb/db_run.h>
#include <ddb/db_watch.h>
#endif
@@ -416,8 +417,6 @@ int user_trap(struct i386_saved_state *regs)
#endif /* MACH_TTD */
#if MACH_KDB
{
- boolean_t db_find_breakpoint_here();
-
if (db_find_breakpoint_here(
(current_thread())? current_thread()->task: TASK_NULL,
regs->eip - 1)) {