Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
b6bf93a2
Commit
b6bf93a2
authored
14 years ago
by
Friedemann Kleint
Browse files
Options
Downloads
Patches
Plain Diff
Debugger: Fix compilation with MS VC 2005.
Reviewed-by:
Maurice Kalinowski
<
maurice.kalinowski@nokia.com
>
parent
62dd490b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/debugger/shared/dbgwinutils.cpp
+2
-9
2 additions, 9 deletions
src/plugins/debugger/shared/dbgwinutils.cpp
with
2 additions
and
9 deletions
src/plugins/debugger/shared/dbgwinutils.cpp
+
2
−
9
View file @
b6bf93a2
...
@@ -33,10 +33,9 @@
...
@@ -33,10 +33,9 @@
#include
<QtCore/QDebug>
#include
<QtCore/QDebug>
#include
<QtCore/QString>
#include
<QtCore/QString>
// Enable Win API of XP SP1 and later
#ifdef Q_OS_WIN
#ifdef Q_OS_WIN
# ifdef __GNUC__ // Required for OpenThread under MinGW
# define _WIN32_WINNT 0x0502
# define _WIN32_WINNT 0x0502
# endif // __GNUC__
# include <windows.h>
# include <windows.h>
# include <utils/winutils.h>
# include <utils/winutils.h>
# if !defined(PROCESS_SUSPEND_RESUME) // Check flag for MinGW
# if !defined(PROCESS_SUSPEND_RESUME) // Check flag for MinGW
...
@@ -244,11 +243,6 @@ QString winNormalizeFileName(const QString &f)
...
@@ -244,11 +243,6 @@ QString winNormalizeFileName(const QString &f)
bool
isWinProcessBeingDebugged
(
unsigned
long
pid
)
bool
isWinProcessBeingDebugged
(
unsigned
long
pid
)
{
{
// Exclude VS 2005
#if defined(_MSC_VER) && _MSC_VER < 1400
Q_UNUSED
(
pid
);
return
false
;
#else
HANDLE
processHandle
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
,
FALSE
,
pid
);
HANDLE
processHandle
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
,
FALSE
,
pid
);
if
(
processHandle
==
NULL
)
if
(
processHandle
==
NULL
)
return
false
;
return
false
;
...
@@ -256,7 +250,6 @@ bool isWinProcessBeingDebugged(unsigned long pid)
...
@@ -256,7 +250,6 @@ bool isWinProcessBeingDebugged(unsigned long pid)
CheckRemoteDebuggerPresent
(
processHandle
,
&
debugged
);
CheckRemoteDebuggerPresent
(
processHandle
,
&
debugged
);
CloseHandle
(
processHandle
);
CloseHandle
(
processHandle
);
return
debugged
!=
FALSE
;
return
debugged
!=
FALSE
;
#endif
}
}
}
// namespace Internal
}
// namespace Internal
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment