Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
3ff03ea9
Commit
3ff03ea9
authored
Jan 21, 2011
by
Friedemann Kleint
Browse files
Debugger: Fix CDB autodetection for 32bit builds on 64bit systems.
parent
c11d657d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdboptions.cpp
View file @
3ff03ea9
...
...
@@ -242,12 +242,16 @@ bool CdbOptions::autoDetectExecutable(QString *outPath, bool *is64bitIn /* = 0
return
true
;
}
#else
*
outPath
=
checkCdbExecutable
(
programDir
+
QLatin1String
(
" (x64)"
),
QString
(),
checkedDirectories
);
// A 32bit process on 64 bit sees "ProgramFiles\Debg.. (x64)"
if
(
programDir
.
endsWith
(
QLatin1String
(
" (x86)"
)))
{
*
outPath
=
checkCdbExecutable
(
programDir
.
left
(
programDir
.
size
()
-
6
),
QLatin1String
(
" (x64)"
),
checkedDirectories
);
if
(
!
outPath
->
isEmpty
())
{
if
(
is64bitIn
)
*
is64bitIn
=
true
;
return
true
;
}
}
#endif
return
false
;
}
...
...
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