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
73ef5e33
Commit
73ef5e33
authored
Feb 26, 2010
by
hjk
Browse files
debugger: properly display function pointers with python
parent
a1fed931
Changes
3
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/gdbmacros/dumper.py
View file @
73ef5e33
...
...
@@ -1023,9 +1023,17 @@ class Dumper:
elif
type
.
code
==
gdb
.
TYPE_CODE_PTR
:
isHandled
=
False
#warn("A POINTER: %s" % value.type)
if
self
.
useFancy
:
isHandled
=
False
if
str
(
type
.
strip_typedefs
()).
find
(
"("
)
!=
-
1
:
self
.
putValue
(
str
(
item
.
value
))
self
.
put
(
'addr="%s",'
%
cleanAddress
(
value
.
address
))
self
.
putType
(
item
.
value
.
type
)
self
.
putNumChild
(
0
)
isHandled
=
True
if
(
not
isHandled
)
and
self
.
useFancy
:
if
isNull
(
value
):
self
.
putValue
(
"0x0"
)
self
.
putType
(
item
.
value
.
type
)
...
...
src/plugins/debugger/gdb/trkgdbadapter.cpp
View file @
73ef5e33
...
...
@@ -380,6 +380,7 @@ QByteArray TrkGdbAdapter::trkStepRangeMessage()
if
(
m_snapshot
.
stepOver
)
option
=
0x11
;
// Step over.
if
(
from
<=
pc
&&
pc
<=
to
)
{
//to = qMax(to - 4, from);
//to = qMax(to - 4, from);
debugMessage
(
"STEP IN "
+
hexxNumber
(
from
)
+
" "
+
hexxNumber
(
to
)
+
" INSTEAD OF "
+
hexxNumber
(
pc
));
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
73ef5e33
...
...
@@ -231,6 +231,14 @@ void testAnonymous()
a
.
i
=
3
;
}
void
testFunctionPointer
()
{
typedef
void
(
*
func_t
)();
func_t
f1
=
testAnonymous
;
func_t
f2
=
testFunctionPointer
;
func_t
f3
=
testFunctionPointer
;
}
void
testQByteArray
()
{
QByteArray
ba
=
"Hello"
;
...
...
@@ -1434,6 +1442,7 @@ int testReference()
int
main
(
int
argc
,
char
*
argv
[])
{
testFunctionPointer
();
testAnonymous
();
testReference
();
//testEndlessRecursion();
...
...
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