summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2024-02-12 01:26:33 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-02-12 18:50:00 +0100
commitdf9270ef134498d4fffb921286375137d3639ae5 (patch)
tree1eb4ddb572f24fbc737a99c4c63d39fe6d2b3653 /ddb
parent2556fdece900d67529d5eda01f1bdaae4ffe96b0 (diff)
Replace kernel header includes in include/mach/mach_types.h with forward declarations.
I was trying to reuse TASK_NAME_SIZE in kern/thread.h but it was impossible because files included from kern/task.h end up requiring kern/thread.h (through percpu.h), creating a recursive dependency. With this change, mach_types.h only defines forward declarations and modules have to explicitly include the appropriate header file if they want to be able touch those structures. Most of the other includes are required because we no longer grab many different includes through mach_types.h. Message-ID: <20240212062634.1082207-1-flaviocruz@gmail.com>
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_examine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 88d7a575..1941fc38 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -47,6 +47,7 @@
#include <kern/task.h>
#include <kern/smp.h>
#include <mach/vm_param.h>
+#include <vm/vm_map.h>
#define db_thread_to_task(thread) ((thread)? thread->task: TASK_NULL)