bitkeeper revision 1.176 (3e9da47bzLFoU-B34fD8rTPJL639zw)

Merge scramble.cl.cam.ac.uk:/usr/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2003-04-16 18:44:11 +00:00
commit ddbb5431fd
2 files changed
+2 -2

No files matched your search

@@ -364,7 +364,7 @@ asmlinkage void do_debug(struct pt_regs * regs, long error_code)
/* If this is a kernel mode trap, save the user PC on entry to
* the kernel, that's what the debugger can make sense of.
*/
info.si_addr = ((regs->xcs & 3) == 0) ? (void *)tsk->thread.eip :
info.si_addr = ((regs->xcs & 2) == 0) ? (void *)tsk->thread.eip :
(void *)regs->eip;
force_sig_info(SIGTRAP, &info, tsk);
@@ -55,7 +55,7 @@ struct pt_regs {
#define PTRACE_O_TRACESYSGOOD 0x00000001
#ifdef __KERNEL__
#define user_mode(regs) ((regs) && (3 & (regs)->xcs))
#define user_mode(regs) ((regs) && (2 & (regs)->xcs))
#define instruction_pointer(regs) ((regs) ? (regs)->eip : NULL)
extern void show_regs(struct pt_regs *);
#endif
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.