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
e5abb34d
Commit
e5abb34d
authored
Jan 06, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: fix watchers containing '$' (references to registers)
parent
456abf4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/dumper.py
+3
-3
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+3
-3
No files found.
share/qtcreator/gdbmacros/dumper.py
View file @
e5abb34d
...
...
@@ -401,8 +401,8 @@ class FrameCommand(gdb.Command):
if
len
(
args
)
>
2
:
watchers
=
base64
.
b16decode
(
args
[
2
],
True
)
if
len
(
watchers
)
>
0
:
for
watcher
in
watchers
.
split
(
"
$$
"
):
(
exp
,
name
)
=
watcher
.
split
(
"
$
"
)
for
watcher
in
watchers
.
split
(
"
##
"
):
(
exp
,
name
)
=
watcher
.
split
(
"
#
"
)
self
.
handleWatch
(
d
,
exp
,
name
)
d
.
pushOutput
()
watchers
=
d
.
safeoutput
...
...
@@ -465,7 +465,7 @@ class FrameCommand(gdb.Command):
else
:
try
:
value
=
parseAndEvaluate
(
exp
)
item
=
Item
(
value
,
"watch
"
,
None
,
None
)
item
=
Item
(
value
,
"watch
.%s"
%
name
,
None
,
None
)
d
.
putItemHelper
(
item
)
except
RuntimeError
:
d
.
put
(
',value="<invalid>",'
)
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
e5abb34d
...
...
@@ -3626,11 +3626,11 @@ void GdbEngine::updateLocals(const QVariant &cookie)
while
(
it
.
hasNext
())
{
it
.
next
();
if
(
!
watchers
.
isEmpty
())
watchers
+=
"
$$
"
;
watchers
+=
"
##
"
;
if
(
it
.
key
()
==
WatchHandler
::
watcherEditPlaceHolder
().
toLatin1
())
watchers
+=
"<Edit>
$
"
+
QByteArray
::
number
(
it
.
value
());
watchers
+=
"<Edit>
#
"
+
QByteArray
::
number
(
it
.
value
());
else
watchers
+=
it
.
key
()
+
'
$
'
+
QByteArray
::
number
(
it
.
value
());
watchers
+=
it
.
key
()
+
'
#
'
+
QByteArray
::
number
(
it
.
value
());
}
QByteArray
options
;
...
...
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