Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
1562193b
Commit
1562193b
authored
Mar 12, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes: debugger: compile fix for dumpers on naked Windows XP
Details: <unistd.h> does not seem to be present there
parent
a91a7e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
share/qtcreator/gdbmacros/gdbmacros.cpp
share/qtcreator/gdbmacros/gdbmacros.cpp
+3
-7
No files found.
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
1562193b
...
...
@@ -63,10 +63,6 @@ int qtGhVersion = QT_VERSION;
#include <set>
#include <vector>
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
/*!
\class QDumper
\brief Helper class for producing "nice" output in Qt Creator's debugger.
...
...
@@ -246,7 +242,7 @@ static const void *addOffset(const void *p, int offset)
static
const
void
*
skipvtable
(
const
void
*
p
)
{
return
sizeof
(
void
*
)
+
reinterpret_cast
<
const
char
*>
(
p
);
return
sizeof
(
void
*
)
+
reinterpret_cast
<
const
char
*>
(
p
);
}
static
const
void
*
deref
(
const
void
*
p
)
...
...
@@ -266,7 +262,7 @@ static bool isEqual(const char *s, const char *t)
static
bool
startsWith
(
const
char
*
s
,
const
char
*
t
)
{
return
qstrncmp
(
s
,
t
,
strlen
(
t
))
==
0
;
return
qstrncmp
(
s
,
t
,
q
strlen
(
t
))
==
0
;
}
// provoke segfault when address is not readable
...
...
@@ -277,7 +273,7 @@ static bool startsWith(const char *s, const char *t)
const
char
*
stripNamespace
(
const
char
*
type
)
{
static
const
size_t
nslen
=
strlen
(
NS
);
static
const
size_t
nslen
=
q
strlen
(
NS
);
return
startsWith
(
type
,
NS
)
?
type
+
nslen
:
type
;
}
...
...
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