mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Add 'shell' and 'breakp' for the Python API
* 'lief.shell()' spawns an IPython interpreter with the current
context
* 'lief.breakp()' launchs pdb.set_trace()
This commit is contained in:
@@ -32,4 +32,12 @@ void init_LIEF_Parser_class(py::module& m) {
|
||||
"Parse the given binary and return a " RST_CLASS_REF(lief.Binary) " object",
|
||||
"raw"_a, "name"_a = "",
|
||||
py::return_value_policy::take_ownership);
|
||||
|
||||
|
||||
m.def("parse",
|
||||
[] (py::object byteio) {
|
||||
std::cout << "foo" << std::endl;
|
||||
return nullptr;
|
||||
},
|
||||
py::return_value_policy::take_ownership);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user