Code polishing, continuing cb23999fbf

Add more error messages to processes run for toolchain detection.
Move Windows-specific code to dbgwinutils, remove inclusion of
<windows.h>. Fix MinGW gcc 4.5 warnings.
This commit is contained in:
Friedemann Kleint
2010-09-09 09:58:17 +02:00
parent f63b316728
commit 97e7c12e3c
12 changed files with 141 additions and 61 deletions

View File

@@ -52,7 +52,7 @@
#include <QtNetwork/QTcpSocket>
#ifdef Q_OS_WIN
# include <windows.h>
# include "dbgwinutils.h"
#else
# include <sys/types.h>
# include <unistd.h>
@@ -100,7 +100,7 @@ TrkGdbAdapter::TrkGdbAdapter(GdbEngine *engine) :
m_gdbConnection = 0;
m_snapshot.reset();
#ifdef Q_OS_WIN
const DWORD portOffset = GetCurrentProcessId() % 100;
const unsigned long portOffset = winGetCurrentProcessId() % 100;
#else
const uid_t portOffset = getuid();
#endif