thanks to damocles, two places changed. one relates to the performance boost.
[mit-jos.git] / kern / kdebug.h
blob236af3923df14ec0b67bbe8391c9f7ea832efb7a
1 #ifndef JOS_KERN_KDEBUG_H
2 #define JOS_KERN_KDEBUG_H
4 #include <inc/types.h>
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
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);
20 #endif