1 #ifndef JOS_KERN_KDEBUG_H
2 #define JOS_KERN_KDEBUG_H
6 // Debug information about a particular instruction pointer
8 const char *eip_file
; // Source code filename for EIP
9 int eip_line
; // Source code linenumber for EIP
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
18 int debuginfo_eip(uintptr_t eip
, struct Eipdebuginfo
*info
);