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
Marco Bubke
flatpak-qt-creator
Commits
1562193b
Commit
1562193b
authored
Mar 12, 2009
by
hjk
Browse files
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
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
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