Blame view

arch/x86/um/ptrace_user.c 419 Bytes
48b201846   Jeff Dike   uml: mark tt-mode...
1
  /*
4c9e13851   Jeff Dike   uml: style fixes ...
2
   * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
4
   * Licensed under the GPL
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5
  #include <errno.h>
37185b332   Al Viro   um: get rid of po...
6
  #include <ptrace_user.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  
  int ptrace_getregs(long pid, unsigned long *regs_out)
  {
  	if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
  		return -errno;
  	return 0;
  }
  
  int ptrace_setregs(long pid, unsigned long *regs)
  {
  	if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
  		return -errno;
  	return 0;
  }