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
m417z
pykd
Commits
dfb935f3
Commit
dfb935f3
authored
Mar 16, 2020
by
ussrhero
Browse files
added : additional parameter for debugCommand routine to control an output mask
parent
fce59281
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
pykd/pydbgeng.h
pykd/pydbgeng.h
+2
-2
pykd/pymod.cpp
pykd/pymod.cpp
+5
-3
No files found.
pykd/pydbgeng.h
View file @
dfb935f3
...
...
@@ -104,13 +104,13 @@ bool isKernelDebugging()
inline
python
::
object
debugCommand
(
const
std
::
wstring
&
command
,
bool
suppressOutput
=
true
)
python
::
object
debugCommand
(
const
std
::
wstring
&
command
,
bool
suppressOutput
=
true
,
const
kdlib
::
OutputFlagsSet
&
captureFlags
=
kdlib
::
OutputFlag
::
Normal
)
{
std
::
wstring
debugResult
;
{
AutoRestorePyState
pystate
;
debugResult
=
kdlib
::
debugCommand
(
command
,
suppressOutput
);
debugResult
=
kdlib
::
debugCommand
(
command
,
suppressOutput
,
captureFlags
);
}
if
(
debugResult
.
size
()
>
0
)
...
...
pykd/pymod.cpp
View file @
dfb935f3
...
...
@@ -42,7 +42,7 @@ BOOST_PYTHON_FUNCTION_OVERLOADS( terminateProcess_, pykd::terminateProcess, 0,
BOOST_PYTHON_FUNCTION_OVERLOADS
(
closeDump_
,
pykd
::
closeDump
,
0
,
1
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
attachKernel_
,
pykd
::
attachKernel
,
0
,
1
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
evaluate_
,
pykd
::
evaluate
,
1
,
2
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
debugCommand_
,
pykd
::
debugCommand
,
1
,
2
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
debugCommand_
,
pykd
::
debugCommand
,
1
,
3
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
dprint_
,
pykd
::
dprint
,
1
,
2
);
BOOST_PYTHON_FUNCTION_OVERLOADS
(
dprintln_
,
pykd
::
dprintln
,
1
,
2
);
...
...
@@ -207,8 +207,10 @@ void pykd_init()
"Break into debugger"
);
python
::
def
(
"expr"
,
pykd
::
evaluate
,
evaluate_
(
python
::
args
(
"expression"
,
"cplusplus"
),
"Evaluate windbg expression"
)
);
python
::
def
(
"dbgCommand"
,
&
pykd
::
debugCommand
,
debugCommand_
(
python
::
args
(
"command"
,
"suppressOutput"
),
"Run a debugger's command and return it's result as a string"
)
);
python
::
def
(
"dbgCommand"
,
&
pykd
::
debugCommand
,
debugCommand_
(
python
::
args
(
"command"
,
"suppressOutput"
,
"outputMask"
),
"Run a debugger's command and return it's result as a string. You can set additional outputMask"
\
"if you want to get also error messages"
)
);
python
::
def
(
"go"
,
pykd
::
targetGo
,
"Go debugging"
);
python
::
def
(
"step"
,
pykd
::
targetStep
,
...
...
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