Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Aleksey R.
pykd
Commits
f6dc5f1b
Commit
f6dc5f1b
authored
Mar 07, 2018
by
Aleksey R.
Browse files
Merge branch '0.3.2' into '0.3.2'
update See merge request
!1
parents
2cc75c08
5d30d679
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
12 deletions
+32
-12
kdlibcpp
kdlibcpp
+1
-1
pykd/pydbgeng.h
pykd/pydbgeng.h
+14
-0
pykd/pykdver.h
pykd/pykdver.h
+1
-1
pykd/pymod.cpp
pykd/pymod.cpp
+16
-10
No files found.
kdlibcpp
@
8d28d97e
Compare
58ee1ee9
...
8d28d97e
Subproject commit
58ee1ee9a33bc509342fe3d2a13c11823241000b
Subproject commit
8d28d97eaa231f1c7c8147e9a54d71344deeea21
pykd/pydbgeng.h
View file @
f6dc5f1b
...
...
@@ -119,6 +119,20 @@ python::object debugCommand( const std::wstring &command, bool suppressOutput =
return
python
::
object
();
}
inline
kdlib
::
DebugOptionsSet
getDebugOptions
()
{
AutoRestorePyState
pystate
;
return
kdlib
::
getDebugOptions
();
}
inline
void
changeDebugOptions
(
kdlib
::
DebugOptionsSet
&
addOptions
,
kdlib
::
DebugOptionsSet
&
removeOptions
)
{
AutoRestorePyState
pystate
;
kdlib
::
changeDebugOptions
(
addOptions
,
removeOptions
);
}
///////////////////////////////////////////////////////////////////////////////
// processes end threads
...
...
pykd/pykdver.h
View file @
f6dc5f1b
...
...
@@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 3
#define PYKD_VERSION_SUBVERSION 3
#define PYKD_VERSION_BUILDNO
2
#define PYKD_VERSION_BUILDNO
3
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)
...
...
pykd/pymod.cpp
View file @
f6dc5f1b
...
...
@@ -186,6 +186,11 @@ BOOST_PYTHON_MODULE( pykd )
"Create memory dump file"
);
python
::
def
(
"getLocalProcesses"
,
pykd
::
getLocalProcesses
,
"Return list of runnng processes on the host system"
);
python
::
def
(
"getDebugOptions"
,
pykd
::
getDebugOptions
,
"Return debug options"
);
python
::
def
(
"changeDebugOptions"
,
pykd
::
changeDebugOptions
,
"Change debug options"
);
python
::
def
(
"breakin"
,
pykd
::
targetBreak
,
"Break into debugger"
);
...
...
@@ -1360,16 +1365,17 @@ BOOST_PYTHON_MODULE( pykd )
.
def
(
"__str__"
,
pykd
::
printSyntheticSymbol
,
"Return object as a string"
);
//python::class_<pykd::DataAccessor, boost::noncopyable>("dataAccessor",
// "class for abstract representation of data storage",python::no_init)
// .def("readByte", &pykd::DataAccessor::readByte)
// ;
//python::class_<pykd::ListDataAccessor, kdlib::DataAccessorPtr>("objectAccessor",
// "class for data access to python objects", python::no_init)
// .def( python::init<python::object&>() )
// //.def("readByte", &pykd::ListDataAccessor::readByte, "")
// ;
python
::
enum_
<
kdlib
::
DebugOptions
>
(
"debugOptions"
,
"Debug options"
)
.
value
(
"InitialBreak"
,
kdlib
::
InitialBreak
)
.
value
(
"FinalBreak"
,
kdlib
::
FinalBreak
)
.
value
(
"PreferDml"
,
kdlib
::
PreferDml
)
;
python
::
enum_
<
kdlib
::
BreakpointAccess
>
(
"breakpointAccess"
,
"Breakpoint access types"
)
.
value
(
"Read"
,
kdlib
::
Read
)
.
value
(
"Write"
,
kdlib
::
Write
)
.
value
(
"Execute"
,
kdlib
::
Execute
)
;
// C++ exception translation to python
pykd
::
registerExceptions
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment