mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] added : routines for symbol path managment
git-svn-id: https://pykd.svn.codeplex.com/svn@87295 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
32d2fe9962
commit
9a6a26b1ed
@ -390,12 +390,13 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
python::def("getLastException", pykd::getLastException,
|
||||
"Get last exception information");
|
||||
|
||||
|
||||
|
||||
// // symbol path
|
||||
// python::def( "getSymbolPath", &getSymbolPath, "Returns current symbol path");
|
||||
// python::def( "setSymbolPath", &setSymbolPath, "Set current symbol path");
|
||||
// python::def( "appendSymbolPath", &appendSymbolPath, "Append current symbol path");
|
||||
// symbol path
|
||||
python::def("getSymbolPath", pykd::getSymbolPath,
|
||||
"Returns current symbol path");
|
||||
python::def("setSymbolPath", pykd::setSymbolPath,
|
||||
"Set current symbol path");
|
||||
python::def("appendSymbolPath", pykd::appendSymbolPath,
|
||||
"Append current symbol path");
|
||||
|
||||
python::class_<kdlib::NumBehavior, boost::noncopyable>( "numVariant", "numVariant", python::no_init )
|
||||
.def("__init__", python::make_constructor(&NumVariantAdaptor::getVariant) )
|
||||
|
@ -13,5 +13,25 @@ void setSymSrvDir(const std::wstring &symSrvDirectory)
|
||||
kdlib::setSymSrvDir(symSrvDirectory);
|
||||
}
|
||||
|
||||
inline
|
||||
std::wstring getSymbolPath()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
return kdlib::getSymbolPath();
|
||||
}
|
||||
|
||||
inline
|
||||
void setSymbolPath(const std::wstring &symPath)
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
kdlib::setSymbolPath(symPath);
|
||||
}
|
||||
|
||||
inline
|
||||
void appendSymbolPath(const std::wstring &symPath)
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
kdlib::appendSymbolPath(symPath);
|
||||
}
|
||||
|
||||
} // namespace pykd
|
||||
|
Loading…
Reference in New Issue
Block a user