|
William Cohen |
9a7f0c |
diff -up dyninst/proccontrol/src/linux.C.orig dyninst/proccontrol/src/linux.C
|
|
William Cohen |
9a7f0c |
--- dyninst/proccontrol/src/linux.C.orig 2013-06-18 11:34:02.000000000 -0400
|
|
William Cohen |
9a7f0c |
+++ dyninst/proccontrol/src/linux.C 2013-08-05 12:16:35.172000000 -0400
|
|
William Cohen |
9a7f0c |
@@ -1970,7 +1970,7 @@ bool linux_thread::plat_getRegister(Dyni
|
|
William Cohen |
9a7f0c |
const unsigned size = i->second.second;
|
|
William Cohen |
9a7f0c |
assert(sizeof(val) >= size);
|
|
William Cohen |
9a7f0c |
val = 0;
|
|
William Cohen |
9a7f0c |
- unsigned long result = do_ptrace((pt_req) PTRACE_PEEKUSR, lwp, (void *) offset, NULL);
|
|
William Cohen |
9a7f0c |
+ unsigned long result = do_ptrace((pt_req) PTRACE_PEEKUSER, lwp, (void *) offset, NULL);
|
|
William Cohen |
9a7f0c |
if (errno != 0) {
|
|
William Cohen |
9a7f0c |
perr_printf("Error reading registers from %d: %s\n", lwp, strerror(errno));
|
|
William Cohen |
9a7f0c |
setLastError(err_internal, "Could not read register from thread");
|
|
William Cohen |
9a7f0c |
@@ -2184,11 +2184,11 @@ bool linux_thread::plat_setRegister(Dyni
|
|
William Cohen |
9a7f0c |
int result;
|
|
William Cohen |
9a7f0c |
if (size == 4) {
|
|
William Cohen |
9a7f0c |
uint32_t value = (uint32_t) val;
|
|
William Cohen |
9a7f0c |
- result = do_ptrace((pt_req) PTRACE_POKEUSR, lwp, (void *) offset, (void *) value);
|
|
William Cohen |
9a7f0c |
+ result = do_ptrace((pt_req) PTRACE_POKEUSER, lwp, (void *) offset, (void *) value);
|
|
William Cohen |
9a7f0c |
}
|
|
William Cohen |
9a7f0c |
else if (size == 8) {
|
|
William Cohen |
9a7f0c |
uint64_t value = (uint64_t) val;
|
|
William Cohen |
9a7f0c |
- result = do_ptrace((pt_req) PTRACE_POKEUSR, lwp, (void *) offset, (void *) value);
|
|
William Cohen |
9a7f0c |
+ result = do_ptrace((pt_req) PTRACE_POKEUSER, lwp, (void *) offset, (void *) value);
|
|
William Cohen |
9a7f0c |
}
|
|
William Cohen |
9a7f0c |
else {
|
|
William Cohen |
9a7f0c |
assert(0);
|
|
William Cohen |
9a7f0c |
diff -up dyninst/proccontrol/src/linux.h.orig dyninst/proccontrol/src/linux.h
|
|
William Cohen |
9a7f0c |
--- dyninst/proccontrol/src/linux.h.orig 2013-06-18 11:34:02.000000000 -0400
|
|
William Cohen |
9a7f0c |
+++ dyninst/proccontrol/src/linux.h 2013-08-05 12:16:35.173000000 -0400
|
|
William Cohen |
9a7f0c |
@@ -47,7 +47,6 @@
|
|
William Cohen |
9a7f0c |
#include "common/h/dthread.h"
|
|
William Cohen |
9a7f0c |
#include <sys/types.h>
|
|
William Cohen |
9a7f0c |
#include <sys/ptrace.h>
|
|
William Cohen |
9a7f0c |
-#include <linux/ptrace.h>
|
|
William Cohen |
9a7f0c |
|
|
William Cohen |
9a7f0c |
typedef enum __ptrace_request pt_req;
|
|
William Cohen |
9a7f0c |
|
|
William Cohen |
9a7f0c |
diff -up dyninst/stackwalk/src/linux-swk.C.orig dyninst/stackwalk/src/linux-swk.C
|
|
William Cohen |
9a7f0c |
--- dyninst/stackwalk/src/linux-swk.C.orig 2013-06-18 11:34:02.000000000 -0400
|
|
William Cohen |
9a7f0c |
+++ dyninst/stackwalk/src/linux-swk.C 2013-08-05 12:16:35.175000000 -0400
|
|
William Cohen |
9a7f0c |
@@ -73,7 +73,6 @@ using namespace Dyninst::Stackwalker;
|
|
William Cohen |
9a7f0c |
// if porting to some linux-like platform that doesn't support
|
|
William Cohen |
9a7f0c |
// them.
|
|
William Cohen |
9a7f0c |
#include <sys/ptrace.h>
|
|
William Cohen |
9a7f0c |
-#include <linux/ptrace.h>
|
|
William Cohen |
9a7f0c |
typedef enum __ptrace_request pt_req;
|
|
William Cohen |
9a7f0c |
#define cap_ptrace_traceclone
|
|
William Cohen |
9a7f0c |
#define cap_ptrace_setoptions
|