diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-06-22 20:48:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-22 20:48:32 +0200 |
| commit | fbf307796f56f68cedaf763563e478155b843b83 (patch) | |
| tree | b05c169e5ff17c800a2692e0d0ddc09bb34fb881 /miasm2/jitter/Jitgcc.c | |
| parent | 191a47a37880caecb47f9b47ddf71fede335d1a0 (diff) | |
| parent | c33f2d988bda28a1b6dbe5a2c8bceb5819db9e42 (diff) | |
| download | miasm-fbf307796f56f68cedaf763563e478155b843b83.tar.gz miasm-fbf307796f56f68cedaf763563e478155b843b83.zip | |
Merge pull request #783 from commial/refactor/jitter-cleaning
Refactor/jitter cleaning
Diffstat (limited to 'miasm2/jitter/Jitgcc.c')
| -rw-r--r-- | miasm2/jitter/Jitgcc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/miasm2/jitter/Jitgcc.c b/miasm2/jitter/Jitgcc.c index 79274f24..329b7db4 100644 --- a/miasm2/jitter/Jitgcc.c +++ b/miasm2/jitter/Jitgcc.c @@ -10,13 +10,13 @@ typedef struct { typedef int (*jitted_func)(block_id*, PyObject*); -PyObject* gcc_exec_bloc(PyObject* self, PyObject* args) +PyObject* gcc_exec_block(PyObject* self, PyObject* args) { jitted_func func; PyObject* jitcpu; PyObject* func_py; PyObject* lbl2ptr; - PyObject* breakpoints; + PyObject* stop_offsets; PyObject* retaddr = NULL; int status; block_id BlockDst; @@ -26,7 +26,7 @@ PyObject* gcc_exec_bloc(PyObject* self, PyObject* args) if (!PyArg_ParseTuple(args, "OOOO|K", - &retaddr, &jitcpu, &lbl2ptr, &breakpoints, + &retaddr, &jitcpu, &lbl2ptr, &stop_offsets, &max_exec_per_call)) return NULL; @@ -73,8 +73,8 @@ PyObject* gcc_exec_bloc(PyObject* self, PyObject* args) if (status) return retaddr; - // Check breakpoint - if (PyDict_Contains(breakpoints, retaddr)) + // Check stop offsets + if (PySet_Contains(stop_offsets, retaddr)) return retaddr; } } @@ -85,8 +85,8 @@ static PyObject *GccError; static PyMethodDef GccMethods[] = { - {"gcc_exec_bloc", gcc_exec_bloc, METH_VARARGS, - "gcc exec bloc"}, + {"gcc_exec_block", gcc_exec_block, METH_VARARGS, + "gcc exec block"}, {NULL, NULL, 0, NULL} /* Sentinel */ }; |