aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/ia64
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@coco.thehackers.org>2009-07-04 11:29:27 +0200
committerJuan Cespedes <cespedes@coco.thehackers.org>2009-07-04 11:29:27 +0200
commit2a61d19bd244dadcde5009f1632cf14b95623e3d (patch)
treef833420c3848ec72bf3355273880364687f909b9 /sysdeps/linux-gnu/ia64
parent61da33723c5fb09762e38bd39a26ee15d62ffebc (diff)
downloadltrace-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.c2
-rw-r--r--sysdeps/linux-gnu/ia64/regs.c5
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);
+}