Port the SB128 code to AROS.
[AROS.git] / rom / debug / debug_intern.h
blob279926cecd8fa7e430114e5c825e4467138f67a0
1 #include <dos/bptr.h>
2 #include <exec/libraries.h>
3 #include <exec/semaphores.h>
5 typedef struct
7 char *s_name; /* Symbol name */
8 void *s_lowest; /* Start address */
9 void *s_highest; /* End address */
10 } dbg_sym_t;
12 typedef struct
14 char *m_shstr; /* Section headers table */
15 char *m_str; /* Symbol names table */
16 unsigned int m_segcnt; /* Count of segments */
17 dbg_sym_t *m_symbols; /* Array of associated symbols */
18 unsigned long m_symcnt; /* Number of symbols in the array */
19 char m_name[1]; /* Module name, variable length */
20 } module_t;
22 struct segment
24 struct MinNode s_node; /* For linking into the list */
25 BPTR s_seg; /* DOS segment pointer */
26 void * s_lowest; /* Start address */
27 void * s_highest; /* End address */
28 module_t * s_mod; /* Module descriptor */
29 char * s_name; /* Segment name */
30 unsigned int s_num; /* Segment number */
33 struct DebugBase
35 struct Library db_Lib;
36 struct MinList db_Modules;
37 struct ELF_ModuleInfo *db_KernelModules;
38 struct SignalSemaphore db_ModSem;
39 APTR db_KernelBase;
40 APTR db_UtilityBase;
43 #define DBGBASE(x) ((struct DebugBase *)x)
44 #define KernelBase DBGBASE(DebugBase)->db_KernelBase
45 #define UtilityBase DBGBASE(DebugBase)->db_UtilityBase