diff options
author | Juan Cespedes <cespedes@coco.thehackers.org> | 2009-07-04 11:29:27 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@coco.thehackers.org> | 2009-07-04 11:29:27 +0200 |
commit | 2a61d19bd244dadcde5009f1632cf14b95623e3d (patch) | |
tree | f833420c3848ec72bf3355273880364687f909b9 /sysdeps/linux-gnu/ia64 | |
parent | 61da33723c5fb09762e38bd39a26ee15d62ffebc (diff) | |
download | ltrace-2a61d19bd244dadcde5009f1632cf14b95623e3d.tar.gz |
Added set_return_addr() to sysdeps/linux-gnu/*/regs.c
Diffstat (limited to 'sysdeps/linux-gnu/ia64')
-rw-r--r-- | sysdeps/linux-gnu/ia64/plt.c | 2 | ||||
-rw-r--r-- | sysdeps/linux-gnu/ia64/regs.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/linux-gnu/ia64/plt.c b/sysdeps/linux-gnu/ia64/plt.c index 5b8bbb0..7fd451b 100644 --- a/sysdeps/linux-gnu/ia64/plt.c +++ b/sysdeps/linux-gnu/ia64/plt.c @@ -1,7 +1,5 @@ #include <gelf.h> #include "common.h" -#include "elf.h" -#include "debug.h" /* A bundle is 128 bits */ #define BUNDLE_SIZE 16 diff --git a/sysdeps/linux-gnu/ia64/regs.c b/sysdeps/linux-gnu/ia64/regs.c index e08f495..b8b8ea1 100644 --- a/sysdeps/linux-gnu/ia64/regs.c +++ b/sysdeps/linux-gnu/ia64/regs.c @@ -46,3 +46,8 @@ void * get_return_addr(Process *proc, void *stack_pointer) { return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, PT_B0, 0); } + +void +set_return_addr(Process *proc, void *addr) { + ptrace(PTRACE_POKEUSER, proc->pid, PT_B0, addr); +} |