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
628cf52f
Commit
628cf52f
authored
Jun 11, 2010
by
hjk
Browse files
debugger: add an option to filter out locals for easier debugger debugging
parent
e42ca194
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
628cf52f
...
...
@@ -917,6 +917,8 @@ class Dumper:
# Locals
#
locals
=
listOfLocals
(
varList
);
if
"nolocals"
in
options
:
locals
=
[]
# Take care of the return value of the last function call.
if
len
(
resultVarName
)
>
0
:
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
628cf52f
...
...
@@ -856,7 +856,7 @@ void testQSharedPointer()
{
//Employee e1(1, "Herbert");
//Employee e2 = e1;
#if 0
QSharedPointer<int> iptr(new int(43));
QSharedPointer<int> iptr2 = iptr;
QSharedPointer<int> iptr3 = iptr;
...
...
@@ -872,6 +872,12 @@ void testQSharedPointer()
QWeakPointer<QString> wptr(ptr);
QWeakPointer<QString> wptr2 = wptr;
QWeakPointer<QString> wptr3 = wptr;
#endif
QSharedPointer
<
Foo
>
fptr
(
new
Foo
(
1
));
QWeakPointer
<
Foo
>
wfptr
(
fptr
);
QWeakPointer
<
Foo
>
wfptr2
=
wfptr
;
QWeakPointer
<
Foo
>
wfptr3
=
wfptr
;
}
#endif
...
...
@@ -1669,6 +1675,7 @@ void testStuff()
{
FooVector
const
&
f
=
fooVector
();
int
i
=
f
.
size
();
Q_UNUSED
(
i
);
}
void
testPassByReferenceHelper
(
Foo
&
f
)
...
...
@@ -1731,6 +1738,7 @@ void testQSettings()
QSettings
settings
(
"/tmp/test.ini"
,
QSettings
::
IniFormat
);
QVariant
value
=
settings
.
value
(
"item1"
,
""
).
toString
();
int
x
=
1
;
Q_UNUSED
(
x
);
}
int
main
(
int
argc
,
char
*
argv
[])
...
...
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