Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
fa304b45
Commit
fa304b45
authored
Jan 17, 2011
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: make qt namespace retrieval more robust
parent
ad2be7e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+5
-2
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
fa304b45
...
...
@@ -792,6 +792,7 @@ def makeExpression(value):
qqNs
=
None
def
qtNamespace
():
# FIXME: This only works when call from inside a Qt function frame.
global
qqNs
if
not
qqNs
is
None
:
return
qqNs
...
...
@@ -803,8 +804,10 @@ def qtNamespace():
# "}"
pos1
=
str
.
find
(
"struct"
)
+
7
pos2
=
str
.
find
(
"QString::Null"
)
qqNs
=
str
[
pos1
:
pos2
]
return
qqNs
if
pos1
>
-
1
and
pos2
>
-
1
:
qqNs
=
str
[
pos1
:
pos2
]
return
qqNs
return
""
except
:
return
""
...
...
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