Browse Source

update lldb test

python
Jørgen Lien Sellæg 5 years ago
parent
commit
1a11a5736b
  1. 3
      src/debug_lldb.cpp
  2. 2
      tests/python_bindings/Debug_lldb_tests/debug_lldb_test.py

3
src/debug_lldb.cpp

@ -10,8 +10,8 @@
#include "utility.hpp" #include "utility.hpp"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <iostream> #include <iostream>
#include <pybind11/stl.h>
#include <pybind11/functional.h> #include <pybind11/functional.h>
#include <pybind11/stl.h>
extern char **environ; extern char **environ;
@ -601,6 +601,7 @@ void Debug::LLDB::init_module(pybind11::module &api) {
dbg dbg
.def(py::init([]() { return &(Debug::LLDB::get()); })) .def(py::init([]() { return &(Debug::LLDB::get()); }))
.def_static("destroy", &Debug::LLDB::destroy)
.def_readwrite("on_exit", &Debug::LLDB::on_exit) .def_readwrite("on_exit", &Debug::LLDB::on_exit)
.def("continue_debug", &Debug::LLDB::continue_debug) .def("continue_debug", &Debug::LLDB::continue_debug)
.def("stop", &Debug::LLDB::stop) .def("stop", &Debug::LLDB::stop)

2
tests/python_bindings/Debug_lldb_tests/debug_lldb_test.py

@ -18,4 +18,4 @@ def start_on_exit(exec_path):
while not exited: while not exited:
sleep(0.1) sleep(0.1)
l.cancel() LLDB.destroy()

Loading…
Cancel
Save