Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ef44cb24
Commit
ef44cb24
authored
Mar 18, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: fix expanding pointers inside anonymous namepaces
parent
63d4115d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+4
-2
tests/manual/gdbdebugger/simple/app.cpp
tests/manual/gdbdebugger/simple/app.cpp
+20
-0
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
ef44cb24
...
...
@@ -1197,7 +1197,9 @@ class Dumper:
# UCS-4:
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.
self
.
putValue
(
str
(
item
.
value
))
self
.
putAddress
(
value
.
address
)
...
...
@@ -1274,7 +1276,7 @@ class Dumper:
#warn("INAMES: %s " % 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
.
strip_typedefs
().
fields
()
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
ef44cb24
...
...
@@ -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
()
{
TestAnonymous
a
;
a
.
i
=
1
;
a
.
i
=
2
;
a
.
i
=
3
;
Something
s
;
s
.
foo
();
}
void
testFunctionPointer
()
...
...
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