Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252049
b: refs/heads/master
c: c46dd6b
h: refs/heads/master
i:
  252047: 004e0b4
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 27, 2011
1 parent dbbe96c commit fe29872
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82258c661a9175ec10018cf34090f88cf4da4982
refs/heads/master: c46dd6b48db02c1fa2f0644809605344660d3956
18 changes: 5 additions & 13 deletions trunk/arch/x86/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ struct cpuinfo_x86;
struct task_struct;

extern unsigned long profile_pc(struct pt_regs *regs);
#define profile_pc profile_pc

extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
Expand Down Expand Up @@ -202,20 +203,11 @@ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
#endif
}

static inline unsigned long instruction_pointer(struct pt_regs *regs)
{
return regs->ip;
}

static inline unsigned long frame_pointer(struct pt_regs *regs)
{
return regs->bp;
}
#define GET_IP(regs) ((regs)->ip)
#define GET_FP(regs) ((regs)->bp)
#define GET_USP(regs) ((regs)->sp)

static inline unsigned long user_stack_pointer(struct pt_regs *regs)
{
return regs->sp;
}
#include <asm-generic/ptrace.h>

/* Query offset/name of register from its name/offset */
extern int regs_query_register_offset(const char *name);
Expand Down

0 comments on commit fe29872

Please sign in to comment.