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
Tobias Hunger
qt-creator
Commits
4e281167
Commit
4e281167
authored
Oct 05, 2010
by
Friedemann Kleint
Browse files
Debugger[CDB]: Adapt SharedLib-Dumpers to new std::vector.
Reviewed-by: hjk
parent
18931181
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
4e281167
...
...
@@ -3457,7 +3457,11 @@ static void qDumpStdVector(QDumper &d)
#ifdef Q_CC_MSVC
// Pointers are at end of the structure
const
char
*
vcp
=
static_cast
<
const
char
*>
(
d
.
data
);
# if _MSC_VER >= 1600 // VS2010 onwards: Beginning of structure + base class containing pointer
const
VectorImpl
*
v
=
reinterpret_cast
<
const
VectorImpl
*>
(
vcp
+
sizeof
(
void
*
));
# else // pre VS2010: End of structure
const
VectorImpl
*
v
=
reinterpret_cast
<
const
VectorImpl
*>
(
vcp
+
sizeof
(
std
::
vector
<
int
>
)
-
sizeof
(
VectorImpl
));
# endif // _MSC_VER
#else
const
VectorImpl
*
v
=
static_cast
<
const
VectorImpl
*>
(
d
.
data
);
#endif
...
...
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