Permissions on IDTs.
[akaros.git] / kern / kdebug.h
1 #ifndef JOS_KERN_KDEBUG_H
2 #define JOS_KERN_KDEBUG_H
3
4 #include <inc/types.h>
5
6 // Debug information about a particular instruction pointer
7 struct Eipdebuginfo {
8         const char *eip_file;           // Source code filename for EIP
9         int eip_line;                   // Source code linenumber for EIP
10
11         const char *eip_fn_name;        // Name of function containing EIP
12                                         //  - Note: not null terminated!
13         int eip_fn_namelen;             // Length of function name
14         uintptr_t eip_fn_addr;          // Address of start of function
15         int eip_fn_narg;                // Number of function arguments
16 };
17
18 int debuginfo_eip(uintptr_t eip, struct Eipdebuginfo *info);
19
20 #endif