Skip to content
GitLab
Menu
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
8e522c92
Commit
8e522c92
authored
Mar 08, 2010
by
hjk
Browse files
debugger: really don't use curses on windows
parent
62811941
Changes
3
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
8e522c92
...
...
@@ -10,8 +10,15 @@ import base64
import
os
import
__builtin__
if
os
.
name
!=
"nt"
:
if
os
.
name
==
"nt"
:
def
printableChar
(
ucs
):
if
ucs
>=
32
and
ucs
<=
126
:
return
ucs
return
'?'
else
:
import
curses.ascii
def
printableChar
(
ucs
):
return
select
(
curses
.
ascii
.
isprint
(
ucs
),
ucs
,
'?'
)
# only needed for gdb 7.0/7.0.1 that do not implement parse_and_eval
import
os
...
...
share/qtcreator/gdbmacros/gdbmacros.py
View file @
8e522c92
...
...
@@ -37,8 +37,7 @@ def qdump__QByteArray(d, item):
def
qdump__QChar
(
d
,
item
):
ucs
=
int
(
item
.
value
[
"ucs"
])
c
=
select
(
curses
.
ascii
.
isprint
(
ucs
),
ucs
,
'?'
)
d
.
putValue
(
"'%c' (%d)"
%
(
c
,
ucs
))
d
.
putValue
(
"'%c' (%d)"
%
(
printableChar
(
ucs
),
ucs
))
d
.
putNumChild
(
0
)
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
8e522c92
...
...
@@ -428,7 +428,7 @@ void testQList()
flist
.
push_back
(
1000
);
flist
.
push_back
(
1001
);
flist
.
push_back
(
1002
);
#if
0
#if
1
QList
<
int
>
li
;
QList
<
uint
>
lu
;
...
...
Write
Preview
Supports
Markdown
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