|
|
10b022 |
--- dyninst-9.3.1/common/src/Types.h.sv 2017-03-07 22:05:52.187479600 -0500
|
|
|
10b022 |
+++ dyninst-9.3.1/common/src/Types.h 2017-03-07 22:06:57.509944790 -0500
|
|
|
10b022 |
@@ -170,7 +170,7 @@
|
|
|
10b022 |
static const Address ADDR_NULL = (Address)(0);
|
|
|
10b022 |
#else
|
|
|
10b022 |
#define ADDR_NULL (0)
|
|
|
10b022 |
-typedef uintptr_t Address;
|
|
|
10b022 |
+typedef unsigned long Address;
|
|
|
10b022 |
#endif
|
|
|
10b022 |
/* Note the inherent assumption that the size of a "long" integer matches
|
|
|
10b022 |
that of an address (void*) on every supported Paradyn/Dyninst system!
|
|
|
10b022 |
|
|
|
10b022 |
|
|
|
10b022 |
--- dyninst-9.3.1/common/h/dyntypes.h.sv 2017-03-08 10:16:18.657768231 -0500
|
|
|
10b022 |
+++ dyninst-9.3.1/common/h/dyntypes.h 2017-03-08 10:37:07.992634513 -0500
|
|
|
10b022 |
@@ -124,8 +124,8 @@
|
|
|
10b022 |
|
|
|
10b022 |
namespace Dyninst
|
|
|
10b022 |
{
|
|
|
10b022 |
- typedef uintptr_t Address;
|
|
|
10b022 |
- typedef uintptr_t Offset;
|
|
|
10b022 |
+ typedef unsigned long Address;
|
|
|
10b022 |
+ typedef unsigned long Offset;
|
|
|
10b022 |
|
|
|
10b022 |
#if defined(_MSC_VER)
|
|
|
10b022 |
typedef int PID;
|
|
|
10b022 |
|
|
|
10b022 |
|
|
|
10b022 |
--- dyninst-9.3.1/dyninstAPI/src/BPatch_memoryAccess.C.sv 2017-03-07 23:07:29.371789000 -0500
|
|
|
10b022 |
+++ dyninst-9.3.1/dyninstAPI/src/BPatch_memoryAccess.C 2017-03-07 23:07:48.928927991 -0500
|
|
|
10b022 |
@@ -33,10 +33,10 @@
|
|
|
10b022 |
#include <stdlib.h>
|
|
|
10b022 |
#include <string.h>
|
|
|
10b022 |
|
|
|
10b022 |
+#include "../../common/src/Types.h"
|
|
|
10b022 |
#include "BPatch_memoryAccess_NP.h"
|
|
|
10b022 |
#include "BPatch_Vector.h"
|
|
|
10b022 |
#include "BPatch_point.h"
|
|
|
10b022 |
-#include "../../common/src/Types.h"
|
|
|
10b022 |
|
|
|
10b022 |
BPatch_addrSpec_NP::BPatch_addrSpec_NP(long _imm, int _ra, int _rb, int _scale) :
|
|
|
10b022 |
imm(_imm),
|
|
|
10b022 |
|
|
|
10b022 |
|
|
|
10b022 |
--- dyninst-9.3.1/dyninstAPI/h/BPatch_instruction.h.sv 2017-03-08 09:06:46.638171175 -0500
|
|
|
10b022 |
+++ dyninst-9.3.1/dyninstAPI/h/BPatch_instruction.h 2017-03-08 09:00:39.455564403 -0500
|
|
|
10b022 |
@@ -69,7 +69,7 @@
|
|
|
10b022 |
public:
|
|
|
10b022 |
|
|
|
10b022 |
BPatch_instruction(internal_instruction *insn,
|
|
|
10b022 |
- uintptr_t _addr);
|
|
|
10b022 |
+ Dyninst::Address _addr);
|
|
|
10b022 |
virtual ~BPatch_instruction();
|
|
|
10b022 |
|
|
|
10b022 |
void getInstruction(const unsigned char *&_buffer, unsigned char &_length);
|
|
|
10b022 |
|
|
|
10b022 |
|
|
|
10b022 |
--- dyninst-9.3.1/dyninstAPI/h/BPatch_memoryAccess_NP.h.sv 2017-03-07 22:43:56.645745821 -0500
|
|
|
10b022 |
+++ dyninst-9.3.1/dyninstAPI/h/BPatch_memoryAccess_NP.h 2017-03-08 10:39:30.122643332 -0500
|
|
|
10b022 |
@@ -121,27 +121,27 @@
|
|
|
10b022 |
static BPatch_memoryAccess* init_tables();
|
|
|
10b022 |
|
|
|
10b022 |
// initializes only the first access; #bytes is a constant
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *, uintptr_t _addr,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *, Dyninst::Address _addr,
|
|
|
10b022 |
bool _isLoad, bool _isStore, unsigned int _bytes,
|
|
|
10b022 |
long _imm, int _ra, int _rb, unsigned int _scale = 0,
|
|
|
10b022 |
int _cond = -1, bool _nt = false);
|
|
|
10b022 |
|
|
|
10b022 |
// initializes only the first access; #bytes is an expression w/scale
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *insn, uintptr_t _addr,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *insn, Dyninst::Address _addr,
|
|
|
10b022 |
bool _isinternal_Load, bool _isStore,
|
|
|
10b022 |
long _imm_s, int _ra_s, int _rb_s, unsigned int _scale_s,
|
|
|
10b022 |
long _imm_c, int _ra_c, int _rb_c, unsigned int _scale_c,
|
|
|
10b022 |
int _cond, bool _nt, int _preFcn = -1);
|
|
|
10b022 |
|
|
|
10b022 |
// initializes only the first access; #bytes is an expression
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *insn, uintptr_t _addr,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *insn, Dyninst::Address _addr,
|
|
|
10b022 |
bool _isLoad, bool _isStore, bool _isPrefetch,
|
|
|
10b022 |
long _imm_s, int _ra_s, int _rb_s,
|
|
|
10b022 |
long _imm_c, int _ra_c, int _rb_c,
|
|
|
10b022 |
unsigned short _preFcn);
|
|
|
10b022 |
|
|
|
10b022 |
// initializes only the first access; #bytes is an expression & not a prefetch
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *insn, uintptr_t _addr,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *insn, Dyninst::Address _addr,
|
|
|
10b022 |
bool _isLoad, bool _isStore, long _imm_s, int _ra_s, int _rb_s,
|
|
|
10b022 |
long _imm_c, int _ra_c, int _rb_c);
|
|
|
10b022 |
|
|
|
10b022 |
@@ -156,14 +156,14 @@
|
|
|
10b022 |
int _cond, bool _nt);
|
|
|
10b022 |
|
|
|
10b022 |
// initializes both accesses; #bytes is a constant
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *insn, uintptr_t _addr,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *insn, Dyninst::Address _addr,
|
|
|
10b022 |
bool _isLoad, bool _isStore, unsigned int _bytes,
|
|
|
10b022 |
long _imm, int _ra, int _rb, unsigned int _scale,
|
|
|
10b022 |
bool _isLoad2, bool _isStore2, unsigned int _bytes2,
|
|
|
10b022 |
long _imm2, int _ra2, int _rb2, unsigned int _scale2);
|
|
|
10b022 |
|
|
|
10b022 |
// initializes both accesses; #bytes is an expression & not a prefetch
|
|
|
10b022 |
- BPatch_memoryAccess(internal_instruction *insn, uintptr_t _addr, bool _isLoad, bool _isStore,
|
|
|
10b022 |
+ BPatch_memoryAccess(internal_instruction *insn, Dyninst::Address _addr, bool _isLoad, bool _isStore,
|
|
|
10b022 |
long _imm_s, int _ra_s, int _rb_s, unsigned int _scale_s,
|
|
|
10b022 |
long _imm_c, int _ra_c, int _rb_c, unsigned int _scale_c,
|
|
|
10b022 |
bool _isLoad2, bool _isStore2, long _imm2_s, int _ra2_s,
|