Skip to content
Snippets Groups Projects
Commit ab077a90 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[+] Added the ability to work with functions of a static class ChainGDB.

parent a5a0632d
No related branches found
No related tags found
1 merge request!8Features 2566
......@@ -53,6 +53,7 @@
#include "dap_file_utils.h"
#include "dap_string.h"
#include "generator_config_file.h"
#include "wrapping_dap_chain_gdb.h"
#include "dap_common.h"
......
......@@ -271,7 +271,7 @@ static PyObject *python_cellframe_init(PyObject *self, PyObject *args){
}
}
if (strcmp(c_value, "GDB") == 0){
if (dap_chain_gdb_init() != 0){
if (dap_chain_gdb_init_py() != 0){
PyErr_SetString(CellFrame_error, "Failed to initialize GDB module. ");
return NULL;
}
......@@ -334,6 +334,8 @@ PyMODINIT_FUNC PyInit_CellFrame(void){
PyType_Ready(&DapChainNetStateObject_DapChainNetStateObjectType) < 0 ||
// =============
PyType_Ready(&DapChainGDBObject_DapChainGDBType) < 0 ||
PyType_Ready(&DapHTTP_DapHTTPType) < 0 ||
PyType_Ready(&DapEncHTTP_DapEncHTTPType) < 0 ||
PyType_Ready(&DapStream_DapStreamType) < 0 ||
......@@ -402,6 +404,8 @@ PyMODINIT_FUNC PyInit_CellFrame(void){
PyModule_AddObject(module, "ChainNetState", (PyObject*)&DapChainNetStateObject_DapChainNetStateObjectType);
// =============
PyModule_AddObject(module, "ChainGDB", (PyObject*)&DapChainGDBObject_DapChainGDBType);
PyModule_AddObject(module, "Http", (PyObject*)&DapHTTP_DapHTTPType);
PyModule_AddObject(module, "EncHttp", (PyObject*)&DapEncHTTP_DapEncHTTPType);
PyModule_AddObject(module, "Stream", (PyObject*)&DapStream_DapStreamType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment