本文整理汇总了C++中AnalysisProcessor::getRegSymbolicID方法的典型用法代码示例。如果您正苦于以下问题:C++ AnalysisProcessor::getRegSymbolicID方法的具体用法?C++ AnalysisProcessor::getRegSymbolicID怎么用?C++ AnalysisProcessor::getRegSymbolicID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AnalysisProcessor
的用法示例。
在下文中一共展示了AnalysisProcessor::getRegSymbolicID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
static PyObject *Triton_getRegs(PyObject *self, PyObject *noargs)
{
PyObject *regs = xPyDict_New();
/* Build all Registers */
for (uint64 regId = ID_RAX; regId < ID_RFLAGS; regId++){
PyObject *reg = xPyDict_New();
if (regId >= ID_XMM0 && regId <= ID_XMM15)
PyDict_SetItemString(reg, "concreteValue", uint128ToPyLongObject(ap.getSSERegisterValue(regId)));
else
PyDict_SetItemString(reg, "concreteValue", Py_BuildValue("k", ap.getRegisterValue(regId)));
PyDict_SetItemString(reg, "symbolicExpr", Py_BuildValue("k", ap.getRegSymbolicID(regId)));
PyDict_SetItem(regs, Py_BuildValue("k", regId), reg);
}
/* Build all Flags */
for (uint64 flagId = ID_AF; flagId <= ID_ZF; flagId++){
PyObject *flag = xPyDict_New();
PyDict_SetItemString(flag, "concreteValue", Py_BuildValue("k", ap.getFlagValue(flagId)));
PyDict_SetItemString(flag, "symbolicExpr", Py_BuildValue("k", ap.getRegSymbolicID(flagId)));
PyDict_SetItem(regs, Py_BuildValue("k", flagId), flag);
}
return regs;
}
示例2: PyErr_Format
static PyObject *Triton_getRegSymbolicID(PyObject *self, PyObject *reg)
{
if (!PyLong_Check(reg) && !PyInt_Check(reg))
return PyErr_Format(PyExc_TypeError, "getRegSymbolicID(): expected a register id (integer) as argument");
return Py_BuildValue("k", ap.getRegSymbolicID(PyLong_AsLong(reg)));
}
示例3: PyErr_Format
static PyObject *Triton_getRegSymbolicID(PyObject *self, PyObject *reg) {
RegisterOperand ro;
uint64 regId = 0;
if (!PyLong_Check(reg) && !PyInt_Check(reg))
return PyErr_Format(PyExc_TypeError, "getRegSymbolicID(): expected a register id (integer) as argument");
regId = PyLong_AsLongLong(reg);
ro = createTmpReg(regId);
return Py_BuildValue("k", ap.getRegSymbolicID(ro));
}