Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
ef44cb24
Commit
ef44cb24
authored
15 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
debugger: fix expanding pointers inside anonymous namepaces
parent
63d4115d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/qtcreator/gdbmacros/dumper.py
+4
-2
4 additions, 2 deletions
share/qtcreator/gdbmacros/dumper.py
tests/manual/gdbdebugger/simple/app.cpp
+20
-0
20 additions, 0 deletions
tests/manual/gdbdebugger/simple/app.cpp
with
24 additions
and
2 deletions
share/qtcreator/gdbmacros/dumper.py
+
4
−
2
View file @
ef44cb24
...
@@ -1197,7 +1197,9 @@ class Dumper:
...
@@ -1197,7 +1197,9 @@ class Dumper:
# UCS-4:
# UCS-4:
self
.
putValue
(
encodeChar4Array
(
value
,
100
),
Hex8EncodedBigEndian
)
self
.
putValue
(
encodeChar4Array
(
value
,
100
),
Hex8EncodedBigEndian
)
if
(
not
isHandled
)
and
str
(
type
.
strip_typedefs
()).
find
(
"
(
"
)
!=
-
1
:
strippedType
=
str
(
type
.
strip_typedefs
())
\
.
replace
(
"
(anonymous namespace)
"
,
""
)
if
(
not
isHandled
)
and
strippedType
.
find
(
"
(
"
)
!=
-
1
:
# A function pointer.
# A function pointer.
self
.
putValue
(
str
(
item
.
value
))
self
.
putValue
(
str
(
item
.
value
))
self
.
putAddress
(
value
.
address
)
self
.
putAddress
(
value
.
address
)
...
@@ -1274,7 +1276,7 @@ class Dumper:
...
@@ -1274,7 +1276,7 @@ class Dumper:
#warn("INAMES: %s " % self.expandedINames)
#warn("INAMES: %s " % self.expandedINames)
#warn("EXPANDED: %s " % (item.iname in self.expandedINames))
#warn("EXPANDED: %s " % (item.iname in self.expandedINames))
#
i
nsufficient, see http://sourceware.org/bugzilla/show_bug.cgi?id=10953
#
I
nsufficient, see http://sourceware.org/bugzilla/show_bug.cgi?id=10953
#fields = value.type.fields()
#fields = value.type.fields()
fields
=
value
.
type
.
strip_typedefs
().
fields
()
fields
=
value
.
type
.
strip_typedefs
().
fields
()
...
...
This diff is collapsed.
Click to expand it.
tests/manual/gdbdebugger/simple/app.cpp
+
20
−
0
View file @
ef44cb24
...
@@ -265,12 +265,32 @@ void testPeekAndPoke3()
...
@@ -265,12 +265,32 @@ void testPeekAndPoke3()
}
}
namespace
{
// anon
struct
Something
{
Something
()
{
a
=
b
=
1
;
}
void
foo
()
{
a
=
42
;
b
=
43
;
}
int
a
,
b
;
};
}
// anon
void
testAnonymous
()
void
testAnonymous
()
{
{
TestAnonymous
a
;
TestAnonymous
a
;
a
.
i
=
1
;
a
.
i
=
1
;
a
.
i
=
2
;
a
.
i
=
2
;
a
.
i
=
3
;
a
.
i
=
3
;
Something
s
;
s
.
foo
();
}
}
void
testFunctionPointer
()
void
testFunctionPointer
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment