Example #1
0
PyObject* vm_remove_memory_breakpoint(VmMngr* self, PyObject* args)
{
	PyObject *ad;
	PyObject *access;
	uint64_t b_ad;
	uint64_t b_access;

	if (!PyArg_ParseTuple(args, "OO", &ad, &access))
		RAISE(PyExc_TypeError,"Cannot parse arguments");

	PyGetInt_uint64_t(ad, b_ad);
	PyGetInt_uint64_t(access, b_access);
	remove_memory_breakpoint(&self->vm_mngr, b_ad, (unsigned int)b_access);

	Py_INCREF(Py_None);
	return Py_None;
}
Example #2
0
PyObject* vm_remove_memory_breakpoint(VmMngr* self, PyObject* args)
{
	PyObject *ad;
	PyObject *access;
	uint64_t b_ad;
	uint64_t b_access;

	if (!PyArg_ParseTuple(args, "OO", &ad, &access))
		return NULL;

	PyGetInt(ad, b_ad);
	PyGetInt(access, b_access);
	remove_memory_breakpoint(&self->vm_mngr, b_ad, b_access);

	Py_INCREF(Py_None);
	return Py_None;
}