Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
a3c8a39e
Commit
a3c8a39e
authored
Oct 19, 2009
by
Friedemann Kleint
Browse files
CDB: Fix attaching to a crashed process.
parent
f240ceb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbdebugengine.cpp
View file @
a3c8a39e
...
...
@@ -707,10 +707,17 @@ bool CdbDebugEngine::startAttachDebugger(qint64 pid, DebuggerStartMode sm, QStri
{
// Need to attrach invasively, otherwise, no notification signals
// for for CreateProcess/ExitProcess occur.
// As of version 6.11, the initial breakpoint suppression has no effect (see notifyException).
// when attaching to a console process starting up. However, there is no initial breakpoint
// (and no startup trap), when attaching to a running GUI process.
const
ULONG
flags
=
DEBUG_ATTACH_INVASIVE_RESUME_PROCESS
|
DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK
;
// Initial breakpoint occur:
// 1) Desired: When attaching to a crashed process
// 2) Undesired: When starting up a console process, in conjunction
// with the 32bit Wow-engine
// As of version 6.11, the flag only affects 1). 2) Still needs to be suppressed
// by lookup at the state of the application (startup trap). However,
// there is no startup trap when attaching to a process that has been
// running for a while. (see notifyException).
ULONG
flags
=
DEBUG_ATTACH_INVASIVE_RESUME_PROCESS
;
if
(
manager
()
->
startParameters
()
->
startMode
!=
AttachCrashedExternal
)
flags
|=
DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK
;
const
HRESULT
hr
=
m_d
->
m_cif
.
debugClient
->
AttachProcess
(
NULL
,
pid
,
flags
);
if
(
debugCDB
)
qDebug
()
<<
"Attaching to "
<<
pid
<<
" using flags"
<<
flags
<<
" returns "
<<
hr
<<
executionStatusString
(
m_d
->
m_cif
.
debugControl
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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